Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Paper.io-inspired Game

Project Description

This repository contains the code for a game inspired by Paper.io. The objective of the game is to conquer as much territory as possible by drawing lines and enclosing areas. Players start with a small piece of land and expand it by moving their character around using keyboard or mouse controls. The more territory a player captures, the higher their score will be. Players must also be cautious of opponents who might invade their space.

Project Structure

PaperIoGame/
│
├── assets/
│   ├── images/            # Image assets (sprites, backgrounds, etc.)
│   ├── sounds/            # Sound effects
│
├── src/
│   ├── __init__.py        # Package initializer
│   ├── game.py            # Main game logic
│   ├── player.py          # Player class and logic
│   ├── trail.py           # Trail drawing and logic
│   ├── territory.py       # Territory capture logic
│   ├── ui.py              # User Interface elements
│   └── utils.py           # Utility functions and helpers
│
├── tests/
│   ├── __init__.py        # Test package initializer
│   ├── test_game.py       # Unit tests for game logic
│   ├── test_player.py     # Unit tests for player class
│   └── test_territory.py  # Unit tests for territory capture
│
├── .gitignore             # Git ignore file
├── requirements.txt       # Python dependencies
├── README.md              # This README file
└── main.py                # Entry point to start the game

Setup Instructions

  1. Clone the Repository

    git clone https://github.com/yourusername/PaperIoGame.git
    cd PaperIoGame
  2. Set Up Python Environment

    • Create a virtual environment:

      • On Windows:
         py -3.12 -m venv venv 
      • On macOS/Linux:
        python3.12 -m venv venv
    • Activate the virtual environment:

      • On Windows:
        venv\Scripts\activate
      • On macOS/Linux:
        source venv/bin/activate
  3. Install Dependencies

    pip install -r requirements.txt
  4. Run the Game

    python main.py

Development Tasks

1. Project Setup

  • Create Project Repository
  • Set Up Python Environment

2. Basic Game Window

  • Create Basic Game Window
  • Add Game Loop

3. Player Mechanics

  • Implement Player Class
  • Draw Player on Screen

4. Trail Functionality

  • Add Trail Creation
  • Draw Trail on Screen

5. Boundary Constraints

  • Implement Boundary Constraints
  • Test Boundary Constraints

6. Collision Detection

  • Implement Basic Collision Detection
  • Handle Collision Outcomes

7. Game Over Logic

  • Implement Game Over State
  • Test Game Over Mechanism

8. Advanced Gameplay Mechanics

  • Implement Territory Capture
  • Handle Player Interactions
  • Implement Game Timer and Rounds
  • Enhance User Controls

9. Multiplayer Functionality

  • Add Multiple Players Support
  • Synchronize Player Actions
  • Handle Multiplayer Collisions

10. User Interface and Graphics

  • Develop Game Interface
  • Enhance Graphics and Animations

11. Testing and Debugging

  • Conduct Thorough Testing
  • Optimize Performance

12. Finalization and Deployment

  • Prepare for Release
  • Document and Share

Contribution

Feel free to contribute to the project by submitting pull requests or reporting issues. For detailed contribution guidelines, please refer to CONTRIBUTING.md (to be added).

License

This project is licensed under the MIT License - see the LICENSE file for details.

create directory structure

python ./create_dir_structure.py

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages