mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-16 08:02:36 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user