Files
FullScreenPokemon/settings/objects.js
T
Josh Goldberg 88b3a7ee2d Added initial intro stuffs to battles
The "A wild XXX appeared!" happens, then the menu. Nothing else.

FSP.BattleMover.startBattle({
"opponent": {
"title": "NidoranF"
}
});
2015-02-17 17:03:16 -05:00

925 lines
36 KiB
JavaScript

(function () {
FullScreenPokemon.prototype.settings.objects = {
"onMake": "onMake",
"indexMap": ["width", "height"],
"doPropertiesFull": true,
"inheritance": {
"Quadrant": {},
"Map": {},
"Area": {},
"Location": {},
"Thing": {
"Character": {
"Fatty": {},
"Lady": {},
"Mother": {},
"Player": {},
"Pokeball": {},
"RivalMother": {}
},
"Solid": {
"AsianScroll": {},
"BedSingle": {},
"Bookshelf": {},
"BuildingBase": {
"BuildingTopBase": {
"BuildingTopLeft": {},
"BuildingTopMiddle": {},
"BuildingTopRight": {}
},
"BuildingMiddleBase": {
"BuildingMiddleLeft": {},
"BuildingMiddleMiddle": {},
"BuildingMiddleRight": {},
"BuildingMiddleWindow": {}
},
"BuildingBottom": {},
},
"Cabinet": {},
"ComputerDesk": {},
"ConsoleAndController": {},
"FenceWide": {},
"FenceVertical": {},
"Grass": {},
"HouseBase": {
"HouseTop": {},
},
"HouseCenterLeft": {},
"HouseCenterMiddle": {},
"HouseCenterRight": {},
"HouseLargeBase": {
"HouseLargeTopLeft": {},
"HouseLargeTopMiddle": {},
"HouseLargeTopRight": {},
"HouseLargeCenter": {
"HouseLargeCenterLeft": {},
"HouseLargeCenterMiddle": {},
"HouseLargeCenterRight": {}
}
},
"HouseWallWhitewash": {},
"InvisibleWall": {},
"LabComputer": {},
"Label": {
"GymLabel": {},
"MartLabel": {},
"PokeLabel": {}
},
"Ledge": {},
"LedgeOpening": {},
"MountainSolidBase": {
"MountainRight": {},
"MountainTop": {},
"MountainTopRight": {},
"MountainTopLeft": {},
"MountainRight": {},
"MountainLeft": {},
"MountainBottom": {},
"MountainBottomLeft": {},
"MountainBottomRight": {},
},
"PlantSmall": {},
"PokeLabel": {},
"PottedPalmTree": {},
"Sign": {},
"Spawner": {},
"Table2x2": {},
"Table2x3": {},
"Table3x1": {},
"TelevisionMonitor": {},
"Transporter": {
"Door": {},
"HiddenTransporter": {},
"StairsDown": {},
"StairsUp": {}
},
"Tree": {},
"WaterEdge": {
"WaterEdgeTop": {},
"WaterEdgeRight": {},
"WaterEdgeBottom": {},
"WaterEdgeLeft": {}
},
"WindowDetector": {
"AreaSpawner": {}
}
},
"Scenery": {
"Book": {},
"Doormat": {},
"DoormatDotted": {},
"Flower": {},
"FlowerVase": {},
"HPBar": {},
"HPBarFill": {},
"Painting": {},
"Stool": {},
"Window": {},
"WindowBlinds": {},
"Portrait": {
"PlayerPortrait": {},
"BlainePortrait": {},
"BrockPortrait": {},
"ErikaPortrait": {},
"GiovanniPortrait": {},
"KogaPortrait": {},
"LtSurgePortrait": {},
"MistyPortrait": {},
"SabrinaPortrait": {},
"PokemonPortrait": {
"LandPokemon": {},
"WaterPokemon": {}
}
},
"BattleSprite": {
"BattleSpriteFront": {
"BattleSpriteFrontSmall": {
"BulbasaurFront": {},
"CharmanderFront": {},
"SquirtleFront": {},
"CaterpieFront": {},
"MetapodFront": {},
"WeedleFront": {},
"KakunaFront": {},
"PidgeyFront": {},
"RattataFront": {},
"SpearowFront": {},
"EkansFront": {},
"PikachuFront": {},
"SandshrewFront": {},
"NidoranFFront": {},
"NidoranMFront": {},
"ClefairyFront": {},
"JigglypuffFront": {},
"ZubatFront": {},
"OddishFront": {},
"ParasFront": {},
"VenonatFront": {},
"DiglettFront": {},
"MeowthFront": {},
"PsyduckFront": {},
"MankeyFront": {},
"GrowlitheFront": {},
"PoliwagFront": {},
"AbraFront": {},
"MachopFront": {},
"BellsproutFront": {},
"TentacoolFront": {},
"GeodudeFront": {},
"SlowpokeFront": {},
"MagnemiteFront": {},
"DoduoFront": {},
"GrimerFront": {},
"ShellderFront": {},
"KrabbyFront": {},
"VoltorbFront": {},
"ElectrodeFront": {},
"CuboneFront": {},
"HorseaFront": {},
"DittoFront": {},
"EeveeFront": {},
"OmanyteFront": {},
"KabutoFront": {},
"DratiniFront": {},
"MewFront": {}
},
"BattleSpriteFrontMedium": {
"IvysaurFront": {},
"CharmeleonFront": {},
"WartortleFront": {},
"PidgeottoFront": {},
"RaticateFront": {},
"SandslashFront": {},
"NidorinaFront": {},
"NidorinoFront": {},
"ClefableFront": {},
"VulpixFront": {},
"WigglytuffFront": {},
"GloomFront": {},
"DugtrioFront": {},
"PoliwhirlFront": {},
"KadabraFront": {},
"WeepinbellFront": {},
"TentacruelFront": {},
"GravelerFront": {},
"GolemFront": {},
"PonytaFront": {},
"MagnetonFront": {},
"FarfetchdFront": {},
"SeelFront": {},
"DewgongFront": {},
"HaunterFront": {},
"GengarFront": {},
"DrowzeeFront": {},
"MarowakFront": {},
"HitmonchanFront": {},
"KoffingFront": {},
"ChanseyFront": {},
"TangelaFront": {},
"SeadraFront": {},
"StaryuFront": {},
"StarmieFront": {},
"GoldeenFront": {},
"MrMimeFront": {},
"JynxFront": {},
"ElectabuzzFront": {},
"MagmarFront": {},
"MagikarpFront": {},
"VaporeonFront": {},
"JolteonFront": {},
"FlareonFront": {},
"PorygonFront": {},
"OmastarFront": {},
"KabutopsFront": {},
"DragonairFront": {}
},
"BattleSpriteFrontLarge": {
"VenusaurFront": {},
"CharizardFront": {},
"BlastoiseFront": {},
"ButterfreeFront": {},
"BeedrillFront": {},
"PidgeotFront": {},
"FearowFront": {},
"ArbokFront": {},
"RaichuFront": {},
"NidoqueenFront": {},
"NidokingFront": {},
"NinetalesFront": {},
"GolbatFront": {},
"VileplumeFront": {},
"ParasectFront": {},
"VenomothFront": {},
"PersianFront": {},
"GolduckFront": {},
"PrimeapeFront": {},
"ArcanineFront": {},
"PoliwrathFront": {},
"AlakazamFront": {},
"MachokeFront": {},
"MachampFront": {},
"VictreebelFront": {},
"RapidashFront": {},
"SlowbroFront": {},
"DodrioFront": {},
"MukFront": {},
"CloysterFront": {},
"GastlyFront": {},
"OnixFront": {},
"HypnoFront": {},
"KinglerFront": {},
"ExeggcuteFront": {},
"ExeggutorFront": {},
"HitmonleeFront": {},
"LickitungFront": {},
"WeezingFront": {},
"RhyhornFront": {},
"RhydonFront": {},
"KangaskhanFront": {},
"SeakingFront": {},
"ScytherFront": {},
"PinsirFront": {},
"TaurosFront": {},
"GyaradosFront": {},
"LaprasFront": {},
"AerodactylFront": {},
"SnorlaxFront": {},
"ArticunoFront": {},
"ZapdosFront": {},
"MoltresFront": {},
"DragoniteFront": {},
"MewtwoFront": {}
}
},
"BattleSpriteBack": {
"PlayerBack": {},
"BulbasaurBack": {},
"IvysaurBack": {},
"VenusaurBack": {},
"CharmanderBack": {},
"CharmeleonBack": {},
"CharizardBack": {},
"SquirtleBack": {},
"WartortleBack": {},
"BlastoiseBack": {},
"CaterpieBack": {},
"MetapodBack": {},
"ButterfreeBack": {},
"WeedleBack": {},
"KakunaBack": {},
"BeedrillBack": {},
"PidgeyBack": {},
"PidgeottoBack": {},
"PidgeotBack": {},
"RattataBack": {},
"RaticateBack": {},
"SpearowBack": {},
"FearowBack": {},
"EkansBack": {},
"ArbokBack": {},
"PikachuBack": {},
"RaichuBack": {},
"SandshrewBack": {},
"SandslashBack": {},
"NidoranFBack": {},
"NidorinaBack": {},
"NidoqueenBack": {},
"NidoranMBack": {},
"NidorinoBack": {},
"NidokingBack": {},
"ClefairyBack": {},
"ClefableBack": {},
"VulpixBack": {},
"NinetalesBack": {},
"JigglypuffBack": {},
"WigglytuffBack": {},
"ZubatBack": {},
"GolbatBack": {},
"OddishBack": {},
"GloomBack": {},
"VileplumeBack": {},
"ParasBack": {},
"ParasectBack": {},
"VenonatBack": {},
"VenomothBack": {},
"DiglettBack": {},
"DugtrioBack": {},
"MeowthBack": {},
"PersianBack": {},
"PsyduckBack": {},
"GolduckBack": {},
"MankeyBack": {},
"PrimeapeBack": {},
"GrowlitheBack": {},
"ArcanineBack": {},
"PoliwagBack": {},
"PoliwhirlBack": {},
"PoliwrathBack": {},
"AbraBack": {},
"KadabraBack": {},
"AlakazamBack": {},
"MachopBack": {},
"MachokeBack": {},
"MachampBack": {},
"BellsproutBack": {},
"WeepinbellBack": {},
"VictreebelBack": {},
"TentacoolBack": {},
"TentacruelBack": {},
"GeodudeBack": {},
"GravelerBack": {},
"GolemBack": {},
"PonytaBack": {},
"RapidashBack": {},
"SlowpokeBack": {},
"SlowbroBack": {},
"MagnemiteBack": {},
"MagnetonBack": {},
"FarfetchdBack": {},
"DoduoBack": {},
"DodrioBack": {},
"SeelBack": {},
"DewgongBack": {},
"GrimerBack": {},
"MukBack": {},
"ShellderBack": {},
"CloysterBack": {},
"GastlyBack": {},
"HaunterBack": {},
"GengarBack": {},
"OnixBack": {},
"DrowzeeBack": {},
"HypnoBack": {},
"KrabbyBack": {},
"KinglerBack": {},
"VoltorbBack": {},
"ElectrodeBack": {},
"ExeggcuteBack": {},
"ExeggutorBack": {},
"CuboneBack": {},
"MarowakBack": {},
"HitmonleeBack": {},
"HitmonchanBack": {},
"LickitungBack": {},
"KoffingBack": {},
"WeezingBack": {},
"RhyhornBack": {},
"RhydonBack": {},
"ChanseyBack": {},
"TangelaBack": {},
"KangaskhanBack": {},
"HorseaBack": {},
"SeadraBack": {},
"GoldeenBack": {},
"SeakingBack": {},
"StaryuBack": {},
"StarmieBack": {},
"MrMimeBack": {},
"ScytherBack": {},
"JynxBack": {},
"ElectabuzzBack": {},
"MagmarBack": {},
"PinsirBack": {},
"TaurosBack": {},
"MagikarpBack": {},
"GyaradosBack": {},
"LaprasBack": {},
"DittoBack": {},
"EeveeBack": {},
"VaporeonBack": {},
"JolteonBack": {},
"FlareonBack": {},
"PorygonBack": {},
"OmanyteBack": {},
"OmastarBack": {},
"KabutoBack": {},
"KabutopsBack": {},
"AerodactylBack": {},
"SnorlaxBack": {},
"ArticunoBack": {},
"ZapdosBack": {},
"MoltresBack": {},
"DratiniBack": {},
"DragonairBack": {},
"DragoniteBack": {},
"MewtwoBack": {},
"MewBack": {}
}
}
},
"Terrain": {
"TerrainSmall": {
"TerrainSmallRepeating": {
"WallIndoorHorizontalBands": {},
"WallIndoorLightWithDarkBottom": {}
}
},
"DirtClean": {},
"DirtLight": {},
"DirtMedium": {},
"DirtWhite": {},
"FloorLinedHorizontal": {},
"FloorTiledDiagonal": {},
"Mountain": {},
"Water": {}
},
"Text": {
"CharacterUpperCase": {
"CharA": {},
"CharB": {},
"CharC": {},
"CharD": {},
"CharE": {},
"CharF": {},
"CharG": {},
"CharH": {},
"CharI": {},
"CharJ": {},
"CharK": {},
"CharL": {},
"CharM": {},
"CharN": {},
"CharO": {},
"CharP": {},
"CharQ": {},
"CharR": {},
"CharS": {},
"CharT": {},
"CharU": {},
"CharV": {},
"CharW": {},
"CharX": {},
"CharY": {},
"CharZ": {},
},
"CharacterLowerCase": {
"Chara": {},
"Charb": {},
"Charc": {},
"Chard": {},
"Chare": {},
"Charf": {},
"Charh": {},
"Chari": {},
"Chark": {},
"Charl": {},
"Charm": {},
"Charn": {},
"Charo": {},
"Charr": {},
"Chars": {},
"Chart": {},
"Charu": {},
"Charv": {},
"Charw": {},
"Charx": {},
"Charz": {},
"CharacterDropped": {
"Charg": {},
"Charj": {},
"Charp": {},
"Charq": {},
"Chary": {}
}
},
"CharacterShadow": {
"Char0Shadow": {},
"Char1Shadow": {},
"Char2Shadow": {},
"Char3Shadow": {},
"Char4Shadow": {},
"Char5Shadow": {},
"Char6Shadow": {},
"Char7Shadow": {},
"Char8Shadow": {},
"Char9Shadow": {},
},
"Number": {
"Char0": {},
"Char1": {},
"Char2": {},
"Char3": {},
"Char4": {},
"Char5": {},
"Char6": {},
"Char7": {},
"Char8": {},
"Char9": {}
},
"Symbol": {
"CharTimes": {},
"CharLeftParenthesis": {},
"CharRightParenthesis": {},
"CharColon": {},
"CharSemicolon": {},
"CharLeftSquareBracket": {},
"CharRightSquareBracket": {},
"CharPoke": {},
"CharMon": {},
"CharHyphen": {},
"CharQuestionMark": {},
"CharExclamationMark": {},
"CharMaleSymbol": {},
"CharFemaleSymbol": {},
"CharSlash": {},
"CharPeriod": {},
"CharComma": {},
"CharED": {},
"CharApostrophe": {},
"ChareFancy": {},
"CharBall": {},
"CharCircle": {},
"CharHP": {},
"CharLevel": {}
},
"CharArrow": {
"CharArrowUp": {},
"CharArrowRight": {},
"CharArrowDown": {},
"CharArrowLeft": {}
},
"HalfArrow": {
"HalfArrowLeft": {},
"HalfArrowRight": {}
},
"Line": {
"LineDecorator": {},
"LineSeparatorHorizontal": {},
}
},
"Menu": {}
}
},
"properties": {
"Quadrant": {
"tolx": 0,
"toly": 0
},
"Map": {
"initialized": false
},
"Area": {
"background": "black",
//"stretches": [
////{ "thing": "BackgroundFaker", "noBoundaryStretch": true } // This needs implementation.
//],
"onMake": FullScreenPokemon.prototype.areaProcess,
"attributes": {
"invisibleWallBorders": {
"afters": [
{ "thing": "InvisibleWall", "noBoundaryStretch": true },
{ "thing": "InvisibleWall", "noBoundaryStretch": true },
{ "thing": "InvisibleWall", "noBoundaryStretch": true },
{ "thing": "InvisibleWall", "noBoundaryStretch": true }
]
}
}
},
"Location": {
"entry": "Normal",
},
"Thing": {
// Sizing
"width": 8,
"height": 8,
// Placement
"alive": true,
"placed": false,
"maxquads": 4,
// Sprites
"sprite": "",
"spriteType": "neither",
"opacity": 1,
"scale": 1,
"offsetX": 0,
"offsetY": 0,
// Movements
"movement": undefined,
// Triggered Functions
"onMake": FullScreenPokemon.prototype.thingProcess
},
"Character": {
"groupType": "Character",
"speed": FullScreenPokemon.unitsize / 3,
"isWalking": false,
"shouldWalk": false,
"switchDirectionOnDialog": true,
"direction": 2, // top,right,bottom,left is 0,1,2,3
"offsetY": FullScreenPokemon.unitsize * -2,
"onWalkingStart": FullScreenPokemon.prototype.animateCharacterStartWalking,
"onWalkingStop": FullScreenPokemon.prototype.animateCharacterStopWalking,
"attributes": {
"roaming": {
"onThingAdd": FullScreenPokemon.prototype.spawnCharacterRoaming
}
}
},
"Mother": {
"directionPreferred": 3
},
"Player": {
"id": "player",
"player": true,
"canKeyWalking": true,
"direction": 2,
"speed": FullScreenPokemon.unitsize / 2,
"onWalkingStart": FullScreenPokemon.prototype.animatePlayerStartWalking,
"onWalkingStop": FullScreenPokemon.prototype.animatePlayerStopWalking,
"getKeys": function () {
return {
"0": false,
"1": false,
"2": false,
"3": false,
"a": false,
"b": false
};
}
},
"Solid": {
"groupType": "Solid",
"repeat": true
},
"BedSingle": [8, 16],
"Bookshelf": {
"width": 8,
"height": 16,
"dialogDirections": true,
"dialog": ["", "", "Crammed full of %%%%%%%POKEMON%%%%%%% books!", ""]
},
"BuildingBase": [4, 4],
"BuildingTopBase": {
"height": 16,
"spriteheight": 4
},
"BuildingMiddleBase": {
"height": 8,
"spriteheight": 4
},
"BuildingBottom": {
"height": 4
},
"Cabinet": [8, 16],
"ComputerDesk": [8, 16],
"ConsoleController": [8, 5],
"FenceVertical": [4, 8],
"Grass": {
"nocollide": true
},
"HouseBase": {
"width": 32,
"height": 8,
"spritewidth": 16,
"spriteheight": 16
},
"HouseTop": {
"width": 32,
"height": 16,
"spritewidth": 16
},
"HouseLargeBase": {
"width": 48,
"height": 20,
"spritewidth": 20
},
"HouseLargeTopLeft": {
"width": 8,
"spritewidth": 8
},
"HouseLargeTopMiddle": {
"width": 48,
},
"HouseLargeTopRight": {
"width": 8,
"spritewidth": 8
},
"HouseLargeCenter": {
"spritewidth": 4,
"height": 12
},
"HouseWallWhitewash": [4, 4],
"InvisibleWall": {
"hidden": true
},
"LabComputer": [16, 8],
"Label": {
"position": "end"
},
"GymLabel": [16, 4],
"Ledge": {
"width": 8,
"height": 4,
"spritewidth": 4,
"collide": FullScreenPokemon.prototype.collideLedge,
"attributes": {
"jagged": {
"spritewidth": 16
},
"crumbleLeft": {},
"crumbleRight": {}
}
},
"LedgeOpening": {
"width": 8,
"height": 4,
"spritewidth": 4,
"nocollide": true
},
"MountainSolidBase": [4, 4],
"MountainTop": [4, 5],
"PottedPalmTree": [8, 16],
"Spawner": {
"hidden": true,
"onThingAdd": FullScreenPokemon.prototype.activateSpawner
},
"AreaSpawner": {
"activate": FullScreenPokemon.prototype.spawnAreaSpawner
},
"Table2x2": [16, 16],
"Table2x3": [16, 16],
"Table3x1": [24, 12],
"Transporter": {
"collide": FullScreenPokemon.prototype.collideTransporter,
"activate": FullScreenPokemon.prototype.activateTransporter,
"activated": false
},
"Tree": {
"dialog": "IT WOULD BE NICE TO CUT THE TREE DOWN LEL"
},
"Door": {
"width": 8,
"height": 8
},
"HiddenTransporter": {
"hidden": true,
"noStretchBoundaries": true
},
"WaterEdge": [4, 4],
"WindowDetector": {
"hidden": true,
"onThingAdd": FullScreenPokemon.prototype.spawnWindowDetector
},
"FloorLinedHorizontal": {
"spritewidth": .5,
"spriteheight": 2
},
"Scenery": {
"groupType": "Scenery",
"repeat": true
},
"Doormat": {
"spritewidth": .5,
"spriteheight": 8
},
"DoormatDotted": {
"spritewidth": 3.5,
"spriteheight": 7.5
},
"Flower": {
"width": 4,
"height": 4,
"spriteCycle": [
["one", "one", "two", "three"], "waving", 14
]
},
"FlowerVase": [6, 6],
"HPBar": [.5, 2],
"HPBarFill": [.5, .5],
"PlayerPortrait": [13, 23],
"BattleSpriteFrontSmall": [20, 20],
"BattleSpriteFrontMedium": [24, 24],
"BattleSpriteFrontLarge": [28, 28],
"BattleSpriteBack": {
"width": 16,
"height": 14, // 16 (lowest 2 cropped)
"scale": 2,
"repeat": false
},
"PlayerBack": [14, 14],
"Terrain": {
"groupType": "Terrain",
"repeat": true
},
"TerrainSmall": [2, 2],
"TerrainSmallRepeating": {
"width": 8,
"height": 8,
"spritewidth": 2,
"spriteheight": 2
},
"Mountain": [4, 4],
"WallIndoorLightWithDarkBottom": {
"spritewidth": .5,
"spriteheight": 8
},
"Water": {
"spriteCycle": [
["one", "two", "three", "two", "one", "four", "five", "four"], "waving", 14
]
},
"Text": {
"groupType": "Text",
"width": 4,
"height": 4,
"paddingX": 0,
"paddingY": 8,
"noshiftx": true,
"noshifty": true,
},
"CharacterDropped": {
"offsetY": FullScreenPokemon.unitsize * .75
},
"CharacterShadow": [3.5, 3.5],
"CharPoke": {
"offsetY": FullScreenPokemon.unitsize * .5
},
"CharMon": {
"offsetY": FullScreenPokemon.unitsize * .5
},
"CharSlash": {
"offsetY": FullScreenPokemon.unitsize * .5
},
"CharApostrophe": [1, 2],
"CharBall": [3.5, 3.5],
"CharCircle": [2.5, 2.5],
"CharHP": [5.5, 2],
"CharLevel": [3, 2.5],
"CharArrowUp": [3.5, 2.5],
"CharArrowRight": [2.5, 3.5],
"CharArrowDown": [3.5, 2.5],
"CharArrowLeft": [2.5, 3.5],
"HalfArrow": [4, 2],
"Line": {
"width": 1,
"height": 1,
"repeat": true
},
"LineDecorator": [3, 8],
"LineSeparatorHorizontal": [4, 4],
"Menu": {
"groupType": "Text",
"spritewidth": 4,
"spriteheight": 4,
"width": 8,
"height": 8,
"repeat": true,
"noshiftx": true,
"noshifty": true,
"arrowXOffset": 1.25,
"arrowYOffset": 1,
"textXOffset": 4,
"textYOffset": 7.5,
"textSpeed": 1,
"attributes": {
"plain": {},
"light": {
"spritewidth": 1,
"spriteheight": 1
},
"dirty": {}
}
},
}
};
})();