Created
June 22, 2014 01:05
-
-
Save hughfdjackson/f4bf7945c5a6e9d2c0b5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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