Commit Graph

10 Commits

Author SHA1 Message Date
d1e23b5455 refactor platform and wall type declarations out into platform.sml and wall.sml 2025-02-14 09:26:07 +00:00
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
507c1c331c scale player.sml in the same way that wall.sml is being scaled, and also: make 'x' and 'y' arguments to Block.lerp Real32.real values rather than int values (with calling code making the necessary changes) as the code was converting between int and real multiple times 2024-12-17 09:16:22 +00:00
18bd81134b done handling variable window width/height in wall.sml 2024-12-17 04:59:15 +00:00
20c4060124 progress in handling variable window width/height (mostly only in imperative shell though) 2024-12-16 00:58:59 +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
34884b1b50 make sure gravity is applied when player walks off platform 2024-12-14 08:11:23 +00:00
9144c97fba get player to react to wall quad tree 2024-12-13 22:48:34 +00:00
7dbacd4792 add function to return which side a collision occurs at 2024-12-09 07:05:21 +00:00