Replies: 2 comments 1 reply
-
Actually, I think you already made this simpler in 1.3 of donburi with the event bus. I have missed that update it seem. |
Beta Was this translation helpful? Give feedback.
-
Hello, I also use them in my own games. Though I am still wondering how we can implement UI on top of ECS architecture. The UI world and ECS world in my game are separated for now, so a bit cumbersome to bind values between those. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm working on a roguelike in go using your excellent donburi ecs and would like to use furex to render the UI for my game.
I was wondering wether you might have any pointers on how I could for example bind my player's stats to a UI component.
As a small example on what I would like to achieve:
I have a player entity with a stats component that has the player's current and max health.
I would like to create a progress bar/stats bar UI component to display this information.
I can draw the component with static data, but I am not sure how I could reference the player's stats component without having
a donburi query attached to the UI component it self and use that to grab the data in the update handler.
Is there a preferred way to achieve this or shall I use donburi queries which would work in case of the player as there is alway one, but for enemies this might not work.
Any pointers would be much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions