refactor: Shaped
This commit is contained in:
parent
43813dd085
commit
d10f6ccd32
|
@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -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],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user