changed naming of demoroom
changed npcs to default model
This commit is contained in:
		
							parent
							
								
									8a448bc04b
								
							
						
					
					
						commit
						aa9dcea14b
					
				| @ -89,7 +89,7 @@ class OverworldMap { | ||||
| } | ||||
| 
 | ||||
| window.OverworldMaps = { | ||||
| 	DemoRoom: { | ||||
| 	Entrance: { | ||||
| 		lowerSrc: "/images/maps/map-room-entrance.png", | ||||
| 		upperSrc: "", | ||||
| 		gameObjects: { | ||||
| @ -101,6 +101,7 @@ window.OverworldMaps = { | ||||
| 			npc1: new Person({ | ||||
| 				x: utils.withGrid(6), | ||||
| 				y: utils.withGrid(5), | ||||
| 				src: "/images/characters/people/hero-default.png", | ||||
| 				behaviorLoop: [ | ||||
| 					{ type: "stand", direction: "down", time: 800 }, | ||||
| 					{ type: "stand", direction: "right", time: 300 }, | ||||
| @ -119,6 +120,7 @@ window.OverworldMaps = { | ||||
| 			npc2: new Person({ | ||||
| 				x: utils.withGrid(2), | ||||
| 				y: utils.withGrid(5), | ||||
| 				src: "/images/characters/people/hero-default.png", | ||||
| 				behaviorLoop: [ | ||||
| 					{ type: "stand", direction: "right", 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: { | ||||
| 			// "16,16": true
 | ||||
| @ -253,6 +244,7 @@ window.OverworldMaps = { | ||||
| 			npc1: new Person({ | ||||
| 				x: utils.withGrid(3), | ||||
| 				y: utils.withGrid(6), | ||||
| 				src: "/images/characters/people/hero-default.png", | ||||
| 				// src: "/images/characters/people/hero-run.png",
 | ||||
| 				talking: [ | ||||
| 					{ | ||||
| @ -293,7 +285,7 @@ window.OverworldMaps = { | ||||
| 			[utils.asGridCoord(1,4)]: [ | ||||
| 				{ | ||||
| 					events: [ | ||||
| 						{ type: "changeMap", map: "DemoRoom" } | ||||
| 						{ type: "changeMap", map: "Entrance" } | ||||
| 					] | ||||
| 				} | ||||
| 			], | ||||
| @ -343,7 +335,7 @@ window.OverworldMaps = { | ||||
| 			[utils.asGridCoord(1,4)]: [ | ||||
| 				{ | ||||
| 					events: [ | ||||
| 						{ type: "changeMap", map: "DemoRoom" } | ||||
| 						{ type: "changeMap", map: "Entrance" } | ||||
| 					] | ||||
| 				} | ||||
| 			], | ||||
| @ -385,7 +377,7 @@ window.OverworldMaps = { | ||||
| 			[utils.asGridCoord(3,1)]: [ | ||||
| 				{ | ||||
| 					events: [ | ||||
| 						{ type: "changeMap", map: "DemoRoom" } | ||||
| 						{ type: "changeMap", map: "Entrance" } | ||||
| 					] | ||||
| 				} | ||||
| 			], | ||||
| @ -441,7 +433,7 @@ window.OverworldMaps = { | ||||
| 			[utils.asGridCoord(11,4)]: [ | ||||
| 				{ | ||||
| 					events: [ | ||||
| 						{ type: "changeMap", map: "DemoRoom" } | ||||
| 						{ type: "changeMap", map: "Entrance" } | ||||
| 					] | ||||
| 				} | ||||
| 			], | ||||
| @ -489,7 +481,7 @@ window.OverworldMaps = { | ||||
| 			[utils.asGridCoord(8,4)]: [ | ||||
| 				{ | ||||
| 					events: [ | ||||
| 						{ type: "changeMap", map: "DemoRoom" } | ||||
| 						{ type: "changeMap", map: "Entrance" } | ||||
| 					] | ||||
| 				} | ||||
| 			], | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user