diff options
| author | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-25 18:24:05 +0000 |
|---|---|---|
| committer | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-25 18:24:05 +0000 |
| commit | e3ab29bb4d7174cae65de2275f19105eb3d93d91 (patch) | |
| tree | 89970111c1be4c3ddd291b720d4fdf496f10b2d5 /examples/games/zen_craft/main.zc | |
| parent | 489336b2101bf16edeec7bfc4379408eb19b936e (diff) | |
APE shall never kill APE
Diffstat (limited to 'examples/games/zen_craft/main.zc')
| -rw-r--r-- | examples/games/zen_craft/main.zc | 24 |
1 files changed, 12 insertions, 12 deletions
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 +} |
