From f49eb15dbc7b8d77ff9580ccd44d42b9969969fc Mon Sep 17 00:00:00 2001 From: drumsetmonkey Date: Wed, 7 Oct 2015 08:35:15 -0400 Subject: Added walking animation to player --- main.cpp | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 4aaf161..c11da6d 100644 --- a/main.cpp +++ b/main.cpp @@ -26,6 +26,7 @@ FILE* names; Mix_Music *music; Mix_Chunk *horn; +unsigned int loops = 0; extern void initEverything(void); @@ -57,20 +58,6 @@ int main(int argc, char *argv[]){ std::cout << "SDL_mixer could not initialize! SDL_mixer Error: " << Mix_GetError() << std::endl; } atexit(Mix_Quit); - -<<<<<<< HEAD - //Load music - music = Mix_LoadMUS("assets/BennyHillTheme.wav"); - horn = Mix_LoadWAV("assets/air-horn-club-sample_1.wav"); - if( music == NULL ){ - printf( "Failed to load beat music! SDL_mixer Error: %s\n", Mix_GetError() ); - } - //Mix_PlayMusic( music, -1 ); - - - -======= ->>>>>>> 1c0767766506407babdfefea9efe2b5627569244 // Turn on double buffering SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); // Create the window @@ -247,4 +234,6 @@ void logic(){ } } } + loops++; + //std::cout << loops << std::endl; } -- cgit v1.2.3