4gent0rang3

Members
  • Content Count

    3
  • Joined

  • Last visited

About 4gent0rang3

  • Rank
    Newbie

Profile Information

  • Gender
    Male
  • Location
    South Africa

Recent Profile Visitors

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

  1. I wasn't aware Easystar.js is abandoned, where did you hear this? Easystar is usually my go to for simple grid based path finding and I am using it in a few of my games without a hitch. As an alternative have you considered using a navmesh? I would recommend this approach for a boost in performance. Here is a really great navmesh lib that has a wrapper for Phaser 2 and 3: https://github.com/mikewesthad/navmesh The author has also made a great guide for getting it up and running.
  2. Hey so I'm creating a procedural platformer and I don't have much time to test this so I'll ask here Say I have a PlatformManager to automatically create and destroy platforms in the game world. Would it be more efficient to, when a platform is destroyed, add it to a 'destroyedPlatforms' list and then when creating a new platform just take one of the destroyed platforms and modify its properties to become a new platform, or should I just create a new platform object every time I need a platform and destroy platforms when they are destroyed (let garbage collection clean them up)? In essence I'm asking if its would be more efficient to reuse and modify an old object or simply create a new one? Also on a side note, would it be a good idea to make the PlatformManager object an extended Phaser.Group object? (I'm using typescript for this project) PS: If this doesn't relate to Phaser specifically feel free to move this thread
  3. Hey man really great template, appreciate the simplicity. Just out of interest how would one go about correctly making this a typescript project? Where would I put the typings and how would I configure the typescript compiler? Brunch is awesome!