quaternary-game / quaternary

https://quaternary-game.github.io/quaternary/
0 stars 0 forks source link

trait_list_item and entity_selector #55

Closed IllustratedMan-code closed 7 months ago

IllustratedMan-code commented 7 months ago

Added a way to select entities in the UI so you can see what traits an entity has.

https://github.com/quaternary-game/quaternary/assets/60514384/67e0058a-d91f-46eb-ba9a-3c17ee10f283

IllustratedMan-code commented 7 months ago

Currently this only works on hover. Ideally you should be able to click the entity and the camera should follow the entity around. Currently movement is clamped to borders of screen though, which might make sense for expo purposes.

Maybe it makes sense for the traits to be dragged and dropped to the menu that appears in the bar listing the traits instead of the entity itself, it would certainly be easier to implement that way.

IllustratedMan-code commented 7 months ago

Uhhh, I may have added a whole bunch of main menu stuff to this branch by accident. Just roll with it.

IllustratedMan-code commented 7 months ago

https://github.com/quaternary-game/quaternary/assets/60514384/170910a5-9ab4-4c57-a12e-4d50cbb58ad1

IllustratedMan-code commented 7 months ago

I'm just going to force merge it. If it's real bad we can revert