From e3ab29bb4d7174cae65de2275f19105eb3d93d91 Mon Sep 17 00:00:00 2001 From: Zuhaitz Méndez Fernández de Aránguiz Date: Sun, 25 Jan 2026 18:24:05 +0000 Subject: APE shall never kill APE --- examples/games/zen_craft/main.zc | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'examples') diff --git a/examples/games/zen_craft/main.zc b/examples/games/zen_craft/main.zc index c130e72..90b06a8 100644 --- a/examples/games/zen_craft/main.zc +++ b/examples/games/zen_craft/main.zc @@ -3,20 +3,20 @@ import "raylib.h" as rl; import "math.h"; -const SCREEN_WIDTH = 800; -const SCREEN_HEIGHT = 450; -const TITLE = "Zen Craft"; +def SCREEN_WIDTH = 800; +def SCREEN_HEIGHT = 450; +def TITLE = "Zen Craft"; // Block Types (Enum) -const BLOCK_AIR = 0; -const BLOCK_DIRT = 1; -const BLOCK_GRASS = 2; -const BLOCK_STONE = 3; +def BLOCK_AIR = 0; +def BLOCK_DIRT = 1; +def BLOCK_GRASS = 2; +def BLOCK_STONE = 3; // Physics Constants -const GRAVITY = 18.0; -const JUMP_FORCE = 8.0; -const MOVE_SPEED = 5.0; +def GRAVITY = 18.0; +def JUMP_FORCE = 8.0; +def MOVE_SPEED = 5.0; // ** World / Chunk ** @@ -413,7 +413,7 @@ impl Player { fn main() { rl::InitWindow(SCREEN_WIDTH, SCREEN_HEIGHT, TITLE); rl::SetWindowState(rl::FLAG_WINDOW_RESIZABLE); - defer rl::CloseWindow(); + defer { rl::CloseWindow(); } rl::SetTargetFPS(60); @@ -520,4 +520,4 @@ fn main() { rl::EndDrawing(); } -} \ No newline at end of file +} -- cgit v1.2.3