X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=main.c;h=4942aa2c5ac0f0f721fb0316d0ebdd57b432bb40;hp=be5444b2e83a02293fd0a1c42b384ae9b637c688;hb=e10d6c0b95e2f4fe7acd75733370dae71bb3b73f;hpb=27592afb035feefb37bff84eb3b42a1c6bff5621 diff --git a/main.c b/main.c index be5444b..4942aa2 100644 --- a/main.c +++ b/main.c @@ -111,7 +111,7 @@ char *initerror = ""; float xship,yship = 240.0; // X position, 0..XSIZE float xvel,yvel; // Change in X position per tick. float rockrate,rockspeed; -float movementrate; +float movementrate; // this controls the speed of everything that moves. float yscroll; float scrollvel; @@ -517,30 +517,30 @@ init(int fullscreen) { } // Load the banners - NULLERROR(temp = IMG_Load(load_file("banners/variations.png"))); + NULLERROR(temp = IMG_Load(add_path("banners/variations.png"))); NULLERROR(surf_b_variations = SDL_DisplayFormat(temp)); - NULLERROR(temp = IMG_Load(load_file("banners/on.png"))); + NULLERROR(temp = IMG_Load(add_path("banners/on.png"))); NULLERROR(surf_b_on = SDL_DisplayFormat(temp)); - NULLERROR(temp = IMG_Load(load_file("banners/rockdodger.png"))); + NULLERROR(temp = IMG_Load(add_path("banners/rockdodger.png"))); NULLERROR(surf_b_rockdodger = SDL_DisplayFormat(temp)); - NULLERROR(temp = IMG_Load(load_file("banners/game.png"))); + NULLERROR(temp = IMG_Load(add_path("banners/game.png"))); NULLERROR(surf_b_game = SDL_DisplayFormat(temp)); - NULLERROR(temp = IMG_Load(load_file("banners/over.png"))); + NULLERROR(temp = IMG_Load(add_path("banners/over.png"))); NULLERROR(surf_b_over = SDL_DisplayFormat(temp)); - surf_font_big = IMG_Load(load_file(BIG_FONT_FILE)); + surf_font_big = IMG_Load(add_path(BIG_FONT_FILE)); g_font = SFont_InitFont(surf_font_big); // Load the spaceship graphic. - NULLERROR(temp = IMG_Load(load_file("sprites/ship.png"))); + NULLERROR(temp = IMG_Load(add_path("sprites/ship.png"))); NULLERROR(surf_ship = SDL_DisplayFormat(temp)); // Load the life indicator (small ship) graphic. - NULLERROR(temp = IMG_Load(load_file("indicators/life.png"))); + NULLERROR(temp = IMG_Load(add_path("indicators/life.png"))); NULLERROR(surf_life = SDL_DisplayFormat(temp)); // Create the array of black points; @@ -565,11 +565,11 @@ init(int fullscreen) { for(i = 0; i