Make sure the functions you write are object-oriented - either class functions (like Player
and Enemy
) or class prototype functions such as Enemy.prototype.checkCollisions
. Also make sure that the keyword this
is used appropriately within your class and class prototype functions to refer to the object the function is called upon.
For detailed instructions on how to get started, check out this guide.
Additional Task requirements:
- Use "classname.prototype.*" syntax (not ES2015/ES6 class syntax).
- Make changes only to app.js and submit only this file to the code review.
- The Goal is to reach the water on top of the game board.
- Player must avoid collisions with the enemies (bugs).
- The player character is controlled by the standart arrow keyboard keys (Left/Right & Up/Down).
- Updating browser page resets the Game score.