summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--Rakefile2
-rw-r--r--game/main.rb8
-rw-r--r--vendor/lib/tux/mruby/libmruby.abin8577692 -> 8581804 bytes
3 files changed, 5 insertions, 5 deletions
diff --git a/Rakefile b/Rakefile
index 0922c64..1ab116a 100644
--- a/Rakefile
+++ b/Rakefile
@@ -51,7 +51,7 @@ namespace :build do
task :web => :bytecode do
Dir.mkdir("build/web") unless File.exists?("build/web")
Dir.chdir("build/web") do
- system("emcc -s WASM=1 -Os -I#{@include_dir}/raylib -I#{@include_dir}/mruby -I#{@bytecode_header_path} #{@vendor_dir}/boilerplate.c #{@library_dir}/web/mruby/libmruby.a #{@library_dir}/web/raylib/libraylib.a -o index.html --closure 1 -s USE_GLFW=3")
+ system("emcc -Os -Wall -I#{@include_dir}/raylib -I#{@include_dir}/mruby -I#{@bytecode_header_path} #{@vendor_dir}/boilerplate.c #{@library_dir}/web/mruby/libmruby.a #{@library_dir}/web/raylib/libraylib.a -o index.html -s USE_GLFW=3 -DPLATFORM_WEB --preload-file ./assets")
end
end
desc 'Build the game for Linux'
diff --git a/game/main.rb b/game/main.rb
index f8731fd..1bbad88 100644
--- a/game/main.rb
+++ b/game/main.rb
@@ -1,9 +1,6 @@
text = "Our poggies game engine :^)"
Rl.init_window(600, 600, text)
-puts 'init audio device'
-#Rl.init_audio_device
-puts 'it was init\'ed'
Rl.target_fps = 60
color = Rl::Color.new(200,50,50,255)
@@ -36,7 +33,6 @@ puts "#{pause_champ.w} #{pause_champ.h}"
collect_this_texture = Rl::Texture.new("./assets/PauseChamp.png")
collect_this_texture = nil
-boop = Rl::Sound.new("./assets/boop.wav")
# FelECS test
FECS::Cmp.new('Yep', x: 3)
@@ -57,6 +53,10 @@ Rl.while_window_open do
end
if Rl.mouse_button_pressed? 0
+ puts 'init audio device'
+ Rl.init_audio_device
+ puts 'it was init\'ed'
+ boop = Rl::Sound.new("./assets/boop.wav")
puts "Blend Mode: #{blend_mode += 1}"
end
diff --git a/vendor/lib/tux/mruby/libmruby.a b/vendor/lib/tux/mruby/libmruby.a
index ed0414b..0b4653c 100644
--- a/vendor/lib/tux/mruby/libmruby.a
+++ b/vendor/lib/tux/mruby/libmruby.a
Binary files differ