• Content Count

  • Joined

  • Last visited

About eddieone

  • Rank
    Advanced Member

Recent Profile Visitors

1,397 profile views
  1. eddieone

    Handle button hover in Phaser 3?

    Hi, What's the best way to handle different button states in Phaser 3? I have an image and want to show a different image on mouse hover.
  2. eddieone

    ES6 + Phaser is great

    Here's the scenario, 1 to 5 animals attack the boss, then the boss attacks each animal. This is the code using async/wait await this.attackBoss(this.seat1); if (this.seats.length >= 2) { await this.attackBoss(this.seat2); } if (this.seats.length >= 3) { await this.attackBoss(this.seat3); } if (this.seats.length >= 4) { await this.attackBoss(this.seat4); } if (this.seats.length >= 5) { await this.attackBoss(this.seat5); } await this.bossAttack(this.seat1); if (this.seats.length >= 2) { await this.bossAttack(this.seat2); } if (this.seats.length >= 3) { await this.bossAttack(this.seat3); } if (this.seats.length >= 4) { await this.bossAttack(this.seat4); } if (this.seats.length >= 5) { await this.bossAttack(this.seat5); } The above code takes a few seconds for all the animations to complete. Using promises to end the await part once the animations finish. attackBoss(seat) { return new Promise(resolve => { this.tweens.add({ targets: seat, x: this.bossSeat.x, ease: 'Sine', duration: 500, yoyo: true, onYoyo: () => { this.bouncBoss(); }, onComplete: () => { resolve('resolved'); } }); }); } I might make a goldilocks es6 boilerplate for phaser 3. Mostly just adding async to generator babel plugin to already existing boilerplates. babel-plugin-transform-async-to-generator
  3. eddieone

    What is wrong with Phaser3 performance?

    What does performance look like with screenshots off??
  4. eddieone

    How do you bring sprites/groups to front with Phaser 3?

    Yeah Thanks, always checking the examples...
  5. eddieone

    Get container by name

    If you use es6, you can use for of. Or for loop with es5 searchContainer(container, name) { for (var child of container.list) { if (child.name == name) { return child; } } }
  6. eddieone

    Phaser 3 show_all responsive example?

    Ah, I'm too early. have to wait for phaser 3.16 probably 😛
  7. Hi, I'm looking around for how to handle full page scaling in phaser 3, anyone know of a tutorial or code example? I know with css, the canvas can go 100% However, I haven't found a way to scale in-game objects and have them centered. Thanks
  8. eddieone

    Phaser 3 performance?

    Thanks. 😯, looking forward to using the engine
  9. eddieone

    Phaser 3 performance?

    There are a lot of cool new features. I was reading the dev logs and it sounds like there were some optimizations. I wonder, how does the overall performance compare to phaser 2.3.0? Maybe there is a performance demo?
  10. eddieone

    Wedding Run (open source)

    Would you be willing to make a standalone version for Y8? I mean without the node requirement.
  11. eddieone

    Y8 is Publishing HTML5 games

    Iframe uploads are working on Chrome again. 😅 Again, thanks leonylyner
  12. eddieone

    Y8 is Publishing HTML5 games

    Thanks for reporting, will check on this for you. Hey, don't hijack my thread.
  13. eddieone


    I never expected to see an alt coin announcement on this forum. I wouldn't put much trust in it, seems like a scam.
  14. eddieone

    Y8 is Publishing HTML5 games

    For 10 years Y8 has been a big player in Flash games. Now that Flash is dying, we are looking to host more games using open standards. Everyone is welcome to submit games on the Y8 upload page. We are working on an adsense revenue split for game developers. So if you want to earn money, you will need to be at least 18 and it helps to have an Adsense account already. Though, in many cases we can help there too. So if you want to share your games, do these things: Upload here http://static.y8.com/upload If you want rev split email us here idnet@webgroup-limited.com Let us know if you have adsenses or not, list of games helps too.
  15. eddieone

    The Best Phaser Template

    @mattstyles Thanks for viewing the code. Please create a pull request. I took this from a project I worked on and decided to share it for free. At the vary least, you could create an issue for each problem and hope someone will be able to do it. This is the open source way. Posting on a forum that doesn't have good notifications is not a good process for open source.