Module: Coronate::Builder::GameBuilder

Defined in:
lib/coronate/builder/game_builder.rb

Instance Method Summary collapse

Instance Method Details

#build_gameObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/coronate/builder/game_builder.rb', line 4

def build_game
  template 'builder/templates/game/build.settings.tt', "#{@name}/build.settings"
  template 'builder/templates/game/config.lua.tt', "#{@name}/config.lua"
  template 'builder/templates/game/main.lua.tt', "#{@name}/main.lua"
  template 'builder/templates/game/menu.lua.tt', "#{@name}/menu.lua"
  template 'builder/templates/game/level1.lua.tt', "#{@name}/level1.lua"

  copy_file 'builder/templates/game/background.jpg', "#{@name}/background.jpg"
  copy_file 'builder/templates/game/button-over.png', "#{@name}/button-over.png"
  copy_file 'builder/templates/game/button.png', "#{@name}/button.png"
  copy_file 'builder/templates/game/crate.png', "#{@name}/crate.png"
  copy_file 'builder/templates/game/grass.png', "#{@name}/grass.png"
  copy_file 'builder/templates/game/logo.png', "#{@name}/logo.png"
end