Cleanup, moved Map lifecycle into Director, added renderer_info command

This commit is contained in:
2020-12-02 11:38:10 -06:00
parent c7590366a6
commit 9aa5dc7174
15 changed files with 188 additions and 252 deletions

View File

@@ -60,9 +60,9 @@ class IMICFPS
end
def jump
if InputMapper.down?(:jump) && window.current_state.map.collision_manager.on_ground?(self)
@velocity.y = 1.5
end
return unless InputMapper.down?(:jump) && window.director.map.collision_manager.on_ground?(self)
@velocity.y = 1.5
end
end
end