samples/99_genre_dev_tools/tile_editor_starting_point/app/main.rb
def render
    outputs.sprites << state.tileCords.map do # outputs tileCords collection using images in sprites folder
      |x, y, order|
      [x, y, state.tileSize, state.tileSize, 'sprites/image' + order.to_s + ".png"]
    end
    outputs.solids << [0, 0, 1280, 720, 255, 255, 255] # outputs white background
    add_grid # outputs grid
    print_title # outputs title and current tile pattern
  end
# Outputs objects (grid, tiles, etc) onto the screen
Outputs objects (grid, tiles, etc) onto the screen
Outputs objects ( grid tiles etc ) onto the screen
def render
    outputs.sprites << state.tileCords.map do 
      |x, y, order|
      [x, y, state.tileSize, state.tileSize, 'sprites/image' + order.to_s + ".png"]
    end
    outputs.solids << [0, 0, 1280, 720, 255, 255, 255] 
    add_grid 
    print_title 
  end
def render outputs . sprites << state . tileCords . map do | x , y , order | [ x , y , state . tileSize , state . tileSize , 'sprites/image' + order . to_s + ".png" ] end outputs . solids << [ 0 , 0 , 1280 , 720 , 255 , 255 , 255 ] add_grid print_title end
Outputs objects (grid, tiles, etc) onto the screen
Outputs objects ( grid tiles etc ) onto the screen
# outputs tileCords collection using images in sprites folder # outputs white background # outputs grid # outputs title and current tile pattern