Re-added mousefix :(, camera can now be flown around if it's not attached to a game object, tweaked Player initial jump velocity.

This commit is contained in:
2018-12-10 22:22:01 -06:00
parent 4d8638d81c
commit 6341c3b817
4 changed files with 51 additions and 4 deletions

View File

@@ -142,10 +142,11 @@ class IMICFPS
end
if @jumping && !@falling
if button_down?(Gosu::KbSpace)
@y_velocity+=(2*15)*delta_time
@falling = true if @y_velocity >= 2
@y_velocity = 1.5
@falling = true
end
end
@y+=@y_velocity*delta_time
@y = @floor if @y < @floor