Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

Laters Build

Sign in to follow this  


The latest build of the game is here. Click here to open the game in your browser.

The pixellated, blobby thing in the middle of the screen is the intersection of two Perlin bitmaps.

One contains information for the amount of salt available on a given chunk of land. The brighter the pixel, the more salt can be harvested from that coordinate.

The other is a height-map of sorts. When I generate this bitmap, I perform a threshold operation to see if a given supply of salt is "exposed", e.g. the salt can be harvested without any intermediary steps being performed. Each black square represents an area where the salt is underground, and must be exposed before it can be harvested. This is where the alchemist NPC (creator of explosions) comes in. In order for the miners to be able to get the salt the alchemist must come in and blow a big hole in the ground.

Once all the salt in an area is harvested that area can be used for farming.

Farming can only happen on a black square. That square can either be an area that has been cleared of salt, or an area which has not yet been blown up by an alchemist.

An area which is being farmed cannot be mined for salt at any point in the future. Inevitably, squares which might be mined are lost to the needs of farming.

As the game progresses there will inevitable be a point where all of the available salt is mined, and the land is nothing but farms.

There is a trader NPC, which I am hoping to have up and running soon, which will be able to trade excess salt and food for gold, and will thus ensure the stability of the town.

Note that most of these interactions have not yet been implemented.

The data for the bitmaps is contained in the file called "config.xml", which looks like this:

A Dry Harvest
"images/4e6_sheet.png" info_url="xml/spritesheet.xml"/>



My studies in economics lead me to believe that a closed system will inevitably collapse. Hopefully the game will end before this happens.

Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!