class Prism::FreeMove
- Prism::FreeMove
- Crash::Component
- Reference
- Object
Overview
Causes the parent Entity
's position to be controlled by the keyboard.
Included Modules
Defined in:
prism/stdlib/free_move.crConstructors
- .new(speed : Float32, forward_key : Window::Key, back_key : Window::Key, left_key : Window::Key, right_key : Window::Key)
- .new(speed : Float32)
- .new
Instance Method Summary
-
#input!(tick : RenderLoop::Tick, input : RenderLoop::Input, entity : Crash::Entity)
Receives input events from the
InputSubscriber
- #movement
- #movement=(movement)
Instance methods inherited from module Prism::Adapter::GLFW
run(title : String, game : Prism::Engine, frame_rate : Float64, width : Int32, height : Int32)run(title : String, game : Prism::Engine, frame_rate : Float64 = 60) run
Instance methods inherited from module Prism::InputReceiver
input!(tick : RenderLoop::Tick, input : RenderLoop::Input, entity : Crash::Entity)
input!
Constructor Detail
def self.new(speed : Float32, forward_key : Window::Key, back_key : Window::Key, left_key : Window::Key, right_key : Window::Key)
#
Instance Method Detail
def input!(tick : RenderLoop::Tick, input : RenderLoop::Input, entity : Crash::Entity)
#
Description copied from module Prism::InputReceiver
Receives input events from the InputSubscriber