How yimp0/proyectopokemon works
This is a browser-based Pokémon teambuilder with a Pokédex, configurable teams, practice battles, and online multiplayer. Users can find Pokémon, add and tune a team, then use it in a local or network battle; team import/export and a usage guide are additional features. The browser client fetches Pokémon data and stores teams locally, while a small WebSocket server coordinates multiplayer rooms and turns. Some cross-module wiring is inferred only where an excerpt shows a direct call; unsampled subsystems are represented by their known source paths.
Main entry points: api.js Pokémon data access · importar-exportar.js Team import/export · persistencia.js Saved teams · multiplayer.js Multiplayer client
Components 18
Pokémon discovery
- Pokémon data access
js/api.js - Pokédex search
js/pokedex.js - Team Pokémon selector
js/teambuilder.js
Team building
- Team configuration
js/teambuilder.js - Team state
js/estado.js - Saved teams
js/persistencia.js - Team import/export
js/importar-exportar.js
Battle modes
- Practice battle
js/battle.js - Multiplayer client
js/multiplayer.js - Room and turn server
servidor/server.js
App support
- Page navigation
js/navegacion.js - Interactive guide
js/guia.js - Game constants
js/constantes.js
Other components
- Trainer
- PokéAPI
- Remote trainer
- Browser localStorage
- Pokémon Showdown sprites
Connections 22
- Trainer → Page navigation: selects page
js/navegacion.js - Page navigation → Team import/export: generates export
js/navegacion.js - Pokémon data access → PokéAPI: fetches data
js/api.js - Pokédex search → Team configuration: adds Pokémon
js/pokedex.js - Saved teams → Pokémon data access: loads Pokémon
js/persistencia.js - Saved teams → Team state: restores team
js/persistencia.js - Saved teams → Browser localStorage: reads and writes
js/persistencia.js - Team import/export → Team state: imports and exports
js/importar-exportar.js - Team import/export → Saved teams: saves imported team
js/importar-exportar.js - Team import/export → Pokémon data access: resolves Pokémon
js/importar-exportar.js - Multiplayer client → Team state: reads selected team
js/multiplayer.js - Multiplayer client → Room and turn server: exchanges room messages
js/multiplayer.js - Remote trainer → Room and turn server: sends battle moves
- Room and turn server → Multiplayer client: sends battle results
servidor/server.js - Trainer → Practice battle: plays practice battle
js/battle.js - Practice battle → Pokémon data access: loads Pokémon
js/battle.js - Trainer → Multiplayer client: creates or joins room
js/multiplayer.js - Trainer → Team configuration: configures team
js/teambuilder.js - Trainer → Pokédex search: searches entries
js/pokedex.js - Trainer → Interactive guide: opens guide
- Game constants → Pokémon data access: provides API settings
- Pokémon data access → Pokémon Showdown sprites: builds sprite URLs
js/api.js