Skip to content

Latest commit

 

History

History

hide

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Hide Demo

What does it do?

It demonstrates how one can show and hide a character.

For doing so, it created an Entity (rock), that hides and shows as time passes by.

What are important aspects of the code?

These things are key in this demo:

  • HideSystem that shows and hides an Entity (rock)
if rand.Int()%10 == 0 {
  e.RenderComponent.Hidden = true
} else {
  e.RenderComponent.Hidden = false
}