added sketch of kitchen map
This commit is contained in:
parent
0bc3421baa
commit
b7e037eb6a
@ -132,6 +132,17 @@ window.OverworldMaps = {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
}),
|
||||||
|
npc3: new Person({
|
||||||
|
x: utils.withGrid(9),
|
||||||
|
y: utils.withGrid(3),
|
||||||
|
src: "/images/characters/people/hero-test.png",
|
||||||
|
behaviorLoop: [
|
||||||
|
{ type: "stand", direction: "down", time: 2000 },
|
||||||
|
{ type: "stand", direction: "right", time: 2000 },
|
||||||
|
{ type: "stand", direction: "up", time: 2000 },
|
||||||
|
{ type: "stand", direction: "left", time: 2000 },
|
||||||
|
],
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
walls: {
|
walls: {
|
||||||
@ -202,13 +213,14 @@ window.OverworldMaps = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
Kitchen: {
|
Kitchen: {
|
||||||
lowerSrc: "/images/maps/room-builder.png",
|
lowerSrc: "/images/maps/map-room-kitchen.png",
|
||||||
upperSrc: "/images/maps/room-builder.png",
|
// upperSrc: "/images/maps/room-builder.png",
|
||||||
|
upperSrc: "",
|
||||||
gameObjects: {
|
gameObjects: {
|
||||||
hero: new Person({
|
hero: new Person({
|
||||||
isPlayerControlled: true,
|
isPlayerControlled: true,
|
||||||
x: utils.withGrid(2),
|
x: utils.withGrid(1),
|
||||||
y: utils.withGrid(3),
|
y: utils.withGrid(4),
|
||||||
}),
|
}),
|
||||||
npc1: new Person({
|
npc1: new Person({
|
||||||
x: utils.withGrid(3),
|
x: utils.withGrid(3),
|
||||||
@ -222,6 +234,41 @@ window.OverworldMaps = {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
walls: {
|
||||||
|
// "16,16": true
|
||||||
|
[utils.asGridCoord(1,1)] : true,
|
||||||
|
[utils.asGridCoord(1,2)] : true,
|
||||||
|
[utils.asGridCoord(1,3)] : true,
|
||||||
|
[utils.asGridCoord(0,4)] : true,
|
||||||
|
[utils.asGridCoord(1,5)] : true,
|
||||||
|
[utils.asGridCoord(1,6)] : true,
|
||||||
|
[utils.asGridCoord(2,7)] : true,
|
||||||
|
[utils.asGridCoord(3,7)] : true,
|
||||||
|
[utils.asGridCoord(4,7)] : true,
|
||||||
|
[utils.asGridCoord(5,7)] : true,
|
||||||
|
[utils.asGridCoord(6,7)] : true,
|
||||||
|
[utils.asGridCoord(7,7)] : true,
|
||||||
|
[utils.asGridCoord(8,6)] : true,
|
||||||
|
[utils.asGridCoord(8,5)] : true,
|
||||||
|
[utils.asGridCoord(8,4)] : true,
|
||||||
|
[utils.asGridCoord(8,3)] : true,
|
||||||
|
[utils.asGridCoord(8,2)] : true,
|
||||||
|
[utils.asGridCoord(7,1)] : true,
|
||||||
|
[utils.asGridCoord(6,1)] : true,
|
||||||
|
[utils.asGridCoord(5,1)] : true,
|
||||||
|
[utils.asGridCoord(4,1)] : true,
|
||||||
|
[utils.asGridCoord(3,1)] : true,
|
||||||
|
[utils.asGridCoord(2,1)] : true,
|
||||||
|
},
|
||||||
|
cutsceneSpaces: {
|
||||||
|
[utils.asGridCoord(1,4)]: [
|
||||||
|
{
|
||||||
|
events: [
|
||||||
|
{ type: "changeMap", map: "DemoRoom" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
BIN
images/maps/map-room-kitchen.png
Normal file
BIN
images/maps/map-room-kitchen.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
Loading…
Reference in New Issue
Block a user