class Prism::FreeMove

Overview

Causes the parent Entity's position to be controlled by the keyboard.

Included Modules

Defined in:

prism/stdlib/free_move.cr

Constructors

Instance Method Summary

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) #

[View source]
def self.new(speed : Float32) #

[View source]
def self.new #

[View source]

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


[View source]
def movement #

[View source]
def movement=(movement) #

[View source]