class Prism::Systems::TerrainSystem

Overview

A rudimentary collision detection system for the terrain. This should run after the InputSystem

Defined in:

prism/stdlib/systems/terrain_system.cr

Constructors

Instance Method Summary

Instance methods inherited from class Crash::System

input(tick : RenderLoop::Tick, input : RenderLoop::Input) input, render render

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def add_to_engine(engine : Crash::Engine) #
Description copied from class Crash::System

Called just after the system is added to the engine, before any calls to the update method. Override this method to add your own functionality.

@param engine The engine the system was added to.


[View source]
def input(tick : RenderLoop::Tick, input : RenderLoop::Input) #
Description copied from class Crash::System

Extend Crash::System with an input method


[View source]
def remove_from_engine(engine : Crash::Engine) #
Description copied from class Crash::System

Called just after the system is removed from the engine, after all calls to the update method. Override this method to add your own functionality.

@param engine The engine the system was removed from.


[View source]