Sha256: d1156c76bc156bd217df4cc8aab41c0ad320440202295e70c6bc2ddf3d66ff9a

Contents?: true

Size: 298 Bytes

Versions: 1

Compression:

Stored size: 298 Bytes

Contents

require 'actor'
require 'actor_view'

class MyActorView < ActorView
  def draw(target, x_off, y_off, z)
    target.draw_box @actor.x,@actor.y, 20, 20, [240,45,45,255], 1
  end
end

class MyActor < Actor

  def setup
    # TODO setup stuff here
    # subscribe for an event or something?
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gamebox-0.2.1 lib/gamebox/templates/template_app/src/my_actor.rb