summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
author_Tradam <[email protected]>2022-04-04 15:29:01 -0400
committer_Tradam <[email protected]>2022-04-04 15:29:01 -0400
commit976ced04e889d48a652d544c635dafd7ff6f6100 (patch)
tree5c116becd953556365bdde416364a45192bbf261
parent96c340c867471ae11bae12d0dbd4f7308007dbe4 (diff)
downloadFelFlameEngine-976ced04e889d48a652d544c635dafd7ff6f6100.tar.gz
FelFlameEngine-976ced04e889d48a652d544c635dafd7ff6f6100.zip
working compile and playtest
-rw-r--r--Rakefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index fabf46f..493d8f6 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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