Skip to content

Instantly share code, notes, and snippets.

@ramiresnas
Created March 28, 2019 12:15
Show Gist options
  • Save ramiresnas/ca0db0abd42410d0c9d1c69df7be9b39 to your computer and use it in GitHub Desktop.
Save ramiresnas/ca0db0abd42410d0c9d1c69df7be9b39 to your computer and use it in GitHub Desktop.
Usando entidades e componentes
mario.component(ofType: WalkComponent.self)?.move(to: .foward, velocity: 45)
mario.component(ofType: JumpComponent.self)?.jump(y: 30)
yoshi.component(ofType: WalkComponent.self)?.move(to: .back, velocity: 70)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment