resources: add walls to test level

This commit is contained in:
Matthias Schiffer 2018-11-11 15:49:42 +01:00
parent 236151ba9c
commit e77b54f01b
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
14 changed files with 58 additions and 58 deletions

View file

@ -1,72 +1,72 @@
{
"tiles": [
"stone/floor",
"stone/plate"
"stone/plate",
"stone/wall/top",
"stone/wall/right",
"stone/wall/bottom",
"stone/wall/left",
"stone/wall/top_left",
"stone/wall/top_right",
"stone/wall/bottom_right",
"stone/wall/bottom_left",
"stone/wall/top_left_inner",
"stone/wall/top_right_inner",
"stone/wall/bottom_right_inner",
"stone/wall/bottom_left_inner"
],
"layers": [
[
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0],
[0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0],
[0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0],
[0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0],
[0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0],
[0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0],
[0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0],
[0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0]
[0, 7, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 8, 0],
[0, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 0],
[0, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 0],
[0, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 0],
[3, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 3],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1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],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],
[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],
[0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0]
]
],
"collision": [
{
"type": "polygon",
"vertices": [
[1, 1],
[11, 1],
[11, 5],
[ 2, 1],
[12, 1],
[12, 5],
[14, 5],
[14, 7],
[12, 7],
[11, 7],
[11, 11],
[7, 11],
[7, 12],
[5, 12],
[5, 11],
[1, 11],
[1, 7],
[0, 7],
[0, 5],
[1, 5]
[12, 11],
[ 8, 11],
[ 8, 13],
[ 6, 13],
[ 6, 11],
[ 2, 11],
[ 2, 7],
[ 0, 7],
[ 0, 5],
[ 2, 5]
]
}
]

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

@ -26,9 +26,9 @@ export class GameContext implements CollidableGroup {
const entity = await loadEntity;
const entity2 = await loadEntity2;
vec2.set(player.pos, 6, 6);
vec2.set(entity.pos, 3, 3);
vec2.set(entity2.pos, 3, 8);
vec2.set(player.pos, 7, 6);
vec2.set(entity.pos, 4, 3);
vec2.set(entity2.pos, 4, 8);
return new GameContext(
renderer,