How andresepenagosp/mokepon works
Mokepon is a browser-based multiplayer creature-battle game. A player joins, selects a creature, explores a canvas map, and battles using attack choices; the Express server assigns player IDs and keeps player, position, and attack data in memory. The principal client logic is concentrated in one file, so several domain responsibilities share that path. The README is empty, and the sampled client excerpt is partial; unverified client-to-server interactions are omitted.
Main entry points: index.js Express Routes · mokepon.js Game Client · assets Creature Artwork
Components 10
Browser Game
- Game Client
public/js/mokepon.js - Creature Selection
public/js/mokepon.js - Map Movement
public/js/mokepon.js - Enemy Sync
public/js/mokepon.js - Battle Resolution
public/js/mokepon.js
Game Server
- Express Routes
index.js - Player Registry
index.js - Static Assets
index.js
Game Assets
- Creature Artwork
public/assets
Other components
- Player
Connections 13
- Player → Game Client: plays
public/js/mokepon.js - Game Client → Express Routes: requests ID
public/js/mokepon.js - Express Routes → Player Registry: registers players
index.js - Express Routes → Player Registry: updates player data
index.js - Creature Selection → Express Routes: assigns creature
- Map Movement → Enemy Sync: updates position
public/js/mokepon.js - Enemy Sync → Express Routes: requests opponents
- Game Client → Creature Selection: selects creature
public/js/mokepon.js - Creature Selection → Map Movement: starts map
public/js/mokepon.js - Creature Selection → Battle Resolution: loads attacks
public/js/mokepon.js - Battle Resolution → Express Routes: submits attacks
- Game Client → Static Assets: serves game files
index.js - Static Assets → Creature Artwork: serves artwork