From ed585355b1f78de15885e803138a98b75ca2b1e2 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Mon, 20 Feb 2023 21:52:22 +0000 Subject: Split entities in modules. --- src/Game/Entities/Const.hs | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/Game/Entities/Const.hs (limited to 'src/Game/Entities/Const.hs') diff --git a/src/Game/Entities/Const.hs b/src/Game/Entities/Const.hs new file mode 100644 index 0000000..4855e24 --- /dev/null +++ b/src/Game/Entities/Const.hs @@ -0,0 +1,25 @@ +module Game.Entities.Const where + +hitDelay :: Int +hitDelay = 96 + +frameDelay :: Int +frameDelay = 6 + +jumpFrame :: Int +jumpFrame = 3 + +gravityOff :: Int +gravityOff = -1 + +gravityUp :: Int +gravityUp = 0 + +gravityDown :: Int +gravityDown = 14 + +jumpLimit :: Int +jumpLimit = gravityDown + 7 + +gravityTable :: [Int] +gravityTable = [0, 6, 4, 4, 2, 2, 2, 2, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 4] -- cgit v1.2.3