LAMaglan / PokeFightSimulator

A (simple) fight simulator between any two Pokemon using FastAPI with Jinja frontend
0 stars 0 forks source link

Include "cries" in the pokemon_stats page #83

Closed LAMaglan closed 5 months ago

LAMaglan commented 5 months ago

Each pokem has a "cry" (the sound the make). Can add to the pokemon_stats page, at least, start off with it playing once the page loads (later, add button to play sound). The payload loosk like this:

  "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"
  },

(example above is from Ditto)