summaryrefslogtreecommitdiffhomepage
path: root/main.rb
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2022-01-22 06:43:20 -0500
committerrealtradam <[email protected]>2022-01-22 06:43:20 -0500
commit943bffc40953b95e9d07aeda0b4b87ac7be848fd (patch)
treeb255b8ead8b3892d47cb25d45f82df3a5a3c1a1e /main.rb
parent23c419f485532689b41fdbf67b5aa3eb4ae05b70 (diff)
downloadorc-arena-of-time-943bffc40953b95e9d07aeda0b4b87ac7be848fd.tar.gz
orc-arena-of-time-943bffc40953b95e9d07aeda0b4b87ac7be848fd.zip
init
Diffstat (limited to 'main.rb')
-rw-r--r--main.rb30
1 files changed, 30 insertions, 0 deletions
diff --git a/main.rb b/main.rb
new file mode 100644
index 0000000..2f5b14e
--- /dev/null
+++ b/main.rb
@@ -0,0 +1,30 @@
+#Rl.init_window(900, 506, 'Da Game')
+puts 'before window'
+Rl.init_window(900, 675, 'Da Game')
+
+puts 'before require'
+require './src/components/player.rb'
+require './src/systems/systems.rb'
+puts 'after require'
+
+#WHITE = Rl::Color.new(255,255,255,255)
+#BLACK = Rl::Color.new(0,0,0,255)
+#Lautrec = Rl::Texture.new('./assets/lancelot_.png')
+#Lautrec_Source = Rl::Rectangle.new(0,0,24,24)
+#Position = Rl::Rectangle.new(0,0,48,48)
+#Origin = Rl::Vector2.new(0,0)
+
+#Rl.init_audio_device if Rl.platform == 'web'
+
+Rl.while_window_open do
+
+ Rl.draw(clear_color: WHITE) do
+ #Rl.draw_texture_pro(texture: Lautrec, origin: Origin, source: Lautrec_Source, dest: Position)
+ #draw_texture_pro(texture:, source:, dest:, origin: Rl::Vector.new(0,0), rotation: 0, tint: Rl::Color.new(255,255,255,255))
+ puts 'start stage'
+ FECS::Stage.call
+ puts 'end stage'
+ end
+end
+
+