Sign in to follow this  
Syerjchep

I made a modable falling sand game with heat simulation.

Recommended Posts

I've actually made a topic about this before, about three months back, but it got one reply, and just kinda died.
Either way, I made a game, which I'm actually quite proud of.
It looks like this:
[img]http://img814.imageshack.us/img814/2483/helpa.png[/img]
The red and orange text I just edited into the screenshot, obviously.
Anyway, it's a falling sand game, but it also has a heat simulator, which seems to work quite well.
It's completely moddable, just edit the elements.txt file and/or the images included.
In fact, the main point is to experiment with creating your own elements.

You use the right and left arrow keys on your keyboard to scroll though elements.
Left click on the sandbox area to place the selected element.
Up and down arrow keys increase and decrease pensize, a faster alternative than the two provided buttons.
Other than that, it's just clicking on the buttons. (except for typing in the names of files to save or load)

To make new elements add a line like this:
[code]
element <name> <red color> <green color> <blue color> <weight> <spreads or not 0/1> <matter type 0/1/2 for gas/liquid or powder/solid> <miliseconds before element interactions> <show in element scroller 0/1>
[/code]

Simple element on element interactions work like this:
[code]
interaction <searching element> within <x range> <y range> <what to search for> <what to turn into> <what to turn found element into> <chance (0-100)> <heat to add/remove to first elements position> <heat to add/remove to second elements position>
[/code]

You can also search if an element is at a specific offset from the searching element like this:
[code]
interaction <searching element> offset <x offset> <y offset > <what to search for> <what to turn into> <what to turn found element into> <chance (0-100)> <heat to add/remove to first elements position> <heat to add/remove to second elements position>
[/code]

You can make certain interactions require that the element be at least as hot as a temptaure:
[code]
hotinteraction <searching element> offset/within <just like before> <just like before> <what to search for> <what to turn into> <what to turn found into> <chance (0-100)> <heat to add/remove to 1st pos> <heat to add/remove from 2nd pos> <how hot it must at least be>
[/code]

You can make certain interactions require that the element be at least as cold as a temptaure:
[code]
coldinteraction <searching element> offset/within <just like before> <just like before> <what to search for> <what to turn into> <what to turn found into> <chance (0-100)> <heat to add/remove to 1st pos> <heat to add/remove from 2nd pos> <how cold it must at least be>
[/code]

You can give certain (standard) interactions a "name" to use with triggers:
[code]
namedinteraction <name of interaction> <searching element> offset <x offset> <y offset > <what to search for> <what to turn into> <what to turn found element into> <chance (0-100)> <heat to add/remove to first elements position> <heat to add/remove to second elements position>
[/code]

And you can make triggers that activate when that interaction happens:
[code]
ontrigger <name of interaction to trigger on> <what to make> <offset to make at x> <offset to make at y> <chance (0-100)>
[/code]

You can get it here:
[url="http://www.gamefront.com/files/20206932/Release.zip"]http://www.gamefront...932/Release.zip[/url]

Please, tell me what you think, suggestions welcome.

Share this post


Link to post
Share on other sites
This thing is really really cool, good work.

I was really impressed at the amount of different elements there were and I found it a lot of fun.
One thing is that it did crash on me every time all of a sudden, once it recovered but just froze for a bit.

Keep up the good work
:-)

Share this post


Link to post
Share on other sites
[quote name='Monkan' timestamp='1302480553' post='4796866']
This thing is really really cool, good work.

I was really impressed at the amount of different elements there were and I found it a lot of fun.
One thing is that it did crash on me every time all of a sudden, once it recovered but just froze for a bit.

Keep up the good work
:-)
[/quote]
Thanks.
Since then I've added coal, coal spawn, insulator wall, and gunpowder, gonna upload a new version soon.
But I haven't included as many elements to the default as I could because I want to encourage modding, because after all, it's designed to let players easily add their own elements.

Share this post


Link to post
Share on other sites
[quote name='.Kamikaze' timestamp='1302952415' post='4799102']
Ok.
First off. Those Icons are terrible >.>
[/quote]
I don't have an artist available.
So I doodled in ms paint.
But you can easily change them, so it's okay, in fact, players are kinda expected to.

Share this post


Link to post
Share on other sites
Sign in to follow this