diff options
Diffstat (limited to 'game/main.rb')
| -rw-r--r-- | game/main.rb | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/game/main.rb b/game/main.rb index 0721741..709a91a 100644 --- a/game/main.rb +++ b/game/main.rb @@ -1,6 +1,9 @@ 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) @@ -29,10 +32,14 @@ puts "true: #{circ1.collide_with_circle? circ1}" # ya pause_champ = Rl::Texture.new("./assets/PauseChamp.png") puts "#{pause_champ.w} #{pause_champ.h}" -FECS::Cmp.new('Yep', x: 3) +collect_this_texture = Rl::Texture.new("./assets/PauseChamp.png") +collect_this_texture = nil -a = FECS::Cmp::Yep.new +boop = Rl::Sound.new("./assets/boop.wav") +# FelECS test +FECS::Cmp.new('Yep', x: 3) +a = FECS::Cmp::Yep.new puts "A: #{a.x}" y = 10 |
