Skip to content

Instantly share code, notes, and snippets.

@hughfdjackson
Created June 22, 2014 01:05
Show Gist options
  • Select an option

  • Save hughfdjackson/f4bf7945c5a6e9d2c0b5 to your computer and use it in GitHub Desktop.

Select an option

Save hughfdjackson/f4bf7945c5a6e9d2c0b5 to your computer and use it in GitHub Desktop.
module Scene where
type Camera = {}
-- entity is a thing that can be rendered and updated
type Entity e = { e |
render: e -> Element,
update: e -> e
}
type Scene = {
camera: Camera,
entities: [Entity] -- a heterogenous list of entities as defined above..
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment