aboutsummaryrefslogtreecommitdiff
path: root/examples/game
diff options
context:
space:
mode:
Diffstat (limited to 'examples/game')
-rw-r--r--examples/game/game.tm4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/game/game.tm b/examples/game/game.tm
index c7020f55..8c5124d0 100644
--- a/examples/game/game.tm
+++ b/examples/game/game.tm
@@ -9,9 +9,7 @@ func main(map=(./map.txt)):
extern InitWindow:func(w:Int32, h:Int32, title:CString)->Void
InitWindow(1600, 900, "raylib [core] example - 2d camera")
- map_contents := if contents := map:read():
- contents
- else: exit(code=1, "Could not find the game map: $map")
+ map_contents := map:read():or_exit("Could not find the game map: $map")
World.CURRENT:load_map(map_contents)