Snake

Show off your games, demos and other (playable) creations.
Post Reply
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Snake

Post by Nixola »

I support Canvases.
I'm happy 'cause of that.
I'm so happy I just wrote a 2 player snake game that uses canvases.
WASD move the blue snake, ↑←↓→ move the green snake.
Tomorrow I'll write a version without canvases,
If the happiness doesn't make me forget it.

EDIT: added something, read the next post for more infos
Attachments
snake-0.2.1-canvas.love
(5.08 KiB) Downloaded 332 times
snake-0.1.1-canvas.love
Added reload
(4.92 KiB) Downloaded 215 times
snake-0.1-canvas.love
(2.52 KiB) Downloaded 212 times
Last edited by Nixola on Mon May 28, 2012 9:29 pm, edited 1 time in total.
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Snake

Post by Nixola »

Small update:
Added menu
Added options (Snake1 RGB, Snake2 RGB, speed, wether to display a (horrible) snake face)
Removed possibility to turn back quickly and move into yourself, losing
I surely changed something else, but I don't remember what.
Any suggestion? Should I add something else? What, in case?
EDIT: Now it saves settings when you quit and reads them when you run it
Attachments
snake-0.2.1-canvas.love
Added config
(5.08 KiB) Downloaded 191 times
snake-0.2-canvas.love
Version 0.2
(4.73 KiB) Downloaded 194 times
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
kesac
Prole
Posts: 49
Joined: Tue Apr 03, 2012 12:29 am
Contact:

Re: Snake

Post by kesac »

I created a head-on-head collision between the snakes and the game got a little confused as who won:
Y2TGW.png
Y2TGW.png (15.72 KiB) Viewed 546 times
Have you met the Child of Winter?
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Snake

Post by Nixola »

Thanks, fixed it. Also added optional tail transparence, rewrote the menu (now it uses my gui) and added a proper pause (press ESC while playing, you can change everything but snake's color during pause)
Attachments
snake-0.3-canvas.love
(8.2 KiB) Downloaded 237 times
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
tomriddle
Prole
Posts: 2
Joined: Thu May 31, 2012 3:18 pm

Re: Snake

Post by tomriddle »

Thanks Nixola, great example. Simple code. I'm thinking about making my own version of Snake where you're not constricted to a grid, where you can turn left and right in a fluid motion, almost like controlling a car. Maybe theres a thing or two I can learn from it.
kesac wrote:I created a head-on-head collision between the snakes and the game got a little confused as who won:
Haha, hilarious. As a web developer I know that there'll always be something that happens in the live environment that you could never have accounted for. So many possibilities of what could do wrong. Always having clients discover quirks and bugs by trying to do
I'm a Web Developer who does Web Design. Ask me if you need help!
Hampton Bay
Prole
Posts: 5
Joined: Mon Jun 04, 2012 10:10 am

Re: Snake

Post by Hampton Bay »

its great, smooth
reminds me of the good one on the nokia's

all i see today are bad/laggy/non responsive
Why http://www.hamptonbay-lighting.net?
...How many auto mechanics does it take to change a Light bulb?
Two, one to screw in all the bulbs he has until he finds one that fits, and the other to tell you he thinks he'll have to replace the whole system
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Snake

Post by Nixola »

@Hampton: You didn't see Snayke then!
@Everyone: do you have any suggestion, bugfix, feature, something?
[OT]Anyway, why didn't I see these last two posts as unread?[/OT]
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests