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
Snake
Snake
- 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 211 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
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
Re: Snake
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
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
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
Re: Snake
I created a head-on-head collision between the snakes and the game got a little confused as who won:
Have you met the Child of Winter?
Re: Snake
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
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
Re: Snake
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.
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 dokesac wrote:I created a head-on-head collision between the snakes and the game got a little confused as who won:
I'm a Web Developer who does Web Design. Ask me if you need help!
-
- Prole
- Posts: 5
- Joined: Mon Jun 04, 2012 10:10 am
Re: Snake
its great, smooth
reminds me of the good one on the nokia's
all i see today are bad/laggy/non responsive
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
...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
Re: Snake
@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]
@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
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
Who is online
Users browsing this forum: No registered users and 3 guests