SRL Archive - Other Scripts

Mini World Simulator


XxKanexX

2006-10-22 06:45:26

Only in version 1, So it dosn't do much. Idea from Mopar's God thread. Also, Good luck Jme if you make one :)


{
-World Simulator, Created By XxKanexX.
-Version 1.

Here is a little world i have created where all
people (represented by dots) think for themselves.
The dots have their own colors, representing their
current Gender or Status.
*Blue dot is a Male dot.
*Green dot is a Female dot.
*Black dot is an Old Male or Female, near death.
*Red dot is a child.
The people can mate with each other to create
more life. But people can also die.
Only Green and Blue dots (Male and Female) may
mate to create Red dots (Children). After some
time the child will grow up into either a
Male or Female.

The Male and Female dots, over time, will
turn into Black dots (Old persons), and then,
eventually die, dissapearing out of the world.

Only 4 mating processes can be going at once,
And after the 4 people have mated they must wait
a certain amount of seconds before they can again.

When mating, Both dots will remain still until
completion and produce a Random amount of 1 - 4 children.
}

It will start to lag badly after a while. Damn scar's limits!

Starblaster100

2006-10-22 07:22:19

AH! I Love it!

XxKanexX

2006-10-22 07:51:14

From: Starblaster100
AH! I Love it!

Thanks :)

I was thinking of expanding it (Making stores and houses), But then i noticed the lag as the Population grew. So that idea's gone.

But it's fun to watch for the first couple of seconds, i suppose. I had fun making it. :)

Yakman

2006-10-22 09:00:14

very nice, heres a progress report :D
[PHP]Men: 2
Women: 3
Children: 1
Old: 4
Dead (R.I.P): 9[/PHP]

i saw something similar a few time, like there was a programmed world of bacteria breeding. theres also some guy who made a sort of arena and had two types of robots going around. one type got energy from its solar cells, and the other type sucked the energy out.

i think you could reduce the lag if you changed the way you draw, instead of using the form-like Pen thing. try using fastdrawing, if you fill a bitmap with a color then use FastDrawSizeTransparent it should draw it faster and with less lag
something like this


var
buffer,man,woman:integer;
begin
buffer := bitmapfromstring(200, 200, '')
man := bitmapfromstring(1, 1, '')
fastdrawclear(man, clblue)
woman := bitmapfromstring(1, 1, '')
fastdrawclear(woman, clgreen)
displaydebugimgwindow(200, 200)
repeat
fastdrawclear(buffer, 0)
fastdrawsizetransparent(20, 20, 25, 25, man, buffer)
fastdrawsizetransparent(30, 30, 35, 35, woman, buffer)
safedrawbitmap(buffer, getdebugcanvas, 0, 0)
wait(10)
until(false)
end.

XxKanexX

2006-10-22 09:59:39

Thanks, Yakman. I actually thought the Pen might have been faster, but you're probably right.

I think i have seen the bacteria program, i think i own it. If i find it i might upload it. :)

XxKanexX

2006-10-22 10:08:46

Found it. It's called Darwin Pond. :) 1 Meg.

http://www.megaupload.com/?d=590P9MNS

Mutant Squirrle

2006-10-22 11:16:17

thats pretty good dude great job

Flyboy

2006-10-22 16:56:32

I love it!!! This is great. I have a real love for all simulators… so this rocks in my books!!!

XxKanexX

2006-10-23 00:30:26

I didn't think it would get such reactions and responses.

Thanks, everyone.

@FlyBoy: I love simulators too, just watching AI (Art. Intelligence) is fascinating. :)

Jason2gs

2006-12-27 00:30:23

Heh.

This is fun… Now if only I could make one of my own..

Are you planning on making it with stores and houses though? That's be cool…