rm-code / On-The-Roadside

A turn-based ASCII strategy game.
https://rmcode.itch.io/on-the-roadside
MIT License
24 stars 1 forks source link

Particle System Overhaul #302

Open rm-code opened 5 years ago

rm-code commented 5 years ago

The current particle system isn't really a system at all. Back when I started with this project I had no idea how to solve the issue of timing the animations with the actual impact of the shots (see explosions).

The presentation of those effects also is pretty rudimentary and the code is way too complex and coupled to the logic itself (e.g. explosions only hit the tiles that are touched by the animation).

What we really need is the logic (e.g. an explosion hits tiles in an area of xx) and then apply the animations accordingly. This can be done by using particle systems which can be shot around the world, collide with world objects (particles themselves will also need those collision physics), and spawn other particle system.

The particles themselves need to be mapped to the game's grid and we need some way of blending the colors between overlapping particles.

rm-code commented 5 years ago

First tests: ps ps3

rm-code commented 5 years ago

Applied to game world with simple collision detection: ps4