ymin and ymax for player

This commit is contained in:
Kistaro Windrider 2024-08-16 19:23:20 -07:00
parent 9dc36a95ee
commit cf48497432
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -885,6 +885,7 @@ player = ship_m.new{
ymomentum = 0, ymomentum = 0,
maxspd = 2.5, -- momentum cap maxspd = 2.5, -- momentum cap
thrust = 0.25, -- momentum added from button thrust = 0.25, -- momentum added from button
ymin = 0, ymax = 120, -- stay on screen
drag = 0.125, -- momentum lost per frame drag = 0.125, -- momentum lost per frame
slip = false, -- does not slide down screen slip = false, -- does not slide down screen
act = function(self) -- fetch buttons act = function(self) -- fetch buttons