LD#23: End of the First Night
Bah! I’m probably biting off more than I can chew with my current plans!
Basically, building on my earlier post about the Ideas, Souls and Worlds I started to implement some stuff. Starting with the worlds of course!
So, I’m using the personal library that I posted before the start of the Compo to make a ‘hex map’ world for the souls/ideas to inhabit. Typically a single Idea and the Souls who believe it inhabit a single world. They go about their business, thinking thoughts about their Idea, developing it and making it theirs. However, since they’re in space and there’s never just one idea there are several different worlds. Each world moves through space (I haven’t decided how it’ll work yet!) and they can end up colliding.
When a world collides, the souls that believe the idea go to war. When one side, or the other, is destroyed (By annihilating the source of their idea) the war ends. After a war is over, portions of the world can be destroyed by exerting belief in the idea. This is the mechanic by which the player controls the size of their world, by breaking off chunks of their world and letting them float through space. It’s the algorithm that manages the breaking up of worlds that I’m having the fun with.
Currently, my plan is that I’ll do a contiguous search from certain points, move all contiguous tiles to another map basically the same size, then shift all of the non-empty tiles to the as far left as I can, then as far up as I can (As close to X=0 and Y=0). It’s sort of working, but there’s some small part of it that’s messing up and driving me crazy!
So I’m thinking of scraping this for now and just implementing the code that controls Soul movement on the map and the like (When I wake up tomorrow that is!)
Night LDers!