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:
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 ;).
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.
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.
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.
- Planter for trees (uses energy to make new trees)
- Powerplant (makes energy by consuming water and air)
- Dehydrator (makes water from air)
- Extractor (makes air from soil)
- 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
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.