summaryrefslogtreecommitdiffhomepage
path: root/game/main.rb
diff options
context:
space:
mode:
Diffstat (limited to 'game/main.rb')
-rw-r--r--game/main.rb8
1 files changed, 4 insertions, 4 deletions
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