From 21e9cf41c76047cabef60f64534a2768cd6809b5 Mon Sep 17 00:00:00 2001 From: _Tradam Date: Tue, 5 Apr 2022 16:29:28 -0400 Subject: . --- game | 1 - game/main.rb | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) delete mode 160000 game create mode 100644 game/main.rb diff --git a/game b/game deleted file mode 160000 index 199a7b1..0000000 --- a/game +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 199a7b1ddca336ab0d357131682927c08ee5b853 diff --git a/game/main.rb b/game/main.rb new file mode 100644 index 0000000..afade46 --- /dev/null +++ b/game/main.rb @@ -0,0 +1,21 @@ +include Test +WHITE = Color.new(r: 255, g: 255, b: 255, a: 255) +GRAY = Color.new(r: 100, g: 100, b: 100, a: 255) + +screen_width = 800 +screen_height = 450 + +init_window(width: screen_width, height: screen_height, title: "raylib [core] example - basic window") + +Test.target_fps = 60 + +while !window_should_close do + begin_drawing + + clear_background(WHITE) + + draw_text(text: "Congrats! You created your first window!", posX: 190, posY: 200, fontSize: 20, color: GRAY) + + end_drawing +end +close_window -- cgit v1.2.3