Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Little 3d tank shooter game

Author
Message
lower logic
18
Years of Service
User Offline
Joined: 15th Jun 2006
Location:
Posted: 14th Sep 2006 03:07 Edited at: 14th Sep 2006 03:10
This is a little tank game I wrote about a week ago. The tanks correctly pitch/roll on the hills. Also, the aiming turrets does some nifty little transformations to convert a global aim direction into the angles the turret needs to point at no matter what sort of hill it is on. The enemy tanks have a basic AI that tells them to circle the closest tank (randomly circle left or right), which looks pretty smart on screen for the simplicity of the actual logic. Also, the tank handling is very Halo-like in that you use WASD to control the direction of the tank relative to the camera, and rotate the camera view to see where you are looking. The pseudo-physics isn't as realistic as I'd like, but the movement still feels pretty natural. I was playing with the idea of turning this into a complete, media-less, tank shoot em up but right now I have my hands full with the 2d physics simulation challenge.

Controls: WASD - move, mouselook, spacebar - shoot, and left/right mouse click for camera zoom.

Anyway, here's the code, just copy, paste, run:

Mr Kohlenstoff
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Germany
Posted: 14th Sep 2006 16:47
Really amusing, to see the tanks driving and shooting around. Maybe you should decrease the mouse-intensity a bit, it's very hard to aim in this version.
Anyway... good work!

Visit the DBPro - Speed up your game-Thread. http://forum.thegamecreators.com/?m=forum_view&t=88661&b=1
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 17th Sep 2006 17:11
That's awesome. The matrix looks cool too.

Dark Phoenix
18
Years of Service
User Offline
Joined: 17th Sep 2006
Location:
Posted: 18th Sep 2006 04:02
It keeps coming up with errors...

Code segments wrong etc...

Reality will sneak up behind you and slit your throat -- silently, without hesitation, without mercy.
Maxi Studio
18
Years of Service
User Offline
Joined: 15th Jun 2006
Location: The Middle Of Norway
Posted: 26th Oct 2006 18:54
Where should i put the code??

MAXI STUDIO

http://maxi-studio.1500mb.com
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 28th Oct 2006 01:38
In your DBP IDE (the big text bit that shows up when you open it) and click F5

Gamer Making
18
Years of Service
User Offline
Joined: 20th Sep 2006
Location: sitting at the comp programming
Posted: 30th Oct 2006 23:15
is it dbc?

Bach Tran

Login to post a reply

Server time is: 2024-11-22 23:45:55
Your offset time is: 2024-11-22 23:45:55