Commit Graph

13 Commits

Author SHA1 Message Date
9b7d7a1396 fix compile errors after previous commit (which involved reimplementing the quad tree to eliminate the possibility of a class of bugs I was experiencing; the problem was that the quad bounds were being passed recursively in different functions, but the long argument list in these functions made it difficult to see where the mismatch was) 2025-01-27 23:41:59 +00:00
6369be21fa tentatively refactor quad tree to make it more succinct + eliminate a class of potential bugs (passing wrong quad values through recursion) 2025-01-27 23:27:52 +00:00
b7a609b447 fix quad tree queries (queries should not choose only one quadrant because they may validly visit two or more quadrants if query covers two leaf nodes), resulting in regressions. Fix one regression: reimplement wall patches (this time also optimised because there is no intgermediary list) 2025-01-27 04:52:49 +00:00
01d9c2bd47 refactor physics.sml so that we always set plat ID of player/enemy, when player or enemy stands on new platform, and make changes to enemy-behaviour.sml in calculation to jump to the top-right after testing 2025-01-25 09:17:58 +00:00
e644160e38 enemy dropping below platform (without any bugs) is fully implemented now 2025-01-23 01:06:16 +00:00
efbf0c7da9 progress towards letting enemy drop below platform if path to player is there 2025-01-23 00:01:15 +00:00
edf7d4c8dc fix bug in physics.sml where player/enemy would drop below continuously past multiple platforms even if they intended to drop below platforms only once (fixed by setting yAxis to 'FALLING' if there are no collisions at all and player is in DROP_BELOW_PLATFORMS state) 2025-01-18 22:13:16 +00:00
690bfe75da make plan for writing how enemy should patrol on wall/platform 2025-01-13 11:02:34 +00:00
4484eb0ef0 functorise environment collision patches 2025-01-13 09:42:32 +00:00
ce7520ce81 derive EnemyPhysics module from functor 2025-01-12 23:33:20 +00:00
8906d244eb extract player patch types and functions to its own module 2025-01-12 19:25:05 +00:00
9280a12911 functorise physics for player 2025-01-12 12:36:26 +00:00
a7c2e2ef01 progress moving constant values into own module 2025-01-12 07:18:44 +00:00