mirror of
https://github.com/dylanbenzi/terminaltrainers.git
synced 2026-11-27 07:47:01 +00:00
modify render(), cleanup assets
This commit is contained in:
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 200 KiB After Width: | Height: | Size: 200 KiB |
@@ -0,0 +1,974 @@
|
|||||||
|
{
|
||||||
|
"abilities": [
|
||||||
|
{
|
||||||
|
"ability": {
|
||||||
|
"name": "limber",
|
||||||
|
"url": "https://pokeapi.co/api/v2/ability/7/"
|
||||||
|
},
|
||||||
|
"is_hidden": false,
|
||||||
|
"slot": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ability": {
|
||||||
|
"name": "imposter",
|
||||||
|
"url": "https://pokeapi.co/api/v2/ability/150/"
|
||||||
|
},
|
||||||
|
"is_hidden": true,
|
||||||
|
"slot": 3
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"base_experience": 101,
|
||||||
|
"cries": {
|
||||||
|
"latest": "https://raw.githubusercontent.com/PokeAPI/cries/main/cries/pokemon/latest/132.ogg",
|
||||||
|
"legacy": "https://raw.githubusercontent.com/PokeAPI/cries/main/cries/pokemon/legacy/132.ogg"
|
||||||
|
},
|
||||||
|
"forms": [
|
||||||
|
{
|
||||||
|
"name": "ditto",
|
||||||
|
"url": "https://pokeapi.co/api/v2/pokemon-form/132/"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"game_indices": [
|
||||||
|
{
|
||||||
|
"game_index": 76,
|
||||||
|
"version": {
|
||||||
|
"name": "red",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/1/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"game_index": 76,
|
||||||
|
"version": {
|
||||||
|
"name": "blue",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/2/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"game_index": 76,
|
||||||
|
"version": {
|
||||||
|
"name": "yellow",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/3/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"game_index": 132,
|
||||||
|
"version": {
|
||||||
|
"name": "gold",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/4/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"game_index": 132,
|
||||||
|
"version": {
|
||||||
|
"name": "silver",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/5/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"game_index": 132,
|
||||||
|
"version": {
|
||||||
|
"name": "crystal",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/6/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"game_index": 132,
|
||||||
|
"version": {
|
||||||
|
"name": "ruby",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/7/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"game_index": 132,
|
||||||
|
"version": {
|
||||||
|
"name": "sapphire",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/8/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"game_index": 132,
|
||||||
|
"version": {
|
||||||
|
"name": "emerald",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/9/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"game_index": 132,
|
||||||
|
"version": {
|
||||||
|
"name": "firered",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/10/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"game_index": 132,
|
||||||
|
"version": {
|
||||||
|
"name": "leafgreen",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/11/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"game_index": 132,
|
||||||
|
"version": {
|
||||||
|
"name": "diamond",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/12/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"game_index": 132,
|
||||||
|
"version": {
|
||||||
|
"name": "pearl",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/13/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"game_index": 132,
|
||||||
|
"version": {
|
||||||
|
"name": "platinum",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/14/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"game_index": 132,
|
||||||
|
"version": {
|
||||||
|
"name": "heartgold",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/15/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"game_index": 132,
|
||||||
|
"version": {
|
||||||
|
"name": "soulsilver",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/16/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"game_index": 132,
|
||||||
|
"version": {
|
||||||
|
"name": "black",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/17/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"game_index": 132,
|
||||||
|
"version": {
|
||||||
|
"name": "white",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/18/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"game_index": 132,
|
||||||
|
"version": {
|
||||||
|
"name": "black-2",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/21/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"game_index": 132,
|
||||||
|
"version": {
|
||||||
|
"name": "white-2",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/22/"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"height": 3,
|
||||||
|
"held_items": [
|
||||||
|
{
|
||||||
|
"item": {
|
||||||
|
"name": "metal-powder",
|
||||||
|
"url": "https://pokeapi.co/api/v2/item/234/"
|
||||||
|
},
|
||||||
|
"version_details": [
|
||||||
|
{
|
||||||
|
"rarity": 5,
|
||||||
|
"version": {
|
||||||
|
"name": "ruby",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/7/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 5,
|
||||||
|
"version": {
|
||||||
|
"name": "sapphire",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/8/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 5,
|
||||||
|
"version": {
|
||||||
|
"name": "emerald",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/9/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 5,
|
||||||
|
"version": {
|
||||||
|
"name": "firered",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/10/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 5,
|
||||||
|
"version": {
|
||||||
|
"name": "leafgreen",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/11/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 5,
|
||||||
|
"version": {
|
||||||
|
"name": "diamond",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/12/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 5,
|
||||||
|
"version": {
|
||||||
|
"name": "pearl",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/13/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 5,
|
||||||
|
"version": {
|
||||||
|
"name": "platinum",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/14/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 5,
|
||||||
|
"version": {
|
||||||
|
"name": "heartgold",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/15/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 5,
|
||||||
|
"version": {
|
||||||
|
"name": "soulsilver",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/16/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 5,
|
||||||
|
"version": {
|
||||||
|
"name": "black",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/17/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 5,
|
||||||
|
"version": {
|
||||||
|
"name": "white",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/18/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 5,
|
||||||
|
"version": {
|
||||||
|
"name": "black-2",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/21/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 5,
|
||||||
|
"version": {
|
||||||
|
"name": "white-2",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/22/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 5,
|
||||||
|
"version": {
|
||||||
|
"name": "x",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/23/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 5,
|
||||||
|
"version": {
|
||||||
|
"name": "y",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/24/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 5,
|
||||||
|
"version": {
|
||||||
|
"name": "omega-ruby",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/25/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 5,
|
||||||
|
"version": {
|
||||||
|
"name": "alpha-sapphire",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/26/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 5,
|
||||||
|
"version": {
|
||||||
|
"name": "sun",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/27/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 5,
|
||||||
|
"version": {
|
||||||
|
"name": "moon",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/28/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 5,
|
||||||
|
"version": {
|
||||||
|
"name": "ultra-sun",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/29/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 5,
|
||||||
|
"version": {
|
||||||
|
"name": "ultra-moon",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/30/"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": {
|
||||||
|
"name": "quick-powder",
|
||||||
|
"url": "https://pokeapi.co/api/v2/item/251/"
|
||||||
|
},
|
||||||
|
"version_details": [
|
||||||
|
{
|
||||||
|
"rarity": 50,
|
||||||
|
"version": {
|
||||||
|
"name": "diamond",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/12/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 50,
|
||||||
|
"version": {
|
||||||
|
"name": "pearl",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/13/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 50,
|
||||||
|
"version": {
|
||||||
|
"name": "platinum",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/14/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 50,
|
||||||
|
"version": {
|
||||||
|
"name": "heartgold",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/15/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 50,
|
||||||
|
"version": {
|
||||||
|
"name": "soulsilver",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/16/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 50,
|
||||||
|
"version": {
|
||||||
|
"name": "black",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/17/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 50,
|
||||||
|
"version": {
|
||||||
|
"name": "white",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/18/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 50,
|
||||||
|
"version": {
|
||||||
|
"name": "black-2",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/21/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 50,
|
||||||
|
"version": {
|
||||||
|
"name": "white-2",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/22/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 50,
|
||||||
|
"version": {
|
||||||
|
"name": "x",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/23/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 50,
|
||||||
|
"version": {
|
||||||
|
"name": "y",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/24/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 50,
|
||||||
|
"version": {
|
||||||
|
"name": "omega-ruby",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/25/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 50,
|
||||||
|
"version": {
|
||||||
|
"name": "alpha-sapphire",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/26/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 50,
|
||||||
|
"version": {
|
||||||
|
"name": "sun",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/27/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 50,
|
||||||
|
"version": {
|
||||||
|
"name": "moon",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/28/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 50,
|
||||||
|
"version": {
|
||||||
|
"name": "ultra-sun",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/29/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rarity": 50,
|
||||||
|
"version": {
|
||||||
|
"name": "ultra-moon",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version/30/"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"id": 132,
|
||||||
|
"is_default": true,
|
||||||
|
"location_area_encounters": "https://pokeapi.co/api/v2/pokemon/132/encounters",
|
||||||
|
"moves": [
|
||||||
|
{
|
||||||
|
"move": {
|
||||||
|
"name": "transform",
|
||||||
|
"url": "https://pokeapi.co/api/v2/move/144/"
|
||||||
|
},
|
||||||
|
"version_group_details": [
|
||||||
|
{
|
||||||
|
"level_learned_at": 1,
|
||||||
|
"move_learn_method": {
|
||||||
|
"name": "level-up",
|
||||||
|
"url": "https://pokeapi.co/api/v2/move-learn-method/1/"
|
||||||
|
},
|
||||||
|
"version_group": {
|
||||||
|
"name": "red-blue",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version-group/1/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"level_learned_at": 1,
|
||||||
|
"move_learn_method": {
|
||||||
|
"name": "level-up",
|
||||||
|
"url": "https://pokeapi.co/api/v2/move-learn-method/1/"
|
||||||
|
},
|
||||||
|
"version_group": {
|
||||||
|
"name": "yellow",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version-group/2/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"level_learned_at": 1,
|
||||||
|
"move_learn_method": {
|
||||||
|
"name": "level-up",
|
||||||
|
"url": "https://pokeapi.co/api/v2/move-learn-method/1/"
|
||||||
|
},
|
||||||
|
"version_group": {
|
||||||
|
"name": "gold-silver",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version-group/3/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"level_learned_at": 1,
|
||||||
|
"move_learn_method": {
|
||||||
|
"name": "level-up",
|
||||||
|
"url": "https://pokeapi.co/api/v2/move-learn-method/1/"
|
||||||
|
},
|
||||||
|
"version_group": {
|
||||||
|
"name": "crystal",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version-group/4/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"level_learned_at": 1,
|
||||||
|
"move_learn_method": {
|
||||||
|
"name": "level-up",
|
||||||
|
"url": "https://pokeapi.co/api/v2/move-learn-method/1/"
|
||||||
|
},
|
||||||
|
"version_group": {
|
||||||
|
"name": "ruby-sapphire",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version-group/5/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"level_learned_at": 1,
|
||||||
|
"move_learn_method": {
|
||||||
|
"name": "level-up",
|
||||||
|
"url": "https://pokeapi.co/api/v2/move-learn-method/1/"
|
||||||
|
},
|
||||||
|
"version_group": {
|
||||||
|
"name": "emerald",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version-group/6/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"level_learned_at": 1,
|
||||||
|
"move_learn_method": {
|
||||||
|
"name": "level-up",
|
||||||
|
"url": "https://pokeapi.co/api/v2/move-learn-method/1/"
|
||||||
|
},
|
||||||
|
"version_group": {
|
||||||
|
"name": "firered-leafgreen",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version-group/7/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"level_learned_at": 1,
|
||||||
|
"move_learn_method": {
|
||||||
|
"name": "level-up",
|
||||||
|
"url": "https://pokeapi.co/api/v2/move-learn-method/1/"
|
||||||
|
},
|
||||||
|
"version_group": {
|
||||||
|
"name": "diamond-pearl",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version-group/8/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"level_learned_at": 1,
|
||||||
|
"move_learn_method": {
|
||||||
|
"name": "level-up",
|
||||||
|
"url": "https://pokeapi.co/api/v2/move-learn-method/1/"
|
||||||
|
},
|
||||||
|
"version_group": {
|
||||||
|
"name": "platinum",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version-group/9/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"level_learned_at": 1,
|
||||||
|
"move_learn_method": {
|
||||||
|
"name": "level-up",
|
||||||
|
"url": "https://pokeapi.co/api/v2/move-learn-method/1/"
|
||||||
|
},
|
||||||
|
"version_group": {
|
||||||
|
"name": "heartgold-soulsilver",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version-group/10/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"level_learned_at": 1,
|
||||||
|
"move_learn_method": {
|
||||||
|
"name": "level-up",
|
||||||
|
"url": "https://pokeapi.co/api/v2/move-learn-method/1/"
|
||||||
|
},
|
||||||
|
"version_group": {
|
||||||
|
"name": "black-white",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version-group/11/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"level_learned_at": 1,
|
||||||
|
"move_learn_method": {
|
||||||
|
"name": "level-up",
|
||||||
|
"url": "https://pokeapi.co/api/v2/move-learn-method/1/"
|
||||||
|
},
|
||||||
|
"version_group": {
|
||||||
|
"name": "colosseum",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version-group/12/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"level_learned_at": 1,
|
||||||
|
"move_learn_method": {
|
||||||
|
"name": "level-up",
|
||||||
|
"url": "https://pokeapi.co/api/v2/move-learn-method/1/"
|
||||||
|
},
|
||||||
|
"version_group": {
|
||||||
|
"name": "xd",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version-group/13/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"level_learned_at": 1,
|
||||||
|
"move_learn_method": {
|
||||||
|
"name": "level-up",
|
||||||
|
"url": "https://pokeapi.co/api/v2/move-learn-method/1/"
|
||||||
|
},
|
||||||
|
"version_group": {
|
||||||
|
"name": "black-2-white-2",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version-group/14/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"level_learned_at": 1,
|
||||||
|
"move_learn_method": {
|
||||||
|
"name": "level-up",
|
||||||
|
"url": "https://pokeapi.co/api/v2/move-learn-method/1/"
|
||||||
|
},
|
||||||
|
"version_group": {
|
||||||
|
"name": "x-y",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version-group/15/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"level_learned_at": 1,
|
||||||
|
"move_learn_method": {
|
||||||
|
"name": "level-up",
|
||||||
|
"url": "https://pokeapi.co/api/v2/move-learn-method/1/"
|
||||||
|
},
|
||||||
|
"version_group": {
|
||||||
|
"name": "omega-ruby-alpha-sapphire",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version-group/16/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"level_learned_at": 1,
|
||||||
|
"move_learn_method": {
|
||||||
|
"name": "level-up",
|
||||||
|
"url": "https://pokeapi.co/api/v2/move-learn-method/1/"
|
||||||
|
},
|
||||||
|
"version_group": {
|
||||||
|
"name": "sun-moon",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version-group/17/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"level_learned_at": 1,
|
||||||
|
"move_learn_method": {
|
||||||
|
"name": "level-up",
|
||||||
|
"url": "https://pokeapi.co/api/v2/move-learn-method/1/"
|
||||||
|
},
|
||||||
|
"version_group": {
|
||||||
|
"name": "ultra-sun-ultra-moon",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version-group/18/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"level_learned_at": 1,
|
||||||
|
"move_learn_method": {
|
||||||
|
"name": "level-up",
|
||||||
|
"url": "https://pokeapi.co/api/v2/move-learn-method/1/"
|
||||||
|
},
|
||||||
|
"version_group": {
|
||||||
|
"name": "lets-go-pikachu-lets-go-eevee",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version-group/19/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"level_learned_at": 1,
|
||||||
|
"move_learn_method": {
|
||||||
|
"name": "level-up",
|
||||||
|
"url": "https://pokeapi.co/api/v2/move-learn-method/1/"
|
||||||
|
},
|
||||||
|
"version_group": {
|
||||||
|
"name": "sword-shield",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version-group/20/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"level_learned_at": 1,
|
||||||
|
"move_learn_method": {
|
||||||
|
"name": "level-up",
|
||||||
|
"url": "https://pokeapi.co/api/v2/move-learn-method/1/"
|
||||||
|
},
|
||||||
|
"version_group": {
|
||||||
|
"name": "brilliant-diamond-and-shining-pearl",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version-group/23/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"level_learned_at": 1,
|
||||||
|
"move_learn_method": {
|
||||||
|
"name": "level-up",
|
||||||
|
"url": "https://pokeapi.co/api/v2/move-learn-method/1/"
|
||||||
|
},
|
||||||
|
"version_group": {
|
||||||
|
"name": "scarlet-violet",
|
||||||
|
"url": "https://pokeapi.co/api/v2/version-group/25/"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"name": "ditto",
|
||||||
|
"order": 214,
|
||||||
|
"past_abilities": [],
|
||||||
|
"past_types": [],
|
||||||
|
"species": {
|
||||||
|
"name": "ditto",
|
||||||
|
"url": "https://pokeapi.co/api/v2/pokemon-species/132/"
|
||||||
|
},
|
||||||
|
"sprites": {
|
||||||
|
"back_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/back/132.png",
|
||||||
|
"back_female": null,
|
||||||
|
"back_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/back/shiny/132.png",
|
||||||
|
"back_shiny_female": null,
|
||||||
|
"front_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/132.png",
|
||||||
|
"front_female": null,
|
||||||
|
"front_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/shiny/132.png",
|
||||||
|
"front_shiny_female": null,
|
||||||
|
"other": {
|
||||||
|
"dream_world": {
|
||||||
|
"front_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/dream-world/132.svg",
|
||||||
|
"front_female": null
|
||||||
|
},
|
||||||
|
"home": {
|
||||||
|
"front_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/home/132.png",
|
||||||
|
"front_female": null,
|
||||||
|
"front_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/home/shiny/132.png",
|
||||||
|
"front_shiny_female": null
|
||||||
|
},
|
||||||
|
"official-artwork": {
|
||||||
|
"front_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/132.png",
|
||||||
|
"front_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/shiny/132.png"
|
||||||
|
},
|
||||||
|
"showdown": {
|
||||||
|
"back_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/showdown/back/132.gif",
|
||||||
|
"back_female": null,
|
||||||
|
"back_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/showdown/back/shiny/132.gif",
|
||||||
|
"back_shiny_female": null,
|
||||||
|
"front_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/showdown/132.gif",
|
||||||
|
"front_female": null,
|
||||||
|
"front_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/showdown/shiny/132.gif",
|
||||||
|
"front_shiny_female": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"versions": {
|
||||||
|
"generation-i": {
|
||||||
|
"red-blue": {
|
||||||
|
"back_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-i/red-blue/back/132.png",
|
||||||
|
"back_gray": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-i/red-blue/back/gray/132.png",
|
||||||
|
"back_transparent": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-i/red-blue/transparent/back/132.png",
|
||||||
|
"front_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-i/red-blue/132.png",
|
||||||
|
"front_gray": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-i/red-blue/gray/132.png",
|
||||||
|
"front_transparent": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-i/red-blue/transparent/132.png"
|
||||||
|
},
|
||||||
|
"yellow": {
|
||||||
|
"back_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-i/yellow/back/132.png",
|
||||||
|
"back_gray": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-i/yellow/back/gray/132.png",
|
||||||
|
"back_transparent": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-i/yellow/transparent/back/132.png",
|
||||||
|
"front_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-i/yellow/132.png",
|
||||||
|
"front_gray": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-i/yellow/gray/132.png",
|
||||||
|
"front_transparent": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-i/yellow/transparent/132.png"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"generation-ii": {
|
||||||
|
"crystal": {
|
||||||
|
"back_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-ii/crystal/back/132.png",
|
||||||
|
"back_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-ii/crystal/back/shiny/132.png",
|
||||||
|
"back_shiny_transparent": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-ii/crystal/transparent/back/shiny/132.png",
|
||||||
|
"back_transparent": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-ii/crystal/transparent/back/132.png",
|
||||||
|
"front_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-ii/crystal/132.png",
|
||||||
|
"front_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-ii/crystal/shiny/132.png",
|
||||||
|
"front_shiny_transparent": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-ii/crystal/transparent/shiny/132.png",
|
||||||
|
"front_transparent": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-ii/crystal/transparent/132.png"
|
||||||
|
},
|
||||||
|
"gold": {
|
||||||
|
"back_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-ii/gold/back/132.png",
|
||||||
|
"back_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-ii/gold/back/shiny/132.png",
|
||||||
|
"front_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-ii/gold/132.png",
|
||||||
|
"front_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-ii/gold/shiny/132.png",
|
||||||
|
"front_transparent": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-ii/gold/transparent/132.png"
|
||||||
|
},
|
||||||
|
"silver": {
|
||||||
|
"back_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-ii/silver/back/132.png",
|
||||||
|
"back_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-ii/silver/back/shiny/132.png",
|
||||||
|
"front_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-ii/silver/132.png",
|
||||||
|
"front_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-ii/silver/shiny/132.png",
|
||||||
|
"front_transparent": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-ii/silver/transparent/132.png"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"generation-iii": {
|
||||||
|
"emerald": {
|
||||||
|
"front_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-iii/emerald/132.png",
|
||||||
|
"front_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-iii/emerald/shiny/132.png"
|
||||||
|
},
|
||||||
|
"firered-leafgreen": {
|
||||||
|
"back_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-iii/firered-leafgreen/back/132.png",
|
||||||
|
"back_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-iii/firered-leafgreen/back/shiny/132.png",
|
||||||
|
"front_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-iii/firered-leafgreen/132.png",
|
||||||
|
"front_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-iii/firered-leafgreen/shiny/132.png"
|
||||||
|
},
|
||||||
|
"ruby-sapphire": {
|
||||||
|
"back_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-iii/ruby-sapphire/back/132.png",
|
||||||
|
"back_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-iii/ruby-sapphire/back/shiny/132.png",
|
||||||
|
"front_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-iii/ruby-sapphire/132.png",
|
||||||
|
"front_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-iii/ruby-sapphire/shiny/132.png"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"generation-iv": {
|
||||||
|
"diamond-pearl": {
|
||||||
|
"back_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-iv/diamond-pearl/back/132.png",
|
||||||
|
"back_female": null,
|
||||||
|
"back_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-iv/diamond-pearl/back/shiny/132.png",
|
||||||
|
"back_shiny_female": null,
|
||||||
|
"front_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-iv/diamond-pearl/132.png",
|
||||||
|
"front_female": null,
|
||||||
|
"front_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-iv/diamond-pearl/shiny/132.png",
|
||||||
|
"front_shiny_female": null
|
||||||
|
},
|
||||||
|
"heartgold-soulsilver": {
|
||||||
|
"back_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-iv/heartgold-soulsilver/back/132.png",
|
||||||
|
"back_female": null,
|
||||||
|
"back_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-iv/heartgold-soulsilver/back/shiny/132.png",
|
||||||
|
"back_shiny_female": null,
|
||||||
|
"front_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-iv/heartgold-soulsilver/132.png",
|
||||||
|
"front_female": null,
|
||||||
|
"front_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-iv/heartgold-soulsilver/shiny/132.png",
|
||||||
|
"front_shiny_female": null
|
||||||
|
},
|
||||||
|
"platinum": {
|
||||||
|
"back_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-iv/platinum/back/132.png",
|
||||||
|
"back_female": null,
|
||||||
|
"back_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-iv/platinum/back/shiny/132.png",
|
||||||
|
"back_shiny_female": null,
|
||||||
|
"front_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-iv/platinum/132.png",
|
||||||
|
"front_female": null,
|
||||||
|
"front_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-iv/platinum/shiny/132.png",
|
||||||
|
"front_shiny_female": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"generation-v": {
|
||||||
|
"black-white": {
|
||||||
|
"animated": {
|
||||||
|
"back_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-v/black-white/animated/back/132.gif",
|
||||||
|
"back_female": null,
|
||||||
|
"back_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-v/black-white/animated/back/shiny/132.gif",
|
||||||
|
"back_shiny_female": null,
|
||||||
|
"front_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-v/black-white/animated/132.gif",
|
||||||
|
"front_female": null,
|
||||||
|
"front_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-v/black-white/animated/shiny/132.gif",
|
||||||
|
"front_shiny_female": null
|
||||||
|
},
|
||||||
|
"back_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-v/black-white/back/132.png",
|
||||||
|
"back_female": null,
|
||||||
|
"back_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-v/black-white/back/shiny/132.png",
|
||||||
|
"back_shiny_female": null,
|
||||||
|
"front_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-v/black-white/132.png",
|
||||||
|
"front_female": null,
|
||||||
|
"front_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-v/black-white/shiny/132.png",
|
||||||
|
"front_shiny_female": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"generation-vi": {
|
||||||
|
"omegaruby-alphasapphire": {
|
||||||
|
"front_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-vi/omegaruby-alphasapphire/132.png",
|
||||||
|
"front_female": null,
|
||||||
|
"front_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-vi/omegaruby-alphasapphire/shiny/132.png",
|
||||||
|
"front_shiny_female": null
|
||||||
|
},
|
||||||
|
"x-y": {
|
||||||
|
"front_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-vi/x-y/132.png",
|
||||||
|
"front_female": null,
|
||||||
|
"front_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-vi/x-y/shiny/132.png",
|
||||||
|
"front_shiny_female": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"generation-vii": {
|
||||||
|
"icons": {
|
||||||
|
"front_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-vii/icons/132.png",
|
||||||
|
"front_female": null
|
||||||
|
},
|
||||||
|
"ultra-sun-ultra-moon": {
|
||||||
|
"front_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-vii/ultra-sun-ultra-moon/132.png",
|
||||||
|
"front_female": null,
|
||||||
|
"front_shiny": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-vii/ultra-sun-ultra-moon/shiny/132.png",
|
||||||
|
"front_shiny_female": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"generation-viii": {
|
||||||
|
"icons": {
|
||||||
|
"front_default": "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-viii/icons/132.png",
|
||||||
|
"front_female": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"stats": [
|
||||||
|
{
|
||||||
|
"base_stat": 48,
|
||||||
|
"effort": 1,
|
||||||
|
"stat": {
|
||||||
|
"name": "hp",
|
||||||
|
"url": "https://pokeapi.co/api/v2/stat/1/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"base_stat": 48,
|
||||||
|
"effort": 0,
|
||||||
|
"stat": {
|
||||||
|
"name": "attack",
|
||||||
|
"url": "https://pokeapi.co/api/v2/stat/2/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"base_stat": 48,
|
||||||
|
"effort": 0,
|
||||||
|
"stat": {
|
||||||
|
"name": "defense",
|
||||||
|
"url": "https://pokeapi.co/api/v2/stat/3/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"base_stat": 48,
|
||||||
|
"effort": 0,
|
||||||
|
"stat": {
|
||||||
|
"name": "special-attack",
|
||||||
|
"url": "https://pokeapi.co/api/v2/stat/4/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"base_stat": 48,
|
||||||
|
"effort": 0,
|
||||||
|
"stat": {
|
||||||
|
"name": "special-defense",
|
||||||
|
"url": "https://pokeapi.co/api/v2/stat/5/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"base_stat": 48,
|
||||||
|
"effort": 0,
|
||||||
|
"stat": {
|
||||||
|
"name": "speed",
|
||||||
|
"url": "https://pokeapi.co/api/v2/stat/6/"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"types": [
|
||||||
|
{
|
||||||
|
"slot": 1,
|
||||||
|
"type": {
|
||||||
|
"name": "normal",
|
||||||
|
"url": "https://pokeapi.co/api/v2/type/1/"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"weight": 40
|
||||||
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
pokemon:
|
||||||
|
id: int
|
||||||
|
name: string
|
||||||
|
base_experience: int
|
||||||
|
height: int
|
||||||
|
is_default: boolean
|
||||||
|
order: int
|
||||||
|
weight: int
|
||||||
|
location_area_encounters:
|
||||||
|
moves:
|
||||||
|
move:
|
||||||
|
id: int
|
||||||
|
name: string
|
||||||
|
accuracy: int
|
||||||
|
effect_chance: int
|
||||||
|
pp: int
|
||||||
|
priority: int
|
||||||
|
power: int
|
||||||
|
target:
|
||||||
|
type:
|
||||||
|
version_group_details
|
||||||
|
move_learn_method
|
||||||
|
name
|
||||||
|
level_learned_at
|
||||||
|
cries
|
||||||
|
stats
|
||||||
|
stat
|
||||||
|
effort
|
||||||
|
base_stat
|
||||||
|
types
|
||||||
|
slot
|
||||||
|
type
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 33 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
@@ -54,29 +54,29 @@ public:
|
|||||||
return collisionTile;
|
return collisionTile;
|
||||||
}
|
}
|
||||||
|
|
||||||
void setX(int value) {
|
void setX(int x) {
|
||||||
x = value;
|
this->x = x;
|
||||||
}
|
}
|
||||||
|
|
||||||
void setY(int value) {
|
void setY(int y) {
|
||||||
y = value;
|
this->y = y;
|
||||||
}
|
}
|
||||||
|
|
||||||
void setCoord(int xValue, int yValue) {
|
void setCoord(int x, int y) {
|
||||||
x = xValue;
|
this->x = x;
|
||||||
y = yValue;
|
this->y = y;
|
||||||
}
|
}
|
||||||
|
|
||||||
void setTileOffset(int value) {
|
void setTileOffset(int tileOffset) {
|
||||||
tileOffset = value;
|
this->tileOffset = tileOffset;
|
||||||
}
|
}
|
||||||
|
|
||||||
void setRenderLayer(int value) {
|
void setRenderLayer(int renderLayer) {
|
||||||
renderLayer = value;
|
this->renderLayer = renderLayer;
|
||||||
}
|
}
|
||||||
|
|
||||||
void setCollisionTile(bool value) {
|
void setCollisionTile(bool isCollisionTile) {
|
||||||
collisionTile = value;
|
this->collisionTile = isCollisionTile;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -206,6 +206,26 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void render(int x, int y, int viewWidth, int viewHeight, int xOffset, int yOffset) {
|
||||||
|
for(int tileLayer = 0; tileLayer < layers; tileLayer++) {
|
||||||
|
for(int tilesX = 0; tilesX < viewWidth; tilesX++) {
|
||||||
|
for(int tilesY = 0; tilesY < viewHeight; tilesY++) {
|
||||||
|
Tile tile;
|
||||||
|
|
||||||
|
if(getTile(x + tilesX, y + tilesY, tileLayer, tile)) {
|
||||||
|
int xCoord = (tilesX * cellPixelsX);
|
||||||
|
int yCoord = (tilesY * cellPixelsY);
|
||||||
|
int tileCode = baseTileCode + tile.getTileOffset();
|
||||||
|
|
||||||
|
//cout << "Tile: (" << tilesX << ", " << tilesY << "): " << tile.tileOffset << "; Layer: " << tileLayer << endl;
|
||||||
|
terminal_layer(tileLayer);
|
||||||
|
terminal_put_ext(xCoord, yCoord, xOffset, yOffset, tileCode);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int getWidth() {
|
int getWidth() {
|
||||||
return width;
|
return width;
|
||||||
}
|
}
|
||||||
@@ -216,11 +236,20 @@ public:
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum MOVEMENT_DIR {
|
||||||
|
UP,
|
||||||
|
DOWN,
|
||||||
|
LEFT,
|
||||||
|
RIGHT,
|
||||||
|
};
|
||||||
|
|
||||||
|
void charMove(MOVEMENT_DIR dir, int *pCharX, int *pCharY);
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
TileMap gameMap;
|
TileMap gameMap;
|
||||||
|
|
||||||
Tile tile;
|
Tile tile;
|
||||||
if(!gameMap.loadMapJson("./map/map.json")) {
|
if(!gameMap.loadMapJson("./assets/map.json")) {
|
||||||
cout << "Map error";
|
cout << "Map error";
|
||||||
return 1;
|
return 1;
|
||||||
};
|
};
|
||||||
@@ -238,10 +267,13 @@ int main() {
|
|||||||
terminal_open();
|
terminal_open();
|
||||||
|
|
||||||
terminal_set("window.size=136x68");
|
terminal_set("window.size=136x68");
|
||||||
terminal_set("0xE000: ./map/spritesheet.png, size=64x64, align=top-left");
|
terminal_set("0xE000: ./assets//spritesheet.png, size=64x64, align=top-left");
|
||||||
terminal_set("0xF000: ./tiles/characters.png, size=64x64, align=top-left");
|
terminal_set("0xF000: ./assets/characters.png, size=64x64, align=top-left");
|
||||||
|
terminal_set("input.filter={keyboard}");
|
||||||
|
terminal_set("input.repeat-delay=100");
|
||||||
|
terminal_set("input.repeat-rate=10");
|
||||||
|
|
||||||
gameMap.render(renderX, renderY, 15, 15);
|
gameMap.render(0, 0, 15, 15, renderX, renderY);
|
||||||
character.renderSingle(7, 7);
|
character.renderSingle(7, 7);
|
||||||
|
|
||||||
terminal_refresh();
|
terminal_refresh();
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Binary file not shown.
|
Before Width: | Height: | Size: 15 KiB |
Reference in New Issue
Block a user