Last active
October 10, 2020 15:51
-
-
Save cart/3e77d6537e1a0979a69de5c6749b6bcb to your computer and use it in GitHub Desktop.
This file contains 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
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%" } | |
] | |
] | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 :)