Jump to content

[Tutorial] Extending Phaser.Spritea and creating a generic Enemy class


nkholski
 Share

Recommended Posts

I've made an tutorial based on my approach to enemies in my Metroid Remake extending Phaser.Sprite into a generic Enemy class which in turn is extended to create actual enemies. The tutorial uses ES6/ES2015 but the approach could be used with ES5 (which the my code is actually transpiled to).

It's my first tutorial ever. Both positive and (constructive) negative feedback is appreciated. Let me know if you find something you disagree with in my approach, or ways to improve it. Also, English isn't my native language so any feedback on how I could improve hard-to-understand parts is equally appreciated.

Link: http://metroid.niklasberg.se/2016/02/12/phaser-making-and-using-a-generic-enemy-class-es6es2015/

Link to comment
Share on other sites

A service I would recommend for anyone, especially non-native English speakers, is Grammarly (https://www.grammarly.com).

It goes beyond a spell checker and checks for improper word usage and grammar mistakes. I'd recommend just running your tutorial's text through Grammarly to check the English.

 

As for the tutorial, without looking too deeply into it, it seems like a nice tutorial outlining how you create your enemies. You mention at the end of the tutorial that you are aware of several flaws in the code, which I think will be very useful to newer programmers who are trying to just copy your code. They will now be aware of the limitations.

I see the tutorial as a source of inspiration for creating whatever custom enemy is necessary for someone's game. Well done!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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