track.rb
# Loads each tile of a type of track
Loads each tile of a type of track
Loads each tile of a type of track
def load_track_images(folder_path)
  files = Dir.entries(folder_path)
  arr = Array.new()
  i = 2
  while (i < files.size)
    arr << Gosu::Image.new(folder_path + files[i])
    i += 1
  end
  arr
end
def load_track_images ( folder_path ) files = Dir . entries ( folder_path ) arr = Array . new ( ) i = 2 while ( i < files . size ) arr << Gosu :: Image . new ( folder_path + files [ i ] ) i += 1 end arr end
Loads each tile of a type of track
Loads each tile of a type of track
folder_path
<not_specific>