This commit is contained in:
_N3m0 2024-03-20 12:10:05 +01:00
parent 8a43c39405
commit a9b20ba754
2 changed files with 3 additions and 3 deletions

BIN
data/map2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

6
main.c
View File

@ -40,7 +40,7 @@ char *cardinal_text[CARDINAL_SIZE] = {
Vec2i screen = {.width = 1344, .height = 756};
const int trap_len = 200;
const int trap_len = 300;
Rectangle trap = {
.width = trap_len,
.height = trap_len,
@ -52,7 +52,7 @@ const int player_speed = 5;
Texture map;
Vector2 map_coord;
const float map_factor = 100.0f;
const float map_factor = 2.0f;
void handle_resize_window(void)
{
@ -182,7 +182,7 @@ int main(void)
SetTargetFPS(60);
player = (Vec2i) {.x = screen.width/2, .y = screen.height/2};
map = LoadTexture("data/map.png");
map = LoadTexture("data/map2.png");
map_coord = (Vector2){
screen.width/2 - map.width*map_factor/2,
screen.height/2 - map.height*map_factor/2,