summaryrefslogtreecommitdiffhomepage
path: root/game/main.rb
blob: 5bf984daf265736f0066c08f4ba87c2f16c05557 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
include Test
WHITE = Color.new(r: 255, g: 255, b: 255, a: 255)
GRAY = Color.new(r: 100, g: 100, b: 100, a: 255)

GRAY.r += 50

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!", pos_x: 190, pos_y: 200, font_size: 20, color: GRAY)

  end_drawing
end
close_window