physics
E. Almqvist 3 years ago
parent 8446013da9
commit 18091a5d10
  1. 2
      src/app.rb
  2. 13
      src/lib/controller.rb

@ -80,7 +80,7 @@ class Window < Gosu::Window
@world.physobjs << cube2
@world.physobjs << planet
@world.freeze = true
@world.freeze = false
self.mainmenu.show = false
end

@ -5,6 +5,10 @@ class Player < PhysCube
@engine = false
@thrust = 0.001
# Bind all the binds to all the functions stuff
# world.down_keyhook.add()
end
private def get_angle_vec
@ -21,12 +25,6 @@ class Player < PhysCube
end
end
def button_up(id)
end
def button_up?(id)
end
def button_down(id)
case id
@ -49,9 +47,6 @@ class Player < PhysCube
end
end
def button_down?(id)
end
def inspect
return "\nName: #{self.name}\nOrbit of: #{self.parent_orbit.name}\nVel: #{self.vel.magnitude.round(1)} #{self.vel.round(4)}\nAccel: #{self.accel.magnitude.round(4)} #{self.accel.round(4)}\nPos: #{self.pos.round(4)}\nAngle: #{self.angle.round(1)} deg\nEngine: #{self.engine}\nThrust: #{self.thrust}\naccel_vecs: #{self.accel_vecs}\n"
end

Loading…
Cancel
Save