diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2015-10-07 08:35:15 -0400 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2015-10-07 08:35:15 -0400 |
commit | f49eb15dbc7b8d77ff9580ccd44d42b9969969fc (patch) | |
tree | 825f84366d9f9212369a3ab10743873eb7a405f6 /main.cpp | |
parent | 6986331694adb60265c815af6637caf2dbc23ede (diff) |
Added walking animation to player
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 17 |
1 files changed, 3 insertions, 14 deletions
@@ -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; } |