Another early tanks game

Show off your games, demos and other (playable) creations.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Another early tanks game

Post by bartbes »

Well, there are math.deg and math.rad, and both the lua and LÖVE manuals specify which unit they want. And I can tell you what the key is:
degrees / 180 * math.pi = rad
paclito
Prole
Posts: 35
Joined: Wed Apr 22, 2009 8:33 pm

Re: Another early tanks game

Post by paclito »

I've solved the problem of bullets and the one about the shot, i'll send te solution this night...

I don't know that make a game was so difficult..... each thing I think is a big problem.... how to make one anim visible when a key is pressed and only one time... how to move the enemies with a little of AI... how to... how to.....
paclito
Prole
Posts: 35
Joined: Wed Apr 22, 2009 8:33 pm

Re: Another early tanks game

Post by paclito »

here is v3 of this :-)

when hit space a bullet is sent in the direction where the turret is....... a bit slow and not very real when it gets a wall.....
the program has a function for draw a explision at the end of canon when space is pressed...... but only works when the 20 gun is shotted...... it's a very strange canon, i know....... :ultraglee:

TODO
- adapt a pre-rendered 3d model of the tank
- more realist bullets
- some enemies and their asociated AI
- some cups of coffee ....

Saludos to all from spain!
Attachments
witanks_v3.love
(54.68 KiB) Downloaded 139 times
paclito
Prole
Posts: 35
Joined: Wed Apr 22, 2009 8:33 pm

Re: Another early tanks game

Post by paclito »

Here is the v4,
I've added a prerendered tank....... and now when hit 'space' one bullet goes! with a flame! wow!! ;-)

i've assumed that my future work will not be games programmer but.....it's the best.... get things working is the best

Someone know where to search some code about AI? tanks firing to me? or maybe a tank pursuit my tank? ;-)
Attachments
witanks_v4.love
(142.75 KiB) Downloaded 142 times
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Another early tanks game

Post by Robin »

paclito wrote:or maybe a tank pursuit my tank? ;-)
The code for that would be (almost) trivial.

Anyways, I noticed a few things:
  • The bullets mysteriously slow down after hitting a wall.
  • The top of the tank is at an odd place on the bottom.
But for the rest: it's getting better ;).
Help us help you: attach a .love.
Post Reply

Who is online

Users browsing this forum: Amazon [Bot], Semrush [Bot] and 5 guests