Life

Show off your games, demos and other (playable) creations.
User avatar
zac352
Party member
Posts: 496
Joined: Sat Aug 28, 2010 8:13 pm
Location: In your head.
Contact:

Life

Post by zac352 »

Official Page:
Life News Post on Physibots

Current Release:
http://dl.dropbox.com/u/14976240/releas ... e-cur.love

Description:
I made this little test of my AI skills, my brother wouldn't stop bugging me, and now it's a little evolution game.

Notes:
To modify the world size, edit the variables "worldx" and "worldy" by pressing enter. ("cont" resumes execution.) Carnivores have not been added as a default yet because they are unusually glitchy.
From 1.3.6 onward, I am now using version numbers that are not really weird. ;)

Have fun! :awesome:

Controls:
H - Show healthbars (glitchy)
S - Save (huge file)
L - Load
Print Screen - Screenshot
Arrow Keys - Move Camera
Page Keys - Camera Speed
F2 - Apocalypse
F11 - Toggle Fullscreen (doesn't leave, for some reason)
Enter/Return - debug.debug()
F1 - Print cell/food stats (lag bomb)
Left Click - Place a cell
Right Click - Place a plant
Middle Click - Eraser of Dooom!

Changelog

Screenshots:
Image

Older Versions:
1.3
1.2.1
1.2
Last edited by zac352 on Sun Nov 28, 2010 4:07 am, edited 13 times in total.
Hello, I am not dead.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Life

Post by kikito »

I got this error:

Code: Select all

main.lua:1: attempt to call field '_openConsole' (a nil value)
When I write def I mean function.
User avatar
nevon
Commander of the Circuloids
Posts: 938
Joined: Thu Feb 14, 2008 8:25 pm
Location: Stockholm, Sweden
Contact:

Re: Life

Post by nevon »

Same here. Commenting out that first line solves it though. I gotta say, this game is very strangely written.
User avatar
zac352
Party member
Posts: 496
Joined: Sat Aug 28, 2010 8:13 pm
Location: In your head.
Contact:

Re: Life

Post by zac352 »

kikito wrote:I got this error:

Code: Select all

main.lua:1: attempt to call field '_openConsole' (a nil value)
Your love doesn't support opening the console? :o
Hello, I am not dead.
User avatar
zac352
Party member
Posts: 496
Joined: Sat Aug 28, 2010 8:13 pm
Location: In your head.
Contact:

Re: Life

Post by zac352 »

nevon wrote:Same here. Commenting out that first line solves it though. I gotta say, this game is very strangely written.
Thank you. :crazy:
Hello, I am not dead.
User avatar
zac352
Party member
Posts: 496
Joined: Sat Aug 28, 2010 8:13 pm
Location: In your head.
Contact:

Re: Life

Post by zac352 »

kikito wrote:I got this error:

Code: Select all

main.lua:1: attempt to call field '_openConsole' (a nil value)
btw, what version of love DO you have?
Hello, I am not dead.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Life

Post by kikito »

Your love doesn't support opening the console?
That is the first time I hear about that function. I don't think it is standard.

If you are trying to open up a console, the correct way is using the config file.
btw, what version of love DO you have?
I have love 0.6.2 in Ubuntu.
When I write def I mean function.
User avatar
zac352
Party member
Posts: 496
Joined: Sat Aug 28, 2010 8:13 pm
Location: In your head.
Contact:

Re: Life

Post by zac352 »

kikito wrote:
Your love doesn't support opening the console?
That is the first time I hear about that function. I don't think it is standard.

If you are trying to open up a console, the correct way is using the config file.
btw, what version of love DO you have?
I have love 0.6.2 in Ubuntu.
I did a dump of love (table.foreach(love,print)), and love._openConsole was sitting there, just asking for me to asign a key to run debug.debug(). :P

Anyway, thanks for showing me the right way. :neko:
Hello, I am not dead.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Life

Post by bartbes »

love._openConsole() is an internal function, which probably only exists on windows. On a related sidenote: table.foreach()? From the wiki page "Incompatibilities with the Previous Version":
Functions table.foreach and table.foreachi are deprecated. You can use a for loop with pairs or ipairs instead.
User avatar
zac352
Party member
Posts: 496
Joined: Sat Aug 28, 2010 8:13 pm
Location: In your head.
Contact:

Re: Life

Post by zac352 »

bartbes wrote:love._openConsole() is an internal function, which probably only exists on windows. On a related sidenote: table.foreach()? From the wiki page "Incompatibilities with the Previous Version":
Functions table.foreach and table.foreachi are deprecated. You can use a for loop with pairs or ipairs instead.
I like table.foreach. It's useful when you don't need 5 lines of code to do one thing. ;o
Hello, I am not dead.
Post Reply

Who is online

Users browsing this forum: No registered users and 107 guests