Method: ActorViewDefinition#draw

Defined in:
lib/gamebox/core/actor_view_definition.rb

#draw(&draw_block) ⇒ Object

Draw callback that is called when the view needs to draw.

draw do |screen, x_offset, y_offset, z|
  ...
end


31
32
33
# File 'lib/gamebox/core/actor_view_definition.rb', line 31

def draw(&draw_block)
  @draw_block = draw_block
end