From 6a6f7be378bee10679e9e1ea61a70b00b4731589 Mon Sep 17 00:00:00 2001 From: BoredGuy Date: Wed, 15 Jan 2025 18:12:03 +0300 Subject: Scuffed Resource System I am super proud of this one TBH --- Week1-Pacman/src/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Week1-Pacman/src/main.c') diff --git a/Week1-Pacman/src/main.c b/Week1-Pacman/src/main.c index 6ae2fde..b36286e 100644 --- a/Week1-Pacman/src/main.c +++ b/Week1-Pacman/src/main.c @@ -5,6 +5,7 @@ #include "pacman.h" #include "map.h" #include "collision.h" +#include "resources.h" #define WINDOW_WIDTH 800 #define WINDOW_HEIGHT 600 @@ -28,19 +29,17 @@ int main(int argc, char** argv) { -1, SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_ACCELERATED); + load_resources(&demo); bool running = true; SDL_Event e; struct pacman pacman = {0}; - map_init(&demo); - struct map map = {0}; load_map("assets/Maps/maze.csv", &map); keyboard = SDL_GetKeyboardState(NULL); - load_pacman_spritesheet(&demo); init_pacman(&pacman, &(struct pacman_init) { .initial_xpos = 100, .initial_ypos = 200, -- cgit v1.2.3