Skip to content

Commit 5768024

Browse files
committed
not a compile time constant
1 parent 4595256 commit 5768024

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/raylib_game

-8 Bytes
Binary file not shown.

src/raylib_game.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static RenderTexture2D target = {0}; // Render texture to render our game
6565
static const Vector3 cameraNeckStart = (Vector3){0.f, 3.f, 6.f};
6666

6767
static GameState activeState = GAME_MENU;
68-
static Vector3 cameraNeck = cameraNeckStart;
68+
static Vector3 cameraNeck = (Vector3){0.f, 0.f, 0.f};
6969
static float clockStartRate = 0.8f;
7070
static int score = 0;
7171

@@ -122,6 +122,7 @@ int main(void)
122122
Vector3 start = (Vector3){0.f, 0.f, 2.f};
123123
Vector3 forward = (Vector3){0.f, 0.f, -1.f};
124124

125+
cameraNeck = cameraNeckStart;
125126
Camera3D camera = {0};
126127
camera.position = cameraNeck;
127128
camera.target = start;

0 commit comments

Comments
 (0)