Skip to content

Instantly share code, notes, and snippets.

@cart
Last active October 10, 2020 15:51
Show Gist options
  • Save cart/3e77d6537e1a0979a69de5c6749b6bcb to your computer and use it in GitHub Desktop.
Save cart/3e77d6537e1a0979a69de5c6749b6bcb to your computer and use it in GitHub Desktop.
Entity [
MyComponent,
Scale { x: 2.0, y: 2.0, z: 2.0 },
PropDemo {
value: "hello",
sequence: [0,1,2],
map: {field: 1.0, hello: "hi"},
nested: {field: [{test: 1.0}]}
},
// Children entities are nested
// Entities can have a specific ID
Entity(5646142) [
// this entity is empty
],
// Inserting components inside a scene patches its content
MyScene [ // basically a div
Size { width: "100%", height: "50%" } // those components are just flexbox style options
Margin { top: "25%" }
Container [
AlignContent { kind: "Center" }
Size { width: "50%" }
]
Container [
AlignContent { kind: "Center" }
Size { width: "50%" }
]
]
]
@cart
Copy link
Author

cart commented Aug 13, 2020

Hey sorry everyone I let this get buried in my email. Lets definitely move the conversation to github. Lots of good ideas here. @zutils maybe just copy/paste your questions there and i'll answer them.

@kabergstrom: we've already synced up on this, but im definitely excited for collaboration on this front :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment