mirror of
https://github.com/chase-manning/pokemon-js.git
synced 2025-10-08 13:50:18 +00:00
🚀 add route 22
This commit is contained in:
parent
33c89304bf
commit
ddb694b2ac
3 changed files with 14 additions and 34 deletions
|
@ -5,6 +5,7 @@ import lab from "./lab";
|
|||
import { MapId, MapType } from "./map-types";
|
||||
import palletTown from "./pallet-town";
|
||||
import route1 from "./route-1";
|
||||
import route22 from "./route-22";
|
||||
import viridianCity from "./viridian-city";
|
||||
import viridianCityAcadamy from "./viridian-city-acadamy";
|
||||
import viridianCityGym from "./viridian-city-gym";
|
||||
|
@ -25,6 +26,7 @@ const mapData: Record<string, MapType> = {
|
|||
[MapId.ViridianCityPokemonAcadamy]: viridianCityAcadamy,
|
||||
[MapId.ViridianCityNpcHouse]: viridianCityNpcHouse,
|
||||
[MapId.ViridianCityGym]: viridianCityGym,
|
||||
[MapId.Route22]: route22,
|
||||
};
|
||||
|
||||
export default mapData;
|
||||
|
|
|
@ -14,6 +14,7 @@ export enum MapId {
|
|||
ViridianCityPokemonCenter = "viridian-city-pokemon-center",
|
||||
ViridianCityPokemonAcadamy = "viridian-city-pokemon-acadamy",
|
||||
ViridianCityNpcHouse = "veridian-city-npc-house",
|
||||
Route22 = "route-22",
|
||||
}
|
||||
|
||||
export interface PokemonEncounterData {
|
||||
|
|
|
@ -3,11 +3,6 @@ import { MapId, MapType } from "./map-types";
|
|||
|
||||
import music from "../assets/music/maps/pewter-city.mp3";
|
||||
import getEncounterData from "./get-location-data";
|
||||
import { Direction } from "../state/state-types";
|
||||
|
||||
// TODO Remove
|
||||
import trainer from "../assets/title-screen/player.png";
|
||||
import sprite from "../assets/character/front-still.png";
|
||||
|
||||
const viridianCity: MapType = {
|
||||
name: "Viridian City",
|
||||
|
@ -120,9 +115,19 @@ const viridianCity: MapType = {
|
|||
9: {
|
||||
21: MapId.ViridianCityNpcHouse,
|
||||
},
|
||||
14: {
|
||||
0: MapId.Route22,
|
||||
},
|
||||
15: {
|
||||
0: MapId.Route22,
|
||||
21: MapId.ViridianCityPokemonAcadamy,
|
||||
},
|
||||
16: {
|
||||
0: MapId.Route22,
|
||||
},
|
||||
17: {
|
||||
0: MapId.Route22,
|
||||
},
|
||||
19: {
|
||||
29: MapId.ViridianCityPokeMart,
|
||||
},
|
||||
|
@ -142,35 +147,7 @@ const viridianCity: MapType = {
|
|||
x: 11,
|
||||
y: 1,
|
||||
},
|
||||
trainers: [
|
||||
{
|
||||
id: "test",
|
||||
name: "Trainer Name",
|
||||
sprites: {
|
||||
small: sprite,
|
||||
large: trainer,
|
||||
},
|
||||
pokemon: [
|
||||
{
|
||||
id: 3,
|
||||
level: 3,
|
||||
hp: 1,
|
||||
moves: ["tackle"],
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
level: 3,
|
||||
hp: 1,
|
||||
moves: ["tackle"],
|
||||
},
|
||||
],
|
||||
facing: Direction.Down,
|
||||
intro: ["INtro 1", "Intro 2"],
|
||||
outtro: ["Outro 1", "Outro 2"],
|
||||
money: 123,
|
||||
pos: { x: 25, y: 5 },
|
||||
},
|
||||
],
|
||||
trainers: [],
|
||||
};
|
||||
|
||||
export default viridianCity;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue