examples/pending/netris/src/grid.rb
# Begin Tetris.
# Give the block the x and y pixel values of the parent actor
Begin Tetris.
Give the block the x and y pixel values of the parent actor
Begin Tetris . Give the block the x and y pixel values of the parent actor
def start_play(actor, stage)
    @parent = actor
    @stage = stage
    self.screen_x = @parent.x
    self.screen_y = @parent.y
    @game_info = stage.create_actor :game_info, x: self.screen_x + self.width + 40, y: self.screen_y + 240, score: 0, current_level: 1
    next_tetromino
    new_piece
  end
def start_play ( actor , stage ) @parent = actor @stage = stage self . screen_x = @parent . x self . screen_y = @parent . y @game_info = stage . create_actor :game_info , x : self . screen_x + self . width + 40 , y : self . screen_y + 240 , score : 0 , current_level : 1 next_tetromino new_piece end
Begin Tetris.
Begin Tetris .
actor
<not_specific>
stage
<not_specific>