GMLscripts.com

Discuss and collaborate on GML scripts
Invert

You are not logged in.

#1 Re: GML Creations » CHALLENGE: Conway's Game of Life » 2011-04-24 06:08:48

Gah, forgot about this hmmm

Well here is my gmk file, complete with messy goodness (GM8 if that matters).

It actually has two objects, the second one is a slightly different variation which I thought would run faster, it uses repeat (which I've been told is faster than while) and everything is done in the draw event, however it runs 50% slower than the previous one which loops both in the step and draw, I have absolutely no idea why it runs slower it would be good if someone does.

I would think the only to get 400*400 to run in GM is to avoid loops somehow, I've only managed to get 4 fps but I'm not too smart, I would love to see if someone managed to accomplish it.

#2 Re: GML Creations » CHALLENGE: Conway's Game of Life » 2011-04-18 05:40:07

Hmm that's weird, it works fine for me. I'll upload it to another site and edit my previous post with the link.

#3 Re: GML Creations » CHALLENGE: Conway's Game of Life » 2011-04-17 19:59:08

This peeked my interest, I've always been interested in simulating living things (or similar). I gave it a go but my method might be pretty inefficient. I make two grids, I copy the first one over to the second and loop through it checking the neighbours, then I set the first grid based on that and copy the first grid over to the second so it can start again.

Here is the exe: http://www.mediafire.com/?gnx73bo0j3bcja8 or http://www.host-a.net/u/grungegames/Cel … omaton.exe
Controls show up on game start.

EDIT: To start and stop the simulation press enter (can't believe I forgot that one).

Board footer

Powered by FluxBB