felixangell / biodefence

biodefence
https://biodefence.netlify.com
1 stars 0 forks source link

Entity HUD on entity click #15

Open felixangell opened 5 years ago

felixangell commented 5 years ago

When an entity is clicked, it should show up a card to describe the entities characteristics.

For example, when clicking a Germ, it would fill out in a HUD the germs:

If the germ is unidentified, it would show that in

felixangell commented 5 years ago

In addition, it would be cool to render an outline of the hovered over entity in the game.

HarryAmmon commented 5 years ago

Would be good that when the card is shown the game pauses, don't know if this is a separate issue?

felixangell commented 5 years ago

A partial solution would be to have some kind of boolean for 'paused', and then the for loop that loops over the entities would run if !paused.

But I think the physics engine runs separately so I'm not sure how this would work... would have to look up if we can pause the physics engine

felixangell commented 5 years ago

Nearly done, just need to make the preview show on entity click