Похожие чаты

Meaning, should I keep any state in them?

3 ответов

10 просмотров

I prefer not to have any state in systems. I either store some state in specific components that live during the game lifetime in a single exemplar, then I have ability to reset them at once if I want to restart the game. Either have special structures that calculated at the beginning of the frame before systems run (and immutable for the systems). Like time (delta time, gameplay time) and raw input (what was pressed and released since the last frame).

Victor-Queiroz Автор вопроса
Pavel
I prefer not to have any state in systems. I eithe...

What about renderer? How do you implement it in conjunction with the ECS?

Victor Queiroz
What about renderer? How do you implement it in co...

I have a 2D game with a very primitive render pipeline so I don't do anything interesting there, I have a system that iterates over all renderable components and their positions and request render for them (animations are being processed in a separate system).

Похожие вопросы

Обсуждают сегодня

Is UniBright Freequity an active live product ? A friend here in Asia was discussing the Tokenisation of RWA’s in his case Real Estate as he’s a developer with numerous overs...
Digital Trust
4
коллеги, добрый вечер! А никто не знает как модальная форма может себя закрыть? Ну допустим модальная форма определила, что смысла ей работать нет и хочет вернуть modalResult...
Михаил
83
Привет, сталкивался кто с такой ситуацией? У меня есть модальное окно Bootstrap, в нем кнопка закрытия: <button type="button" class="btn-close" data-bs-dismiss="modal" aria-...
Виталий
3
Hi, is it fine to use git to backup my config? I did so many things that I don't want to miss if I switched to another OS, so how do you backup your home and configs? And shou...
Adnan Al_Beda
30
Hi Everyone! To all Are you Looking for Interview Support at the Lowest Price? Look no further! Then contact us We offer Interview Support for a low cost variety of technol...
Rambabu Nallamilli
3
How can I use this dvpn?
japolinux
11
верно что я могу удалить эти addq и subq т.к. со стеком никакого взаимодействия нет (исключая call)?
Michael
16
Добрый день задумываюсь о создание токена из за того что много свободного времени и вот я узнал что транзакции за перевод этого токена будут в waves и тут пришла идея при тран...
Артем
3
Добрый день Хочу начать обучение языку, не являюсь представителем it, буду благодарна за помощь, совсем пока не понимаю ничего) Подскажите, пожалуйста, где можно начать первы...
Sara Lala
27
А если изначально бот работал так : есть сайт онлайн школы. У каждого ученика свой кабинет. Где он авторизуется по своим данным. И уже в кабинете, на самом сайте делает оплату...
Денис 💡 Фрилансер
13
Карта сайта