1 # This game demo uses Raylib to present a simple maze-type game
5 func main(map=(./map.txt))
6 InitWindow(1600, 900, CString("raylib [core] example - 2d camera"))
8 map_contents := map.read() or exit("Could not find the game map: $map")
11 player=@Player(Vector2(0,0), Vector2(0,0)),
12 goal=@Box(Vector2(0,0), Vector2(50,50), color=Color(0x10,0xa0,0x10)),
15 world.load_map(map_contents)
19 while not WindowShouldClose()
24 ClearBackground(Color(0xCC, 0xCC, 0xCC, 0xFF))