Game
Hell Tower
8 years ago

Explore dark caves


At last new fog of war system is working hiding horrors of hell in darkness of caves.

5d0b3d45ba0aa.gif
5d0b3d47a0eb1.gif

This is small visibility expiration test run on 400x600 tile map. Each tile has counter how long ago it was viewed and in this example every 100ms process is expiring visibility of long not viewed tiles. In end version i will probably run that process every 500ms but for presentation purpose i need something that changes fast.
There are some fancy clustering algorithms for optimization in work here.

It took some time to shape some nice code architecture to enable encapsulation of systems and interchange of data. In the end i have inspired my self by entity component systems for keeping behaviors code in separated systems and for data management i took some inspiration from Redux. I have data store with current game state that is changed by dispatching actions to it. I needed to make some optimization hooks inside reducers so it isnt clean redux but it works pretty well for managing data.
Added benefit for using redux like stores is easy way to store and restore game state.



0 comments

Loading...

Next up

Pointless battle I have put spell casting animations inside game engine I still have to work out damage system but this his how it looks now: I will have to also find a way to differentiate characters fraction.

Parallax secrets

Map generation Perlin noise composited with some gradients and rotating generation space creates this:

I had concept for catching units by hand that shaters reality and pulls units into pocket dimmension.

Validating objects position I have added UI elements for dragging and placing objects on map. While dragging each objects checks if it has valid ground to stand on enough free place and valid background in case of for example windows.

Battle chaos I have added factions banners to identify characters affiliation. I have also taught them to make some basic movements including wall climbing. Next step I will add pathfinding so they could start making more advanced maneuvers.

Burn those veggies! Now lava interacts with some less durable vegetation and destroys it on collision.

Shadow dweller Pigmey

Spell casting 101 I have started to work on battle system so I have created my first spell casting animations for creatures.

Spell casting 102 So I have added spell particle collision detection and I have also added more spell variety. And in process of that it didn’t lose too much performance. Fire bolt Fire rain: Nova: Energy ray: Dark flame: