ymin and ymax for player
This commit is contained in:
parent
9dc36a95ee
commit
cf48497432
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user