Skip to content

denshaw-09/poketonn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pokemon Battle Game

A real-time multiplayer Pokemon battle game built with Node.js, Express, and Socket.IO.

Features

  • Real-time multiplayer Pokemon battles
  • Turn-based combat system
  • Multiple Pokemon types and moves
  • Live game state management
  • WebSocket-based communication

Project Structure

poke-battle/
├── client/               # Client-side code
│   ├── client.js         # Main client script
├── server/               # Server-side code
│   ├── game_logic/       # Game logic components
│   ├── server.js         # Main server script
├── package.json          # Combined dependencies
├── package-lock.json
└── README.md

🚀 Getting Started

Prerequisites

  • Node.js (v14 or higher)
  • npm or yarn

Installation

  1. Clone the repository

    git clone <repository-url>
    cd poke-battle
  2. Install dependencies (from root directory)

    npm i or npm install
    
  3. Start the server

    cd poke-battle/server
    npm start

    The server will start on port 3000 by default.

  4. Start the client

    cd poke-battle/client
    npm start or node client.js
  5. Start the client separately (if needed)

    npm run start-client

Technology Stack

Backend

  • Node.js - Runtime environment
  • Express.js - Web framework
  • Socket.IO - Real-time communication
  • UUID - Unique identifier generation

Key Files

  • server/server.js - Main server entry point
  • server/game_logic/battleManager.js - Battle logic and management
  • server/game_logic/gameState.js - Game state management
  • client/client.js - Client-side game logic

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors