diff options
| author | _Tradam <[email protected]> | 2022-04-04 15:29:01 -0400 |
|---|---|---|
| committer | _Tradam <[email protected]> | 2022-04-04 15:29:01 -0400 |
| commit | 976ced04e889d48a652d544c635dafd7ff6f6100 (patch) | |
| tree | 5c116becd953556365bdde416364a45192bbf261 | |
| parent | 96c340c867471ae11bae12d0dbd4f7308007dbe4 (diff) | |
| download | FelFlameEngine-976ced04e889d48a652d544c635dafd7ff6f6100.tar.gz FelFlameEngine-976ced04e889d48a652d544c635dafd7ff6f6100.zip | |
working compile and playtest
| -rw-r--r-- | Rakefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -53,14 +53,16 @@ namespace :build do line.include? 'require ' end.join + Dir.mkdir("build") unless File.exists?("build") Dir.mkdir("build/temp") unless File.exists?("build/temp") File.write('build/temp/main.rb', result) end #desc 'Compile the game to bytecode' task :bytecode => :single_file do + Dir.mkdir("build") unless File.exists?("build") Dir.mkdir("build/temp") unless File.exists?("build/temp") Dir.chdir("build/temp") do - system("../../mruby/bin/mrbc -Bbytecode -obytecode.h main.rb") + system("../../core/mruby/bin/mrbc -Bbytecode -obytecode.h main.rb") end end desc 'Build the game for web' @@ -92,7 +94,7 @@ end desc 'Launch the game' task :playtest => "build:single_file" do Dir.chdir("game") do - system("../mruby/build/host/bin/mruby ../build/temp/main.rb") + system("../core/mruby/build/host/bin/mruby ../build/temp/main.rb") end end task :p => :playtest |
