add function to return which side a collision occurs at

This commit is contained in:
2024-12-09 07:05:21 +00:00
parent 544460aec7
commit 7dbacd4792
2 changed files with 94 additions and 0 deletions

9
fcore/wall.sml Normal file
View File

@@ -0,0 +1,9 @@
structure Wall =
struct
(* Wall or platform, where player can land after falling.
* Difference between wall and platform is that one can jump to a platform
* and go below it, but wall is completely opaque. *)
datatype wall_type = WALL | PLATFORM
end