diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2018-01-03 13:26:37 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2018-01-03 13:27:23 +0000 |
commit | 86e4aa6265ade205aba94494a7a31a83b5686387 (patch) | |
tree | d7f9998b55d3fcc2b083242086afd05c1d436b6e /examples/shooter/main.cpp | |
parent | 9038ee45f93b1ae07a28a516781676ebe3a67536 (diff) | |
download | YAGE-86e4aa6265ade205aba94494a7a31a83b5686387.tar.gz YAGE-86e4aa6265ade205aba94494a7a31a83b5686387.zip |
[Engine] [Example] Reenabled vsync and working on example.
Diffstat (limited to 'examples/shooter/main.cpp')
-rw-r--r-- | examples/shooter/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/shooter/main.cpp b/examples/shooter/main.cpp index d2727877..9a8d22d0 100644 --- a/examples/shooter/main.cpp +++ b/examples/shooter/main.cpp @@ -1,6 +1,7 @@ #include <yage/yage.h> #include "player.h" +#include "bullet.h" using std::cout; @@ -63,6 +64,7 @@ int main(int argc, char **argv) auto textures = male_l; Player player({400, 300, 48 * 2, 64 * 2}, textures.front()); + Bullet bullet({400, 300, 25, 25}); while (!window.shouldClose()) { window.pollEvents(); @@ -120,6 +122,7 @@ int main(int argc, char **argv) window.clearBuffer(); player.draw(sp); + bullet.draw(sp); sp.render(); window.swapBuffer(); |