Commit Graph

12 Commits

Author SHA1 Message Date
84ea0ce24b code functor to fold through a specified region of the quad tree, without having to allocate an intermediary list or using a closure (which both have runtime costs) 2025-01-18 22:54:34 +00:00
560ef3f99a add function to get ID of first item found at location in quad tree (returns ~1 instead of NONE if no item is found) 2025-01-17 21:48:18 +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
8344138c55 add function to quad tree to get only bottom-side queries 2024-12-17 22:04:46 +00:00
cc7f30f718 add GameType.game_type which stores player and wall types, add GameUpdate.update function which takes a game type and returns a new game type, and refactor player/wall files, and gl-draw file, in light of these changes 2024-12-15 09:10:19 +00:00
9144c97fba get player to react to wall quad tree 2024-12-13 22:48:34 +00:00
a1b8aead30 complete function to get collision sides in quad tree 2024-12-10 08:42:36 +00:00
7dbacd4792 add function to return which side a collision occurs at 2024-12-09 07:05:21 +00:00
244640c1d6 add signature to quad-tree.sml, making it an opaque module 2024-12-09 00:23:00 +00:00
068f0277b9 add function to get list of collision object from quad tree 2024-12-08 23:38:50 +00:00
6f14edd528 code insert function for quad tree 2024-12-07 11:12:19 +00:00