DtsiakmakisKPS / rise-of-the-phoenix

Multiplayer game for KPS Hackathon 2024
1 stars 0 forks source link

Rise of the Phoenix

Table of Contents

Overview

Welcome to Rise of the Phoenix! This is a real-time multiplayer game where players compete to find and secure available seats within a dynamic office environment. The game features chair randomization each round, NPC interactions, and smooth player movements facilitated by Phaser.js and Socket.io. Play the live game here.

Features

Technologies Used

Installation

Prerequisites

Steps

  1. Clone the Repository
    git clone https://github.com/your-username/rise-of-the-phoenix.git
  2. Navigate to the Project Directory
    cd rise-of-the-phoenix
  3. Install Server Dependencies
    npm install
  4. Start the Server
    npm start
  5. Access the Game
    • Open your browser and navigate to http://localhost:3000 (or the port specified in your server configuration).

Usage

  1. Start the Server
    npm start
  2. Access the Game
    • Open your browser and navigate to http://localhost:3000.
  3. Join the Game
    • Enter a username and join the lobby to start playing with other connected players.
  4. Gameplay
    • Use WASD or Arrow Keys to move your character.
    • Navigate the lobby to find available seats.
    • Secure a seat to win the round.
    • Avoid or interact with NPCs occupying seats.

Code Structure

Client-Side (public/main.js)

This file manages the main game scenes using Phaser.js. It handles player creation, movement, chair and NPC interactions, and listens for server events to update the game state.

Key Components:

Server-Side (server/index.js)

Handles server-side logic including player connections, disconnections, movement updates, and game phase transitions. Utilizes Socket.io for real-time communication with clients.

Key Components:

Contributing

Contributions are welcome! Please follow these steps to contribute:

  1. Fork the Repository
  2. Create a Feature Branch
    git checkout -b feature/YourFeatureName
  3. Commit Your Changes
    git commit -m "Add some feature"
  4. Push to the Branch
    git push origin feature/YourFeatureName
  5. Open a Pull Request

Please ensure that your code follows the project's coding standards and includes appropriate comments and documentation.

License

This project is licensed under the MIT License.


Enjoy playing Rise of the Phoenix! 🔥🪑🎮