Skip to content

Commit

Permalink
Update examples/src/raylib.c
Browse files Browse the repository at this point in the history
  • Loading branch information
jdeokkim committed Oct 2, 2024
1 parent 1cd6bac commit 65fa95e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
Binary file removed examples/res/images/raylib-0.png
Binary file not shown.
Binary file removed examples/res/images/raylib-40.png
Binary file not shown.
Binary file added examples/res/images/raylib-44.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed examples/res/images/raylib-46.png
Binary file not shown.
8 changes: 4 additions & 4 deletions examples/src/raylib.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
#define SCREEN_WIDTH 1280
#define SCREEN_HEIGHT 800

#define LOGO_WIDTH_IN_PIECES 40
#define LOGO_HEIGHT_IN_PIECES 40
#define LOGO_WIDTH_IN_PIECES 44
#define LOGO_HEIGHT_IN_PIECES 44

// clang-format on

Expand All @@ -58,7 +58,7 @@ typedef struct _Piece {
static const Rectangle SCREEN_BOUNDS = { .width = SCREEN_WIDTH,
.height = SCREEN_HEIGHT };

static const char *RAYLIB_TEXTURE_PATH = "../res/images/raylib-40.png";
static const char *RAYLIB_TEXTURE_PATH = "../res/images/raylib-44.png";

static const float CELL_SIZE = 0.75f, DELTA_TIME = 1.0f / TARGET_FPS;

Expand Down Expand Up @@ -92,7 +92,7 @@ int main(void) {
#ifdef PLATFORM_WEB
emscripten_set_main_loop(UpdateExample, 0, 1);
#else
// SetTargetFPS(TARGET_FPS);
SetTargetFPS(TARGET_FPS);

while (!WindowShouldClose())
UpdateExample();
Expand Down

0 comments on commit 65fa95e

Please sign in to comment.