inflЁxion - [snake/pacman with particles]

Show off your games, demos and other (playable) creations.
fäbian
Prole
Posts: 6
Joined: Sat May 16, 2009 7:41 am

Re: inflЁxion - [snake/pacman with particles]

Post 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.
User avatar
CR4SH3D
Citizen
Posts: 67
Joined: Mon Mar 02, 2009 6:00 pm
Location: England
Contact:

Re: inflЁxion - [snake/pacman with particles]

Post 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:
Attachments
snake beta - 04.love
inflЁxion - beta v0.4
(208.28 KiB) Downloaded 202 times
User avatar
sauer2
Citizen
Posts: 61
Joined: Tue Sep 02, 2008 4:15 pm

Re: inflЁxion - [snake/pacman with particles]

Post by sauer2 »

Nice, especially the effect of the normal point. :nyu:
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: inflЁxion - [snake/pacman with particles]

Post by bartbes »

Woah.. GREAT!
User avatar
sauer2
Citizen
Posts: 61
Joined: Tue Sep 02, 2008 4:15 pm

Re: inflЁxion - [snake/pacman with particles]

Post by sauer2 »

Yeah, it is like disco. :D
User avatar
CR4SH3D
Citizen
Posts: 67
Joined: Mon Mar 02, 2009 6:00 pm
Location: England
Contact:

Re: inflЁxion - [snake/pacman with particles]

Post 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?
User avatar
sauer2
Citizen
Posts: 61
Joined: Tue Sep 02, 2008 4:15 pm

Re: inflЁxion - [snake/pacman with particles]

Post by sauer2 »

also how do you use a config file for different resolutions?
width = x
height = y
fullscreen = false/true
User avatar
CR4SH3D
Citizen
Posts: 67
Joined: Mon Mar 02, 2009 6:00 pm
Location: England
Contact:

Re: inflЁxion - [snake/pacman with particles]

Post 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?
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: inflЁxion - [snake/pacman with particles]

Post 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().
Help us help you: attach a .love.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: inflЁxion - [snake/pacman with particles]

Post 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)
Post Reply

Who is online

Users browsing this forum: Amazon [Bot], Google [Bot] and 2 guests