I Made a 2D Sprite Animation System - Unity ECS (Entity Component System)
Автор: Fahmy Eldeeb
Загружено: 2020-11-14
Просмотров: 1483
Описание:
I started out this project trying to learn ECS. First thing I learned is that ECS is still pretty bare bones and has a lot of limitations, animations are still one of those limitations.
In this video I showcase my 2D Sprite sheet system using ECS.
Each entity is individually animated. I can add as many animation states and as many different characters as I like.
I can also add animation triggers to any animation, causing it to trigger a specific function on a certain frame.
The player has HP and enemies attack him triggering HP loss at a certain frame (different from enemy to enemy) in their attack animation.
Enemies run the logic of walking once spawned to a random location, attacking the player every random number of seconds and dying when they are attacked.
At this current state of the project I could get up to 10,000 enemies on screen with over 30 fps (lower when recording).
Every single one of them is running his own logic and animation system.
This is entirely done in ECS with exception of the simple UI.
The project can be found here https://github.com/FahmyHady/ECS2DGame
If you find this useful do give me a mention
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: