summary refs log tree commit diff stats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2015-03-12 16:43:49 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2015-03-12 16:43:49 -0400
commit4c0869841d9ee6f8cc567b3e9eb2249193fc9f83 (patch)
treeff24074432b0178516bb7e2c43e87e8a9d72cadc /src/main.cpp
parent1a392a79b0491c5acc766705698191ed2ed6c2e6 (diff)
downloadtherapy-4c0869841d9ee6f8cc567b3e9eb2249193fc9f83.tar.gz
therapy-4c0869841d9ee6f8cc567b3e9eb2249193fc9f83.tar.bz2
therapy-4c0869841d9ee6f8cc567b3e9eb2249193fc9f83.zip
Play a sound when you jump
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index e37c2dd..96eb7da 100644 --- a/src/main.cpp +++ b/src/main.cpp
@@ -3,12 +3,14 @@
3#include "renderer.h" 3#include "renderer.h"
4#include <cstdlib> 4#include <cstdlib>
5#include "game.h" 5#include "game.h"
6#include "muxer.h"
6 7
7int main() 8int main()
8{ 9{
9 srand(time(NULL)); 10 srand(time(NULL));
10 11
11 GLFWwindow* window = initRenderer(); 12 GLFWwindow* window = initRenderer();
13 initMuxer();
12 14
13 // Put this in a block so game goes out of scope before we destroy the renderer 15 // Put this in a block so game goes out of scope before we destroy the renderer
14 { 16 {
@@ -16,6 +18,7 @@ int main()
16 game.execute(window); 18 game.execute(window);
17 } 19 }
18 20
21 destroyMuxer();
19 destroyRenderer(); 22 destroyRenderer();
20 23
21 return 0; 24 return 0;