-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|705|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Blogs Home -> Blogs


 
Pio
Created : 29 September 2008
Edited : 15 December 2008
System : Linux

Swarming

for two players

I wanted to make isohypses, a background for some of my previous games. I made a terrain generator, got carried away, and made this swarming thing instead.

Two sets of keys control 2000 tiny marbles each, which roam the terrain according to rules of fake physics. White and black marbles damage each other on contact. They replenish their tiny health when they collide with someone from their own group, so it makes sense to attack in groups.



Problem: the groups are hard to form intentionally. The idea was to use the terrain.

Anyway here's the link : tesla.rcub.bg.ac.rs/~xpio/socoder/swarming.zip

|edit| This is an updated version |edit|

Does someone know of a fast way to make convincing isohypses?

 

Comments


Monday, 29 September 2008, 07:03
Jayenkai
I'm not 100% sure what you're trying to do, nor do I have any idea what isohypses are..
..
But I'll give silly thoughts anyway.
If you want to speed up your marbles, move every other one in one frame, then the others in the next. Should speed things up, and not look too dodgy!

And, if you want a nice automated movement, why not make the terrain invisible, and randomly scroll it about the place, making the marbles bob around, as if by magic.

Neat effect, though! And loving the terrain, too!
Tuesday, 30 September 2008, 16:44
Pio
I meant contour lines, as found in maps. -- I wanted to get something like this
> Reveal 🔎

About the "marbles", I tried to refresh them half at a time, as you said; no visible improvement, but I'll keep it in mind in case they get more complicated.
Wednesday, 08 October 2008, 16:28
Pio
I've finally seen this app on another computer and was very choppy. Sorry, all who looked at it. I think "ScreenSync" command did it, so I removed it, and it seems to work well without it.

Two nice triangles are added, which control the marbles indirectly. It makes more sense. Some two people should play it, now.

Download link is the same as above.
Wednesday, 08 October 2008, 16:32
Jayenkai
Nice, and yes.. much quicker than before!
Wednesday, 08 October 2008, 17:25
flying_cucco
Interesting idea. Have you played "liquid war"?
Thursday, 09 October 2008, 02:57
Pio
Oh. Now I have. Better rules, better implementation - and playable. But now it's not so unique (I'll continue toying with this, nevertheless).