Re: snake game
Posted: Fri Jan 16, 2015 9:52 pm
I found a small bug: When I go to the right and then press "up" and "left" in quick succession, then I die biting myself.
It's cool!please tell us what you think about it since it is our first game.
- This def can happen.I found a small bug: When I go to the right and then press "up" and "left" in quick succession, then I die biting myself.
- Speed up is 'X' and slow down is 'Y'?You should show controls had no idea how to adjust speed.
- Definitely this.And maybe you could multiply speed with score per eaten
just now i found out that you can speed up or slow down!PixelPiledriver wrote:-snip-
I think you misunderstood, and I explained it poorly. What I meant was:Jeeper wrote:If you can change speed on the go, then you would just speed up before hitting points and then instantly slowing down again.Dreanh wrote:Good job, liked it a lot! You should show controls had no idea how to adjust speed. And maybe you could multiply speed with score per eaten, so there is a reward for having higher speed?
Code: Select all
for i=1,#apple do
if shake[1].x+a==apple[i].x and shake[1].y+b==apple[i].y then
table.remove(apple,i)
table.insert(apple,1,spawn_random())
score=score+speed --Like this is what I meant, probably not necessary to multiply though since there is no var for scorePerApple.
to_spawn=to_spawn+1
to_wall=to_wall+1
ok=false
end
end