Growstruct – Tree Generator

I ran out of time. Haxepunk gave me more headache today than I expected. Nevertheless I learned a lot this past week. I still would like to expand this to a real game with some interesting mechanics, but that’s something for next month. I even made the building sprites:

buildings
You can try out the tree generator by pressing “Space” to make new trees. Nothing else to do :(. (And also it’s a little too wide for this blog page, so it’s warped)

Green Leaves

Finally I was able to implemented the leaves on the trees. This took me some unexpected effort because I had to figure out some specialties about HaxePunk and different behaviour of Image, Graphic and Entity objects. So take a look at those beautiful trees ;).

growstruct_sc03Next to add is the buildings and game logic. Have to finish it today. Hope it will work.

Can I Finish in Time?

Progress on this project is coming along really slow. I have to admit that it takes some time to get into a whole different language (Haxe) with my second project with HaxePunk. This, in combination with other time restrictions (work), makes me doubt if I can finish this game within May. I really hope to implement the basic mechanics to try it out.

Nevertheless, here is a screenshot of the extended tree generator. I only have too add some leaf (circles) and then I can get to the game logic and interaction.

growstruct_sc02

Randomizing the Initial Trees

Unfortunately my spare time for coding today is over which means, that this is only a half finished prototype. Nevertheless I’d like to present you the basic random tree generator. You can refresh the level by pressing “space”.

Next to add is the logic for growing the side branches and generating the leaves. After that I will implement the game interaction and logic.

No Coding – Progress on Paper

I totally lack the motivation to code any more today in the evening after coding at work for a research project today.

So I took a pen to make some sketches for the buildings to construct in the game.

GrowStructSketchRegarding the game mechanics, I made some notes. There will be the sketched five types of buildings:

  1. Planter for trees (uses energy to make new trees)
  2. Powerplant (makes energy by consuming water and air)
  3. Dehydrator (makes water from air)
  4. Extractor (makes air from soil)
  5. Thickener (makes soil from water)

The goal is to balance your ressources by constructing those buildings. The trees will also have an influence on the ressources.

Plans for tomorrow:

  • Implemented randomized growing of trees
  • Make pixel art sprites for the buildings
  • Add leaves to the trees

First Screenshot

Finally I’ve written the first lines of code today. These are to create the basic graphics on the screen. Unfortunately I haven’t started to implement the real growth of trees, so this is just a sprite test. Nevertheless it works fine. So I’m quite happy with the outcome of today’s work. I also specified the game mechanics on paper. The game will be about balancing the 4 different ressources (soil, water, air and energy) by constructing five different buildings and let the trees grow. At the start of the game a goal is selected randomly by a fixed set of goals. These goals will include making a specific amount of trees or a specific height. Fine tuning of the concept is still necessary.

growstruct_sc01