Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Massemassimo last won the day on March 22 2014

Massemassimo had the most liked content!

About Massemassimo

  • Rank
    Advanced Member

Contact Methods

  • Twitter

Recent Profile Visitors

1332 profile views
  1. I really think there is no reason not to use typescript.
  2. Yes, arcade definitely still has some issues in that department! But afaik you can use p2 with phaser, so you don't need to switch everything, just the physics.
  3. Yes, my floors are all static and the player is moving only through changes of velocity. Still the same problem occurs.
  4. Ok seems I get no general coding advice. If somebody can point me to a video or tutorial on how to code in a clever fashion, I would be very thankful. Anyways, closing this since the correct answer was given earlier.
  5. No general programming advice?
  6. Ok this worked! I had tried it before starting this post, but ran into troubles since I just tried to add the overlay object and the map object as a whole to their groups, which threw a runtime error since A Group is a container for display objects including Sprites and Images. (Phaser docs -> group), and the overlay and the map object are no display objects. The way I do it though feels a little clunky to say the least, could anybody elaborate on if you would've structured your code differently? As an example, at the moment I pass the following stuff to my map object on creation: con
  7. @valueerror yes, the problem was adressed, but for me, updating didn't solve the problem.
  8. Hey, I am trying to reorder my objects but I am having a hard time (I am a very inexperienced programmer in general). So... Not sure if the following is important, but I will very briefly explain what I want to do and how I am trying to do it, maybe you can turn this into a lesson while (hopefully) answering the main question. What I want to do: Draw a map consisting of hexagonal tiles (extending sprites)Show some data about each tile when being hovered (text should be on or close to the tile)How I go about it: create an overlay object controlling the infocreate a map object which in return
  9. Have the same problem, no solution yet (other than to make a top down game )
  10. Or typescript, like this: export class MonsterBunny extends Phaser.Sprite {rotateSpeed: number;constructor(game: Phaser.Game, x: number, y: number, rotateSpeed: number) { super(game, x, y); this.rotateSpeed = rotateSpeed;}update() { this.angle += this.rotateSpeed;}}
  11. Maybe I am an idiot but isn't inheritance a feature of Typescript / vanilla javascript, not Phaser?
  12. Less than 30 lines of code per game. Wow. oO
  13. Same problem here, have been looking for a solution for a few days now, but nothing helps. Really frustrating.
  14. Would you mind setting spencerTLs answer as the "best answer" so everyone can see the solution at a glance? Or did he send you code as a PM?
  15. Yeah, I wasn't quite sure what it did but it didn't render more FPS. Learned that today and was very confused for a while since changing the game.time.desiredFPS didn't chance game.time.fps.So as far as I can see the name "desiredFPS" is a bit misleading, FPS usually being the amount of frames drawn per second (hence the name ), not the amount of update loops. P.S.: maybe a bit of a funny story: Since I wanted to up physics calculations per second, I set desiredFPS to 120 and tried my best to handcode some sort of slowing mechanism for the FPS through locking framerendering for a certain amo
  • Create New...