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
Another early tanks game
Re: Another early tanks game
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.....
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.....
Re: Another early tanks game
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.......
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!
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.......
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 140 times
Re: Another early tanks game
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? ;-)
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
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Another early tanks game
The code for that would be (almost) trivial.paclito wrote:or maybe a tank pursuit my tank? ;-)
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.
Help us help you: attach a .love.
Who is online
Users browsing this forum: Ahrefs [Bot] and 2 guests