Open anikaagit opened 1 week ago
a "method" is a function that defines the behavior of an object. In this case, the methods are helpful to manage the players behavior, from rendering on the screen to responding to player input.
A constructor initializes an object and sets up the attributes such as width and height. In this case, the object is the player's scale.
A dependency is an external module that contains classes that your object relies on. In this case, the module game environment is relevant to the player class and the objects in it
Exports make your class available for use in other modules. This is exporting the "Player" class
Popcorn Hack 1
Rpg.md defines data for the assets in the game. It also starts the game.
Gamecontrol.js manages key events.
Gameenv.js defines canvas properties
Background.js handles the background
Player.js handles the player (creating the player)