• Content Count

  • Joined

  • Last visited

Everything posted by B3L7

  1. B3L7

    Eternity Pilot

    Eternity Pilot is a mobile game made using Phaser 3 and Cordova. It is my first published game and it would have been totally impossible without Phaser and this amazing community! For now it is only available on Android but I am hoping to have an iOS version in the near future. I have a sign up on the site linked below to receive a notification when the iOS version comes out. Play Store https://eternitypilot.com Gameplay Video
  2. B3L7

    Eternity Pilot

    Thanks Thanks! I'm glad you liked it. I'm working on a big update right now.
  3. B3L7

    Eternity Pilot

    New version 0.2.58 released today featuring: -Explosions damage enemies -Parallax background -On screen infinity gun and bomb timers -Adaptive icons -Rate prompt -Share button -Loading graphic on ad screen -Tutorial Tweaks -Other minor fixes
  4. B3L7

    Katan.io - Play Free Online Settlers of Catan

    Looks great! Well done.
  5. B3L7

    Collisions not detecting with Phaser

    For Phaser 2: http://phaser.io/tutorials/making-your-first-phaser-2-game https://phaser.io/examples https://phaser.io/docs/2.6.2/index https://phaser.discourse.group/c/phaser2
  6. B3L7

    Collisions not detecting with Phaser

    The browser's console should show a banner saying the Phaser version. What editor are you using? That may provide a clue.
  7. B3L7

    Collisions not detecting with Phaser

    Are you using Phaser 2 or 3? You do not want to use any Phaser 2 tutorials or documentation when writing Phaser 3 games. This can be tricky because for years people wrote tutorials that simply referenced Phaser so there is a lot out there that is actually for Phaser 2. Here are some good references for 3: https://phaser.io/tutorials/getting-started-phaser3 https://phaser.io/tutorials/making-your-first-phaser-3-game https://labs.phaser.io/ https://photonstorm.github.io/phaser3-docs/ As well nkholski's repo was one of the early Phaser 3 projects that lead the way: https://github.com/nkholski/phaser3-es6-webpack and I always recommend my repo as an example 😉: https://github.com/B3L7/phaser3-tilemap-pack
  8. B3L7

    Collisions not detecting with Phaser

    physics.add.sprite is definitely a method: https://labs.phaser.io/edit.html?src=src\physics\arcade\simple body.js I think the problem is you are calling the physics system through the game namespace instead of the scene. Try this.physics instead of game.physics
  9. B3L7

    using multiple scenes

    Make sure the HUD scene is added to the game config, then get rid of this.HUD = new HUD(this.matter.world, 0, 0); And add: this.scene.launch('HUD');
  10. B3L7

    Collisions not detecting with Phaser

    It's not the same code. Notice game.physics.add.sprite as opposed to what you have: game.add.sprite. Big difference. You could of course use game.add.sprite and add a body on as a separate line. Either way in order for two game objects to collide they either need to have physics bodies or be apart of a physics group.
  11. B3L7

    creating an object

    If you are using separate textures for each sprite you can use blocks.setTexture('dud'); If you are using a texture with multiple sprites in it you can use blocks.setFrame('dud'); Then you can check at the start of the function against the texture or frame name to see whether to spawn a coin on collision. Hope that helps.
  12. B3L7

    Collisions not detecting with Phaser

    It looks like your blocks don't have bodies. Try: for(var j = 0; j < map.length; j++) { mapObjs[i][j] = game.physics.add.sprite(32*i, 300+32*j, 'block'); mapObjs[i][j].width = 32; mapObjs[i][j].height = 32; } Of course I think you are doing a lot of extra work (not to mention an unnecessary loop in your update method) by not using groups: Group Example
  13. B3L7

    Cant get group to work

    First, that amphibian tutorial is great but it's for Phaser 2 not 3 so it may be causing some issues there. Second, we will need some more info. When you say fail do you mean you get an error, or does nothing happen? Do you see the monster sprites on the screen? Right off the bat it looks like the parameters in your createFromObjects call may be wrong. I think you are using the Phaser 2 example which won't work. See the Phaser 3 examples and docs: https://labs.phaser.io/edit.html?src=src\game objects\tilemap\static\create from objects.js https://photonstorm.github.io/phaser3-docs/Phaser.Tilemaps.Tilemap.html#createFromObjects__anchor Also, it doesn't look like your repo is public.
  14. B3L7

    GameObject update never called?

    I've never used the preUpdate method. According to the API:
  15. B3L7

    GameObject update never called?

    Unlike Phaser 2, Phaser 3 requires that you call each objects update method. This can be done one of two ways: 1. Add the object to a group which has the property runChildUpdate property set to true. 2. Call the objects update method in the scene's update method: var SceneA = new Phaser.Class({ Extends: Phaser.Scene, initialize: function SceneA () { Phaser.Scene.call(this, { key: 'sceneA' }); }, create: function () { this.customObject = new customObject(x, y, etc); }, update: function (time, delta) { this.customObject.update(time, delta); } });
  16. B3L7

    Phaser 3 - Cordova Question

    FYI the scaler isn't in 3.15.1, I believe it's currently slated for 3.17 If you want something to tide you over in the meantime I would suggest this plugin: https://github.com/samme/phaser-plugin-game-scale I am currently working on a Phaser 3 Cordova project. I followed this guide to get started and found it very helpful: https://gamedevacademy.org/creating-mobile-games-with-phaser-3-and-cordova/
  17. B3L7

    My Phaser Story

    This story was really inspiring. Thank you for sharing it. Do you have any recommended tutorials on Cordova you found useful?
  18. B3L7

    Phaser 3 Sublime Auto Complete

    Yes, you need to set up typescript. Check out: TypeScript Plugin for Sublime Text and Phaser 3 and TypeScript
  19. B3L7

    creating multiple scenes with a JS FOR LOOP

    Are you trying to use a For Loop to create the scenes? Why not just have a single scene that pulls the appropriate data for the current question then restarts when moving on to the next question?
  20. I've created a template to illustrate the concept of levels generated from dynamically loaded tilemaps from a single level scene. Phaser 3 Tilemap & File Pack Project Template Demo Questions and feedback are welcome!
  21. Update: Just upgraded to Phaser 3.12.0 with some minor fixes for compatibility.
  22. B3L7

    Tutorial requests

    Your tutorials are great! I'm currently working with your tilemap chunk one. I'd be really interested in a tutorial on creating save files using local storage.
  23. B3L7

    Rookie Bowman

    Any chance your going to release the source code? I'd be really interested to see it.
  24. B3L7

    Rookie Bowman

    Looks like your right. I tried it in Chromium and everything worked. What are you using for save states? It works very nicely.
  25. B3L7

    Rookie Bowman

    Strange. This is what it looks like on my computer: