Search found 11 matches

by blorbin
Mon Feb 15, 2016 5:47 am
Forum: Libraries and Tools
Topic: Snake Game Movement
Replies: 14
Views: 11310

Re: Snake Game Movement

When you iterate through them you give each of them the last position of the previous node. You can get the last position of the head by getting the snake.x and snake.y before you update its position inside the love.update function, as for the rest of the node all you have to do is propagate the ot...
by blorbin
Mon Feb 15, 2016 1:41 am
Forum: Libraries and Tools
Topic: Snake Game Movement
Replies: 14
Views: 11310

Re: Snake Game Movement

In the function food:update(dt) you're only increasing the width of the head segment, so you're making a bigger segment, not a bigger snake. Instead what you need to do is create a new segments field inside your snake where you'll keep every segment and iterate through them when updating/drawing. o...
by blorbin
Sun Feb 14, 2016 11:19 pm
Forum: Libraries and Tools
Topic: Snake Game Movement
Replies: 14
Views: 11310

Re: Snake Game Movement

By incrementing the x and y positions in a fixed amount you can make it "jump" as you want. You can also achieve the delay between jumps by following the first example here: https://love2d.org/wiki/love.update only instead of making the npc think, you're making the snake jump to the next ...
by blorbin
Sun Feb 14, 2016 8:48 pm
Forum: Libraries and Tools
Topic: Snake Game Movement
Replies: 14
Views: 11310

Re: Snake Game Movement

By incrementing the x and y positions in a fixed amount you can make it "jump" as you want. You can also achieve the delay between jumps by following the first example here: https://love2d.org/wiki/love.update only instead of making the npc think, you're making the snake jump to the next ...
by blorbin
Sun Feb 14, 2016 6:50 pm
Forum: General
Topic: LÖVE 0.10.1 released
Replies: 44
Views: 39722

Re: LÖVE 0.10.1 released

On the home page it still says 0.10.0 and the download the same.. I am somewhat new to this, so maybe this always happens?
by blorbin
Sat Feb 13, 2016 5:11 pm
Forum: Libraries and Tools
Topic: Snake Game Movement
Replies: 14
Views: 11310

Re: Snake Game Movement

I have created a simple LÖVE project and commented it (perhaps a bit too much), maybe that will give you a better understanding of how it's supposed to work? Here it is: Snake Movement.love The gist of it is that instead of updating the x and y coordinates every frame, you want to wait for some tim...
by blorbin
Sat Feb 13, 2016 4:36 pm
Forum: General
Topic: New Icons
Replies: 77
Views: 71615

Re: New Icons

If you were to make these a .ico file i would manualy change it :D
by blorbin
Sat Feb 13, 2016 4:12 pm
Forum: Libraries and Tools
Topic: Snake Game Movement
Replies: 14
Views: 11310

Re: Snake Game Movement

By incrementing the x and y positions in a fixed amount you can make it "jump" as you want. You can also achieve the delay between jumps by following the first example here: https://love2d.org/wiki/love.update only instead of making the npc think, you're making the snake jump to the next ...
by blorbin
Sat Feb 13, 2016 4:30 am
Forum: Libraries and Tools
Topic: Snake Game Movement
Replies: 14
Views: 11310

Re: Snake Game Movement

By incrementing the x and y positions in a fixed amount you can make it "jump" as you want. You can also achieve the delay between jumps by following the first example here: https://love2d.org/wiki/love.update only instead of making the npc think, you're making the snake jump to the next ...
by blorbin
Sat Feb 13, 2016 4:19 am
Forum: General
Topic: Snake Game Movement
Replies: 1
Views: 1474

Snake Game Movement

(Sorry if I'm being annoying since i have this in Projects and Demo's, but i feel like i posted it in the wrong section, so here it is again) I am fairly new to LÖVE2D thoughi have experience with lua. I currently want to make a snake game, but I'm having trouble with making the movement of it. The...