Skip to content

Instantly share code, notes, and snippets.

@M3ales
Last active August 15, 2017 10:54
Show Gist options
  • Save M3ales/fe836c1074ba3c9e4dddbb5c4f31121b to your computer and use it in GitHub Desktop.
Save M3ales/fe836c1074ba3c9e4dddbb5c4f31121b to your computer and use it in GitHub Desktop.
Proposed Entity Storage per Level in Json
"level":
{
"seed":"askdaoko23kfwifsjd30892jwe"
}
"entity":
{
{
"id":"player"
"active":true
"components":
[
{
"id":"sprite"
"args":
[
"texture":"/core/texture/humanoid.png"
]
{
"id":"transform"
"args":
[
{
"x":5;
"y":5;
}
]
},
{
"id":"playerMovement"
},
{
"id":"inventory"
}
]
}
{
"id":"torch"
"active":true
"components":
[
{
"id":"light"
},
{
"id":"transform"
"args":
[
{
"x":500;
"y":2;
}
]
},
{
"id":"sprite"
"args":
[
"texture":"/core/texture/items.png"
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment