Sha256: 1256a1766d64a7061733d9d8e6e70a1d56c96fbc19b1c4826af47dfc4c304791

Contents?: true

Size: 234 Bytes

Versions: 8

Compression:

Stored size: 234 Bytes

Contents

define_actor :<%= @actor_name %> do
  has_behavior :positioned

  view do
    draw do |target, x_off, y_off, z|
      x = actor.x + x_off
      y = actor.y + y_off
      target.draw_box x,y, x+20, y+20, Color::RED, 1
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gamebox-0.5.5 templates/actor_template.erb
gamebox-0.5.4 templates/actor_template.erb
gamebox-0.5.2 templates/actor_template.erb
gamebox-0.5.1 templates/actor_template.erb
gamebox-0.5.0 templates/actor_template.erb
gamebox-0.4.1 templates/actor_template.erb
gamebox-0.4.0 templates/actor_template.erb
gamebox-0.4.0.rc11 templates/actor_template.erb