Sha256: f28b60b6be7ec955181acfc9b4fae52a276d32b4a43ba31dc443d449e644a0ce
Contents?: true
Size: 455 Bytes
Versions: 1
Compression:
Stored size: 455 Bytes
Contents
module Lotu class Actor extend HasBehavior attr_accessor :parent, :x, :y def initialize(opts={}) super() @x = opts[:x] || 0 @y = opts[:y] || 0 @parent = $window @parent.update_queue << self # Initialize the behaviors included in subclasses init_behavior end def dt $window.dt end # Meant to be overriden by behaviors def init_behavior;end def update;end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lotu-0.1.0 | lib/lotu/actor.rb |