Jump to content

Asteroid with Phaser.Geom?


digitsensitive
 Share

Recommended Posts

Hello there! I would like to create an asteroid clone, intentionally I do not want to work with sprites but rather use geom objects (triangle for the ship and polygons for the asteroids). Is it possible to create f.e. a Phaser.Geom.Triangle object an push that into the game objects factory, so that I could use f.e. overlap functions? If not, I guess I will have to handle position, velocity and acceleration myself ... or should I use Matter Physics?

I am grateful for any input!

Link to comment
Share on other sites

You cannot add geometry to the display list. You will need to create a Graphics object and then draw the geometry to it yourself. And you could use matter, but for something as simple as asteroids it's probably easier to just roll your own.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...