Page 2 of 5
Re: inflЁxion - [snake/pacman with particles]
Posted: Sat May 16, 2009 7:51 am
by fäbian
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?
You can look at
http://love2d.org/examples/examples.love to see how this could be handled.
Re: inflЁxion - [snake/pacman with particles]
Posted: Sat May 16, 2009 7:44 pm
by CR4SH3D
Evil 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 intended to allow movement after the game time ends just for the hell of it really
I think the second problems fixed now too
Robin wrote: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...
I found the problem. It was solved when I changed the function to:
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
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.
Thank you sooo much! i would never have got that
fäbian wrote: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?
You can look at
http://love2d.org/examples/examples.love to see how this could be handled.
Done
used the splash screen example someone posted on the boards
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
If anyone can tell me why the normal enemies speed is random and generally alot slower than they used to be that would be great thanks
also keep on posting bugs and suggestions etc
Download:
Re: inflЁxion - [snake/pacman with particles]
Posted: Sat May 16, 2009 10:05 pm
by sauer2
Nice, especially the effect of the normal point.
Re: inflЁxion - [snake/pacman with particles]
Posted: Sun May 17, 2009 9:44 am
by bartbes
Woah.. GREAT!
Re: inflЁxion - [snake/pacman with particles]
Posted: Sun May 17, 2009 9:54 am
by sauer2
Yeah, it is like disco.
Re: inflЁxion - [snake/pacman with particles]
Posted: Sun May 17, 2009 5:47 pm
by CR4SH3D
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?
Re: inflЁxion - [snake/pacman with particles]
Posted: Sun May 17, 2009 6:06 pm
by sauer2
also how do you use a config file for different resolutions?
width = x
height = y
fullscreen = false/true
Re: inflЁxion - [snake/pacman with particles]
Posted: Sun May 17, 2009 6:34 pm
by CR4SH3D
so i code a button press on the menu to write new values to the config file then ask the user to reset?
Re: inflЁxion - [snake/pacman with particles]
Posted: Sun May 17, 2009 7:46 pm
by Robin
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?
Not necessary. The config file is for default values. For changes to width/height etc. use
love.graphics.setMode().
Re: inflЁxion - [snake/pacman with particles]
Posted: Mon May 18, 2009 5:48 am
by bartbes
CR4SH3D wrote:and how to make you collide with your tail i really need to work out a way to do that
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.
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)