gafami

Members
  • Content Count

    22
  • Joined

  • Last visited

About gafami

  • Rank
    Member
  • Birthday 11/07/1984

Contact Methods

  • Website URL
    https://www.iomgame.com
  • Skype
    NV.Hung

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. gafami

    [Phaser3][Casual Game]: Throw Apple

    Thanks Phaser and Richard have bring my first game to the bottom of the list phaser game in September. I thought it would be buried forever. http://phaser.io/news/2018/09/throw-apple
  2. /******** Change log update 19/09 ********/ -- Add level 7 with new game play. Regards, Gafami
  3. /******** Change log update 08/31 ********/ -- Improve sound load time. No painful for waiting sound loading any more! Regards, Gafami
  4. Good catch Wolf! That is a typing mistake from server data. The mini boss attk wide area so that spam a lot of sarmurai at the same time may not the best choice. You can try buy slow one by one when you facing him. Otherwise, if you have a dark knight in your team. Everything will become so easy. Regards, Gafami
  5. gafami

    Phaser 3 Load BASE 64 Image

    I have re-write your code a little bit. Hope it help. var platform; var counter = 0; function preload() { platform = this; /*var dataURI = '''data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQY............" var data = new Image(); data.src = dataURI; game.cache.addImage('image-data', dataURI, data);*/ } function create() { // Handle Base 64 Image From Here Not From PreLoad var dataURI = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQY............" platform.textures.addBase64('imgBase64', dataURI); // Loader to wait all base64 Image loaded platform.textures.on('onload', function() { counter++; }); // Timer check when all based64 assets have been loaded platform.customTimer = platform.time.addEvent({ delay: 500, callback: function callback() { // Adjust counter maximum as you ecpect. For now just one based64 assets need to be loaded only if (counter === 1) { // Destroy timer to save memory platform.customTimer.remove(false); // Add base64 image and position it platform.imgBase64Sprite = platform.add.sprite(game.config.width / 2, game.config.height / 2, 'imgBase64'); } }, callbackScope: platform, loop: true}); }
  6. Dear James, My friend, the viking may become useful if you fight again enemy at level 6 of the map. They are bomb not a human :). 1 bomb can kill any your unit even the darknight so the low cost of viking become useful now when you can spam him to agains the bomb. Beside it, you may need him to spam level 3 to receive total 4 gems at that batttle since you become too strong and the mini boss can’t not showup before enemy flag be destroyed. Regards, Gafami
  7. /******** Change log update 08/26 ********/ -- Add new game play for level 6. -- Improve camera. -- Improve game performance. Regards, Gafami
  8. I would like inform you that "War IOM" v2 have been re-work graphics and added more feature to serve user experience. For more detail please look into my first post. Regards, Gafami
  9. gafami

    Add effects in my game

    If you're build game based on Phaser 3. I think you can use Tween library (build in Phaser) to archive what you need. // Example your button is an image var button = platform.physics.add.sprite(0, 0, 'button'); button.setScale(1, 1); // When click action perform button.on('pointerdown', function () { // Use scale X Y to animation zoom in/out effect. Yoyo = true if you want the animation revert back to the begin state with smoothly button.tween = platform.tweens.add({ targets: button, scaleX: 0.9, scaleY: 0.9, ease: 'Bounce.easeOut', // There is alot of ease name as: Sine.easeInOut, Power1, Power2, Power3 duration: 500, yoyo: true }); }); Hope it help you.
  10. Dear friends, Map level 5 and new feature have been released!!! /******************* Change log *******************/ -- Add new soliders (dark knight and angel knight)!!! -- Add feature pick unit before begin the battle. -- Improve first load performance -- Add map level 5 with new enemy (stronger and faster) I very appreciate for any advice or feedback for my game are welcome and. Wish a good health for all of you. Regards, Gafami
  11. gafami

    how to make game over text

    Hope this help you // Display word "Game Over" at center of the screen game let gameOverText = this.add.text(game.config.width / 2, game.config.height / 2, 'GAME OVER', { fontSize: '32px', fill: '#fff' }); // Set z-index just in case your text show behind the background. gameOverText.setDepth(1);
  12. gafami

    What is wrong with Phaser3 performance?

    I think that in Phaser, they have a func call update() { }. This function work as a timer run with 0 delay. So when develop game based on Phaser just remember that you should avoid put many logic code inside update() func and everything will be fine.
  13. gafami

    Audio file can't be loaded

    devbruce, Could you ever try load the sound by single file instead of an array like that this.load.audio("theme", ["assets/Runn.wav"]); => this.load.audio("theme", "assets/Runn.wav"); Otherwise you don't need line code " add sound" to play the sound. music = this.sound.add('theme'); music.play({ loop: true }); => this.sound.play("theme");
  14. gafami

    What lacks in HTML5 games in terms of revenue

    Hi Reda, Develop HTML5 game from 2015 until now is very prospects, especially this year (2018). As your scope above (ads, embed game into webview) I believed that you may want to try develop game based on phaser 3 framework and scripting with ES5 to sure 100% browser supported (even webview). For now phaser 3 core just have very impression size (about 200Kbs) when you publish game on Production. You can refer those HTML5 game to see the look and feel when your game integrated Ads network. https://iomgame.com/wariom/ https://iomgame.com/appleom/ You may facing too many ad-hoc issues when you start develop game by yourself. However, if you have the passion I wish you can get over them. Regards, Gafami
  15. gafami

    [Phaser3][Casual Game]: Throw Apple

    This is a casual game which I've completed in a couple weeks ago (10 stage). I updated a few small feature in setting to allow user change the main graphic of the game. Hope it can help kill time for someone. It's Throw Apple (Work well on Android Chrome, iOS Safari).