DEV Community

Discussion on: Writing a Game in Typescript

Collapse
 
drsensor profile image
૮༼⚆︿⚆༽つ

Bullet-hell is one type of game that work best when using ECS even though it's single player. Every type of bullets and obstacles are modeled as ECS components. For example modeling them based on the effect and damage then we can model it as component fire, ice, poison, and physical. Ice will have parameter slow down in percent and ice damage per hit. Poison will have random move chance and poison damage per second. And so on. After that you just need to put each logic/implementation in different ECS systems.

Even if the game only has small amount of entities, it can still benefit from how easy the data can be serialized. Make it suitable in multiplayer game for states synchronization.

Thread Thread
 
jidayyy profile image
Julien hey

agree !