chore: middle

This commit is contained in:
cha0s 2024-06-11 19:45:37 -05:00
parent 6574b2b6c3
commit 50309fe4b5
2 changed files with 5 additions and 5 deletions

View File

@ -16,7 +16,7 @@ const players = {
Camera: {},
Controlled: {up: 0, right: 0, down: 0, left: 0},
Momentum: {},
Position: {x: 50, y: 50},
Position: {x: 368, y: 368},
VisibleAabb: {},
World: {world: 1},
Sprite: {image: '/assets/bunny.png'},

View File

@ -10,7 +10,7 @@ test('visibility-based updates', async () => {
// Create an entity.
const entity = ecs.get(ecs.create({
Momentum: {x: 1, y: 0},
Position: {x: RESOLUTION.x + 32 - 3, y: 20},
Position: {x: (RESOLUTION.x * 1.5) + 32 - 3, y: 20},
VisibleAabb: {},
}));
// Connect an entity.
@ -24,10 +24,10 @@ test('visibility-based updates', async () => {
expect(engine.updateFor(undefined))
.to.deep.equal({
2: {
Position: {x: RESOLUTION.x + 32 - 1},
Position: {x: (RESOLUTION.x * 1.5) + 32 - 1},
VisibleAabb: {
x0: 799,
x1: 863,
x0: 1199,
x1: 1263,
},
},
});