Oh look at that, totally reminds me of Worms (I love such games) ;)I looked at different things but finally settled with using an image, you can look at the source.
Very cool stuff you already implemented!
What did you use for the landscape? A vertexArray which stores each pixel?
Whats the CPU cost? ( I tried something similar ages ago and had quite high CPU costs haha)
Keep it up and add more weapons pls!
Yea, really cool, and the video looks nice too. :)Thank you.
"GameSetupScreen.h" is missingSorry about that , seems i didn't commited it .You can clone the updated repo.
A build script would be nice. ;)Well , I could have provided one but I do not know any cross-platform tools that could help me. :( Anyway I think this is a good time for me to learn cmake I will try and make one build script.
To compile , just compile all c++ files with a c++11 compiler( and link to SFML 2.1 )..
$ git clone https://github.com/amhndu/tanks-gameRun :
$ cd tanks-game
$ g++ -std=c++11 -O2 -o game *.cpp -lsfml-graphics -lsfml-window -lsfml-system -lGL -lGLU
$ ./game
Here you go: https://dl.dropboxusercontent.com/u/8088302/Tanks.7z (https://dl.dropboxusercontent.com/u/8088302/Tanks.7z)What errors ? I get none on g++ 4.8.1.
Please check your code! I get tons of warnings (most of them because of missing type conversion, but still).
I also got some errors, which were easy to fix though.
What errors ? I get none on g++ 4.8.1.
FYI , g++ has no concept of warning/error levels but you can turn on and off many different warnings (like passing -Wfoo).What errors ? I get none on g++ 4.8.1.
Nothing big, you probably have a different warning level on your compiler (idk how it is called for your compiler) and mine does treat some warnings as errors too like:deltaScroll = -menuList.size()+itemsVisible;Which gives me error C4146 (http://msdn.microsoft.com/en-us/library/4kh09110.aspx) for example.
Besides , is the executable statically linked ?i doubt it, as the size is very small .It is linked statically ;)
I tried to build the src and it does compile without throwing any warnings or errors :DOops! I forgot to remove those keybinding. Fixed it.
But during the gameplay, pressing 'H' key causes this:
Apart from that the gameplay is really very smooth.:)
But I still have two more small critics left - include a descrption of the controls(rather than the user having to guess which key does what) and also the fix the aim option('R' button press). The aim works too smoothly ;)I'll add the controls in the readme , also I've given the controls in the OP :)
Controls and Objective:
Use mouse to click on the HUD to set Rotation(or press R) , power and fire(or press Space) , Arrow Keys Left or Right to move the Tank.
It is a very simple game , destroy other tanks and you win, with only one type of weapon.