man, i hate tank games

Posted by beam on Dec. 11, 2006, 1:37 a.m.

small tank project

yeah, i know i have a lot of concurrent projects. oh well, so does everybody. right now i'm working on a simple tank game putting to use the terrain method shown in the previous post.

you aim and fire with the mouse, and control the tank with the wasd keys. that's all it does, you just control the tank.

at first i was having problems with the aiming, but then evilish pointed out some nifty functions

you can download it if you want, it's nothing much, another example i guess

bug fixes

there was a bug in the terrain trace example from my last post that used the create event that skipped over certain configurations. i figured it out while using it in the tank project. it's fixed now, and can be downloaded again

other stuff

haven't posted in a while. exams are dumb and i hate them

Comments

Evilish 17 years, 11 months ago

bah, cos and sin needs a radian, not a degree…

x = radius * cos(radtodeg(angle of rotation))

or just use the lengthdir_x/y functions

beam 17 years, 11 months ago

thanks, the lengthdir functions worked fine. i had no idea those even existed

Misconstruct 17 years, 11 months ago

Graphics look cool.

shadowstrike32 17 years, 11 months ago

radians are stupid…

JW 17 years, 10 months ago

I <3 tank games somehow. :S