Commit Graph

13 Commits

Author SHA1 Message Date
a05f211428 pass player record as argument for enemy filtering functiokns, so enemy can react to player state (position, etc.) 2025-01-16 08:15:29 +00:00
50238b8dac done getting physics + environment to work on enemy as well, in addition to player 2025-01-13 09:52:25 +00:00
ca6b0b2160 done refactoring player-specific logic, and also enemy-specific logic, from player-enemy.sml (which now just calls different functions from the player.sml and enemy.sml modules, to help player-enemy.sml maintain a high level overview) 2025-01-12 22:14:36 +00:00
3dddd096f7 a bit of additional refactoring 2025-01-12 22:10:58 +00:00
8052ad53f7 a bit of refactoring and clearer naming 2025-01-12 21:59:33 +00:00
442c489af7 remove unused 'enemyTree' value returned from player-enemy.sml function 2025-01-12 19:31:29 +00:00
8906d244eb extract player patch types and functions to its own module 2025-01-12 19:25:05 +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
8498eacde2 a little bit of refactoring 2025-01-11 21:58:34 +00:00
75e28b892e done getting player's projectiles to collide with enemies successfully, and tested (although the code of the enemy reacting to the player is not the best) 2025-01-11 21:35:55 +00:00
0367b3a23c progress detecting collision between enemy and player's projectile, and decrementing enemy's health once detected 2025-01-11 13:45:29 +00:00
df0926195d decide on a different structure/module for each collision 2025-01-10 10:12:59 +00:00