Commit Graph

15 Commits

Author SHA1 Message Date
6ca2d379f7 bring in cozette-sml so we can draw text 2025-02-19 03:48:38 +00:00
d3200745d0 allow player to have a different width/height that is not a perfect square, (now we have Constants.playerWidth and Constants.playerHeight, having deleted the previous size in Constants.playerSize) 2025-02-18 12:31:22 +00:00
e62493ce56 change size of player/enemy from 35 to 32 (even number means we can resize better) 2025-02-18 11:09:07 +00:00
4c8b404c09 add code so that bat also moves vertically (in addition to previous horizontal movement) when updating enemy state 2025-02-12 00:25:55 +00:00
1dc3116b77 add fields to enemy which are relevant to bat's state 2025-02-11 23:54:13 +00:00
3db27a4107 cut time which bat rests for in half 2025-02-11 19:40:08 +00:00
d0d93780fb initial implementation of bat's update function (todo: make bat oscillate up and down while it also moves in x axis, and also code bat's collisions with player, adding to falling list if necessary, or being filtered by player's attack) 2025-02-11 19:38:02 +00:00
283962c176 make length of main attack increase and decrease 2025-02-07 11:22:23 +00:00
35eab0f789 reimplement attack patches (todo: add an int to the MAIN_ATTACKING variant to make the attack grow past some limit, and a bool to indicate whether the attack should grow in length or shrink) 2025-02-07 09:10:10 +00:00
90c29ebe24 make enemy's speed slightly slower than player's speed 2025-01-13 12:53:50 +00:00
2c643a1500 change speed that projectile moves at (should be faster than player) 2025-01-13 12:46:10 +00:00
ce7520ce81 derive EnemyPhysics module from functor 2025-01-12 23:33:20 +00:00
c4989711df refactor constants out of enemy.sml 2025-01-12 12:53:41 +00:00
ec44dd9966 refactor constants out from player.sml 2025-01-12 11:46:32 +00:00
a7c2e2ef01 progress moving constant values into own module 2025-01-12 07:18:44 +00:00