Search found 3 matches

by proudsea
Tue Mar 04, 2014 2:16 am
Forum: Games and Creations
Topic: a small tank game
Replies: 5
Views: 2704

Re: a small tank game

Your collision handling is messed up. Enemies can't go through walls but you can??? Enemies colliding with enemies give weird results. And of course, you need math.random(10,49)/10 Need a scoring system. Good start - keep at it. Hi Ref, thanks for your kindly advices, I will complete the game and t...
by proudsea
Tue Mar 04, 2014 2:13 am
Forum: Games and Creations
Topic: a small tank game
Replies: 5
Views: 2704

Re: a small tank game

math.random expects its arguments to be integers. If they are not, weird things could happen. When called without arguments, returns a uniform pseudo-random real number in the range [0,1). When called with an integer number m, math.random returns a uniform pseudo-random integer in the range [1, m]....
by proudsea
Mon Mar 03, 2014 12:32 pm
Forum: Games and Creations
Topic: a small tank game
Replies: 5
Views: 2704

a small tank game

Hi everyone, This is the first time I post topic in the forums. I have been learning LOVE for almost a month, and it deeply attracts me. The small program in the attachment is a tank game, the player could move around and click space to shoot the enemy. It is also my first love game.... so please gi...