Skip to content

Instantly share code, notes, and snippets.

@barcharcraz
Created April 7, 2014 04:21
Show Gist options
  • Save barcharcraz/89949faacc8d88ba884d to your computer and use it in GitHub Desktop.
Save barcharcraz/89949faacc8d88ba884d to your computer and use it in GitHub Desktop.
proc makePlayer(scene: SceneId): EntityId =
result = genEntity()
result.add(initTransform())
result.add(initHealth())
result.add(initSize())
result.add(getTexture("the player's texture"))
result.add(getMesh("the player model"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment