Commit Graph

21 Commits

Author SHA1 Message Date
ddd58fd534 add platform vector and platform quadtree to game type 2024-12-17 21:42:06 +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
1017bf1b7a cache 'jumpPressed' state inside player type. We use this boolean to check if the player has jumped before. If they have jumped before, then holding the up button does not cause another jump when falling down (unlike before this commit) 2024-12-14 21:05:51 +00:00
8b8d6f07bc change floatLimit to 3, which seems to be fine 2024-12-14 18:11:59 +00:00
df186308bb reduce floatLimit to 4, which feels better in the game 2024-12-14 18:07:12 +00:00
62a6a831ed add FLOATING case to player's y_axis type, so user hovers briefly after jumping, before gravity is applied (this is normal game physics) 2024-12-14 18:02:57 +00:00
cea269689e make it so that player will jump shorter distance if they only press up button for short period of time 2024-12-14 08:18:39 +00:00
34884b1b50 make sure gravity is applied when player walks off platform 2024-12-14 08:11:23 +00:00
1901043535 add functionality to move player by using arrow keys 2024-12-14 07:59:43 +00:00
9144c97fba get player to react to wall quad tree 2024-12-13 22:48:34 +00:00
9d42e14b2f add basic imperative shell 2024-12-10 19:48:07 +00:00
fb2be7be73 add block.sml which just generates a block for OpenGL 2024-12-10 11:55:40 +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
544460aec7 begin coding player 2024-12-09 04:37:40 +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