refactor: Shaped

This commit is contained in:
cha0s 2019-04-08 14:32:52 -04:00
parent 43813dd085
commit d10f6ccd32
2 changed files with 18 additions and 16 deletions

View File

@ -31,19 +31,20 @@ export function createEntityForConnection(socket) {
speed: 100,
},
},
physical: {
physical: {},
positioned: {
state: {
x: 100,
y: 100,
},
},
shaped: {
params: {
shape: {
type: 'rectangle',
position: [0, 0],
size: [8, 8],
}
}
},
positioned: {
state: {
x: 100,
y: 100,
},
},
},
},

View File

@ -17,19 +17,20 @@ function flowerBarrelJSON(position) {
},
existent: {},
graphical: {},
physical: {
physical: {},
positioned: {
state: {
x: position[0],
y: position[1],
},
},
shaped: {
params: {
shape: {
type: 'rectangle',
position: [0, 0],
size: [20, 10],
}
}
},
positioned: {
state: {
x: position[0],
y: position[1],
},
},
},
},