samples/99_genre_rpg_roguelike/02_roguelike_line_of_sight/app/main.rb
def load_area_one
    state.area ||= []
    state.area << [8, 6]
    state.area << [7, 6]
    state.area << [7, 7]
    state.area << [8, 9]
    state.area << [7, 8]
    state.area << [7, 9]
    state.area << [6, 4]
    state.area << [7, 3]
    state.area << [7, 4]
    state.area << [6, 5]
    state.area << [7, 5]
    state.area << [8, 5]
    state.area << [8, 4]
    state.area << [1, 1]
    state.area << [0, 1]
    state.area << [0, 2]
    state.area << [1, 2]
    state.area << [2, 2]
    state.area << [2, 1]
    state.area << [2, 3]
    state.area << [1, 3]
    state.area << [1, 4]
    state.area << [2, 4]
    state.area << [2, 5]
    state.area << [1, 5]
    state.area << [2, 6]
    state.area << [3, 6]
    state.area << [4, 6]
    state.area << [4, 7]
    state.area << [4, 8]
    state.area << [5, 8]
    state.area << [5, 9]
    state.area << [6, 9]
    state.area << [7, 10]
    state.area << [7, 11]
    state.area << [7, 12]
    state.area << [7, 12]
    state.area << [7, 13]
    state.area << [8, 13]
    state.area << [9, 13]
    state.area << [10, 13]
    state.area << [11, 13]
    state.area << [12, 13]
    state.area << [12, 12]
    state.area << [8, 12]
    state.area << [9, 12]
    state.area << [10, 12]
    state.area << [11, 12]
    state.area << [12, 11]
    state.area << [13, 11]
    state.area << [13, 10]
    state.area << [13, 9]
    state.area << [13, 8]
    state.area << [13, 7]
    state.area << [13, 6]
    state.area << [12, 6]
    state.area << [14, 6]
    state.area << [14, 5]
    state.area << [13, 5]
    state.area << [12, 5]
    state.area << [12, 4]
    state.area << [13, 4]
    state.area << [14, 4]
    state.area << [1, 6]
    state.area << [6, 6]
  end
# Adds elements into the state.area collection
# The dungeon is derived using the coordinates of this collection
Adds elements into the state.area collection
The dungeon is derived using the coordinates of this collection
Adds elements into the state . area collection The dungeon is derived using the coordinates of this collection
def load_area_one
    state.area ||= []
    state.area << [8, 6]
    state.area << [7, 6]
    state.area << [7, 7]
    state.area << [8, 9]
    state.area << [7, 8]
    state.area << [7, 9]
    state.area << [6, 4]
    state.area << [7, 3]
    state.area << [7, 4]
    state.area << [6, 5]
    state.area << [7, 5]
    state.area << [8, 5]
    state.area << [8, 4]
    state.area << [1, 1]
    state.area << [0, 1]
    state.area << [0, 2]
    state.area << [1, 2]
    state.area << [2, 2]
    state.area << [2, 1]
    state.area << [2, 3]
    state.area << [1, 3]
    state.area << [1, 4]
    state.area << [2, 4]
    state.area << [2, 5]
    state.area << [1, 5]
    state.area << [2, 6]
    state.area << [3, 6]
    state.area << [4, 6]
    state.area << [4, 7]
    state.area << [4, 8]
    state.area << [5, 8]
    state.area << [5, 9]
    state.area << [6, 9]
    state.area << [7, 10]
    state.area << [7, 11]
    state.area << [7, 12]
    state.area << [7, 12]
    state.area << [7, 13]
    state.area << [8, 13]
    state.area << [9, 13]
    state.area << [10, 13]
    state.area << [11, 13]
    state.area << [12, 13]
    state.area << [12, 12]
    state.area << [8, 12]
    state.area << [9, 12]
    state.area << [10, 12]
    state.area << [11, 12]
    state.area << [12, 11]
    state.area << [13, 11]
    state.area << [13, 10]
    state.area << [13, 9]
    state.area << [13, 8]
    state.area << [13, 7]
    state.area << [13, 6]
    state.area << [12, 6]
    state.area << [14, 6]
    state.area << [14, 5]
    state.area << [13, 5]
    state.area << [12, 5]
    state.area << [12, 4]
    state.area << [13, 4]
    state.area << [14, 4]
    state.area << [1, 6]
    state.area << [6, 6]
  end
def load_area_one state . area ||= [ ] state . area << [ 8 , 6 ] state . area << [ 7 , 6 ] state . area << [ 7 , 7 ] state . area << [ 8 , 9 ] state . area << [ 7 , 8 ] state . area << [ 7 , 9 ] state . area << [ 6 , 4 ] state . area << [ 7 , 3 ] state . area << [ 7 , 4 ] state . area << [ 6 , 5 ] state . area << [ 7 , 5 ] state . area << [ 8 , 5 ] state . area << [ 8 , 4 ] state . area << [ 1 , 1 ] state . area << [ 0 , 1 ] state . area << [ 0 , 2 ] state . area << [ 1 , 2 ] state . area << [ 2 , 2 ] state . area << [ 2 , 1 ] state . area << [ 2 , 3 ] state . area << [ 1 , 3 ] state . area << [ 1 , 4 ] state . area << [ 2 , 4 ] state . area << [ 2 , 5 ] state . area << [ 1 , 5 ] state . area << [ 2 , 6 ] state . area << [ 3 , 6 ] state . area << [ 4 , 6 ] state . area << [ 4 , 7 ] state . area << [ 4 , 8 ] state . area << [ 5 , 8 ] state . area << [ 5 , 9 ] state . area << [ 6 , 9 ] state . area << [ 7 , 10 ] state . area << [ 7 , 11 ] state . area << [ 7 , 12 ] state . area << [ 7 , 12 ] state . area << [ 7 , 13 ] state . area << [ 8 , 13 ] state . area << [ 9 , 13 ] state . area << [ 10 , 13 ] state . area << [ 11 , 13 ] state . area << [ 12 , 13 ] state . area << [ 12 , 12 ] state . area << [ 8 , 12 ] state . area << [ 9 , 12 ] state . area << [ 10 , 12 ] state . area << [ 11 , 12 ] state . area << [ 12 , 11 ] state . area << [ 13 , 11 ] state . area << [ 13 , 10 ] state . area << [ 13 , 9 ] state . area << [ 13 , 8 ] state . area << [ 13 , 7 ] state . area << [ 13 , 6 ] state . area << [ 12 , 6 ] state . area << [ 14 , 6 ] state . area << [ 14 , 5 ] state . area << [ 13 , 5 ] state . area << [ 12 , 5 ] state . area << [ 12 , 4 ] state . area << [ 13 , 4 ] state . area << [ 14 , 4 ] state . area << [ 1 , 6 ] state . area << [ 6 , 6 ] end
Adds elements into the state.area collection
The dungeon is derived using the coordinates of this collection
Adds elements into the state . area collection The dungeon is derived using the coordinates of this collection