changed naming of demoroom

changed npcs to default model
This commit is contained in:
Felix Baumgärtner 2024-08-20 16:12:02 +02:00
parent 8a448bc04b
commit aa9dcea14b

View File

@ -89,7 +89,7 @@ class OverworldMap {
} }
window.OverworldMaps = { window.OverworldMaps = {
DemoRoom: { Entrance: {
lowerSrc: "/images/maps/map-room-entrance.png", lowerSrc: "/images/maps/map-room-entrance.png",
upperSrc: "", upperSrc: "",
gameObjects: { gameObjects: {
@ -101,6 +101,7 @@ window.OverworldMaps = {
npc1: new Person({ npc1: new Person({
x: utils.withGrid(6), x: utils.withGrid(6),
y: utils.withGrid(5), y: utils.withGrid(5),
src: "/images/characters/people/hero-default.png",
behaviorLoop: [ behaviorLoop: [
{ type: "stand", direction: "down", time: 800 }, { type: "stand", direction: "down", time: 800 },
{ type: "stand", direction: "right", time: 300 }, { type: "stand", direction: "right", time: 300 },
@ -119,6 +120,7 @@ window.OverworldMaps = {
npc2: new Person({ npc2: new Person({
x: utils.withGrid(2), x: utils.withGrid(2),
y: utils.withGrid(5), y: utils.withGrid(5),
src: "/images/characters/people/hero-default.png",
behaviorLoop: [ behaviorLoop: [
{ type: "stand", direction: "right", time: 300 }, { type: "stand", direction: "right", time: 300 },
// { type: "stand", direction: "down", time: 300 }, // { type: "stand", direction: "down", time: 300 },
@ -133,17 +135,6 @@ 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: {
// "16,16": true // "16,16": true
@ -253,6 +244,7 @@ window.OverworldMaps = {
npc1: new Person({ npc1: new Person({
x: utils.withGrid(3), x: utils.withGrid(3),
y: utils.withGrid(6), y: utils.withGrid(6),
src: "/images/characters/people/hero-default.png",
// src: "/images/characters/people/hero-run.png", // src: "/images/characters/people/hero-run.png",
talking: [ talking: [
{ {
@ -293,7 +285,7 @@ window.OverworldMaps = {
[utils.asGridCoord(1,4)]: [ [utils.asGridCoord(1,4)]: [
{ {
events: [ events: [
{ type: "changeMap", map: "DemoRoom" } { type: "changeMap", map: "Entrance" }
] ]
} }
], ],
@ -343,7 +335,7 @@ window.OverworldMaps = {
[utils.asGridCoord(1,4)]: [ [utils.asGridCoord(1,4)]: [
{ {
events: [ events: [
{ type: "changeMap", map: "DemoRoom" } { type: "changeMap", map: "Entrance" }
] ]
} }
], ],
@ -385,7 +377,7 @@ window.OverworldMaps = {
[utils.asGridCoord(3,1)]: [ [utils.asGridCoord(3,1)]: [
{ {
events: [ events: [
{ type: "changeMap", map: "DemoRoom" } { type: "changeMap", map: "Entrance" }
] ]
} }
], ],
@ -441,7 +433,7 @@ window.OverworldMaps = {
[utils.asGridCoord(11,4)]: [ [utils.asGridCoord(11,4)]: [
{ {
events: [ events: [
{ type: "changeMap", map: "DemoRoom" } { type: "changeMap", map: "Entrance" }
] ]
} }
], ],
@ -489,7 +481,7 @@ window.OverworldMaps = {
[utils.asGridCoord(8,4)]: [ [utils.asGridCoord(8,4)]: [
{ {
events: [ events: [
{ type: "changeMap", map: "DemoRoom" } { type: "changeMap", map: "Entrance" }
] ]
} }
], ],