You can look at http://love2d.org/examples/examples.love to see how this could be handled.CR4SH3D wrote:Also what would be the easiest way to create a game splash screen, can i copy all the current code into another .lua and just call it?
inflЁxion - [snake/pacman with particles]
Re: inflЁxion - [snake/pacman with particles]
Re: inflЁxion - [snake/pacman with particles]
I intended to allow movement after the game time ends just for the hell of it reallyEvil Telephone wrote:Much better! Nicely done. I only found two bugs:
1. You can still move around after you die.
2. If you die while boosting, when you restart your snake is permanently in "thick particle" mode.
I think the second problems fixed now too
Thank you sooo much! i would never have got thatRobin wrote:I found the problem. It was solved when I changed the function to:CR4SH3D wrote:Im still wondering why the color change timer doesnt work when your score > 10 (or whatever number it currently says), the timer is created on load, the colorchng function creates a replacement timer, and its within an if statement for the score...The old changeColor() would only set the new timer if the score > 1 and color1 < 255. At load time, this is not the case, so no new timer is started.Code: Select all
function changeColor( colorchange ) if score > 1 then if color1 < 255 then color1 = color1 + 1 color2 = color2 - 1 --not here! end end timer.newSimple( 0.003, changeColor, colorchange ) end
Done used the splash screen example someone posted on the boardsfäbian wrote:You can look at http://love2d.org/examples/examples.love to see how this could be handled.CR4SH3D wrote:Also what would be the easiest way to create a game splash screen, can i copy all the current code into another .lua and just call it?
Update:
- Fixed more bugs
Added splash screen/intro
Moved game text to better location
Added enemy particle effects
Added random bonus enemy spawning (blue, faster, +5 points)
Snake looks nicer
Game time increased
Max tail size limited
10 point tail effect
20 point tail effect
Download:
- Attachments
-
- snake beta - 04.love
- inflЁxion - beta v0.4
- (208.28 KiB) Downloaded 197 times
http://www.gregkirk.co.nr - portfolio | http://shadowharlequin.deviantart.com - deviantart
http://www.myspace.com/shadowharlequin - myspace | http://www.vimeo.com/themilkfactory - music visuals
http://www.myspace.com/shadowharlequin - myspace | http://www.vimeo.com/themilkfactory - music visuals
Re: inflЁxion - [snake/pacman with particles]
Nice, especially the effect of the normal point.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: inflЁxion - [snake/pacman with particles]
Woah.. GREAT!
Re: inflЁxion - [snake/pacman with particles]
Yeah, it is like disco.
Re: inflЁxion - [snake/pacman with particles]
Thanks guys!
Any suggestions for game mechanics and such would be awesome now since im starting to thing of ideas now
I was going to use arrays to store 0s and 1s that can be used to draw the points of lines to make different mazes for levels but i need to work out what to o when you hit a wall, and how to make you collide with your tail i really need to work out a way to do that
also how do you use a config file for different resolutions?
Any suggestions for game mechanics and such would be awesome now since im starting to thing of ideas now
I was going to use arrays to store 0s and 1s that can be used to draw the points of lines to make different mazes for levels but i need to work out what to o when you hit a wall, and how to make you collide with your tail i really need to work out a way to do that
also how do you use a config file for different resolutions?
http://www.gregkirk.co.nr - portfolio | http://shadowharlequin.deviantart.com - deviantart
http://www.myspace.com/shadowharlequin - myspace | http://www.vimeo.com/themilkfactory - music visuals
http://www.myspace.com/shadowharlequin - myspace | http://www.vimeo.com/themilkfactory - music visuals
Re: inflЁxion - [snake/pacman with particles]
width = xalso how do you use a config file for different resolutions?
height = y
fullscreen = false/true
Re: inflЁxion - [snake/pacman with particles]
so i code a button press on the menu to write new values to the config file then ask the user to reset?
http://www.gregkirk.co.nr - portfolio | http://shadowharlequin.deviantart.com - deviantart
http://www.myspace.com/shadowharlequin - myspace | http://www.vimeo.com/themilkfactory - music visuals
http://www.myspace.com/shadowharlequin - myspace | http://www.vimeo.com/themilkfactory - music visuals
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: inflЁxion - [snake/pacman with particles]
Not necessary. The config file is for default values. For changes to width/height etc. use love.graphics.setMode().CR4SH3D wrote:so i code a button press on the menu to write new values to the config file then ask the user to reset?
Help us help you: attach a .love.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: inflЁxion - [snake/pacman with particles]
I'm not sure that's possible.. unless you store a table with positions, but I guess that's not a nice way to go.CR4SH3D wrote:and how to make you collide with your tail i really need to work out a way to do that
EDIT: About old particles (X), maybe you should just stop creating new particles, but still draw them, so the suicide particles fade away. (and you won't have them the next time you commit suicide)
Who is online
Users browsing this forum: Ahrefs [Bot] and 2 guests