diff options
| author | realtradam <[email protected]> | 2022-01-15 15:56:24 -0500 |
|---|---|---|
| committer | realtradam <[email protected]> | 2022-01-15 15:56:24 -0500 |
| commit | 6c5e177efd99b3dfc3a4e6925529d6eb545537cb (patch) | |
| tree | 398df67eaf6c2009908adcf80d45f9d8a904cad4 | |
| parent | 1b267b74a154abee9b67adc15474bf8c30ba33a8 (diff) | |
| download | FelFlameEngine-6c5e177efd99b3dfc3a4e6925529d6eb545537cb.tar.gz FelFlameEngine-6c5e177efd99b3dfc3a4e6925529d6eb545537cb.zip | |
new task to run game
| -rw-r--r-- | Rakefile | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -35,10 +35,6 @@ namespace :build do system("../../mruby/bin/mrbc -Bbytecode -obytecode.h main.rb") end end - desc 'Launch the game' - task :playtest => :single_file do - system("./mruby/build/host/bin/mruby build/temp/main.rb'") - end desc 'Build the game for web' task :web => :bytecode do Dir.mkdir("build/web") unless File.exists?("build/web") @@ -62,6 +58,15 @@ namespace :build do #end end +desc 'Launch the game' +task :playtest => "build:single_file" do + Dir.chdir("build/temp") do + system("../../mruby/build/host/bin/mruby main.rb") + end +end +task :p => :playtest + + namespace :clean do desc "Clean the mruby build folders" task :mruby do |
