diff options
Diffstat (limited to 'examples/game/game.tm')
| -rw-r--r-- | examples/game/game.tm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/game/game.tm b/examples/game/game.tm index 36ef14ff..ce08c329 100644 --- a/examples/game/game.tm +++ b/examples/game/game.tm @@ -5,24 +5,24 @@ use ./world.tm func main(map=(./map.txt)): InitWindow(1600, 900, CString("raylib [core] example - 2d camera")) - map_contents := map:read() or exit("Could not find the game map: $map") + map_contents := map.read() or exit("Could not find the game map: $map") world := @World( player=@Player(Vector2(0,0), Vector2(0,0)), goal=@Box(Vector2(0,0), Vector2(50,50), color=Color(0x10,0xa0,0x10)), boxes=@[], ) - world:load_map(map_contents) + world.load_map(map_contents) SetTargetFPS(60) while not WindowShouldClose(): dt := GetFrameTime() - world:update(dt) + world.update(dt) BeginDrawing() ClearBackground(Color(0xCC, 0xCC, 0xCC, 0xFF)) - world:draw() + world.draw() EndDrawing() CloseWindow() |
