Class: Yeah::Web::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/yeah/web/builder.rb

Overview

TODO:

DRY internals with Web::Server.

Web::Builder builds a game into a standalone package that is playable through a web browser. To build a game, enter yeah build in a command-line within a game project.

Instance Method Summary collapse

Instance Method Details

#buildnil

Build game in working directory.

Returns:

  • (nil)

16
17
18
19
20
21
22
# File 'lib/yeah/web/builder.rb', line 16

def build
  make_build_dirs
  setup_compiler
  compile

  puts "Built game package to `builds/web`."
end