Please enable JavaScript.
Coggle requires JavaScript to display documents.
Top-Down Melee Game (FUNCTIONALITY (on_mouse_move(pos) - This an event…
Top-Down Melee Game
FUNCTIONALITY
on_mouse_move(pos) - This an event listener, it listens for when the mouse is moved and then runs some user defined code. The 'pos' argument gives the mouse's position when the function is called.
-
draw() - This function is called every frame and is intended to be used for graphical functions such as drawing the characters on screen.
-
-
-
-
attack() - Is called when the player attacks, it controls what gets damaged.
enemyAttack() - Is called every frame and controls enemy movement and the damage done to the player.
damagePlayer() - Is called when the player should take damage, it removes health and plays sound.
DATA
-
-
Constants
Screen dimensions (WIDTH, HEIGHT)
-
-