Jump to content

Class inheritance with Phaser


arcbox
 Share

Recommended Posts

Hello,

 

I am trying to create a custom Player class for my game that extends the Sprite class from Phaser, but I'm having trouble doing so. The desired outcome would be that I have access to all of the Sprite methods in this new class, but I can also add to it by adding to the prototype.

 

Any ideas?

 

Thanks!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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