Code: Select all
Controls
Arrow keys to move
Left click to shoot a cube
Backspace to add tower. The towers change their X position every time they are made so they do not spawn inside each other.
'N' prints the amount of cubes in the world
Mouse to look
http://www.mediafire.com/file/mcqffyizjzz/Irrlicht.dll
The demo:
http://www.mediafire.com/file/z5dizwmte ... etdemo.exe
I have not posted the code because it is sloppy and I do not want to cause problems for new coders.
However, I would be glad to help anybody who wants it. Feel free to ask how something works.
If enough people want it, I will tidy the source and post it.
Edit:
Here is the source because I had a couple of requests and was bored today.
http://www.mediafire.com/file/yjwmyitmi ... etdemo.zip
I tried to point out most things that should not be done, but I forgot one. The collision shape for the boxes only needs to be created once and probably should be passed to the objectwithnode constructor.
I've added the dependencies (irrlicht, bullet) so it should compile right away.
Sorry Linux users. I love Liux too, but it isn't agreeing with my graphics card so I only supplied a VS solution.