Skip to content

Guedxx/KingPong

Repository files navigation

King Pong

Climb the tower and become the King of Pong!

Table of Contents

About the Project

King Pong is a reimagined version of the classic Pong game, where players must climb a tower of increasing difficulty to claim the title of King. The game was developed as a collaborative project using Python, Pygame, and PPlay. Despite being created with minimal object-oriented programming, King Pong offers a fun and challenging gameplay experience.

Features

  • Classic Pong Mechanics: Retains the core elements of the original Pong game.
  • Tower Climb Mode: Progress through levels of increasing difficulty as you ascend the tower.
  • Simple Yet Engaging: Easy to pick up and play, with a challenging progression system.
  • Power Ups: To spice things up!.

Getting Started

Prerequisites

Make sure you have Python installed on your system. You'll also need the following Python libraries:

Installation

  1. Clone the repository:
    git clone https://github.com/Guedxx/LabDeJogos.git
    cd LabDeJogos
    
  2. Install the required libraries:
    pip install pygame
    

Running the Game

Run the game by executing the following command:

python main.py

Enjoy the climb to become the King of Pong!

Gameplay

In King Pong, players face off against AI as they climb a tower of increasingly difficult levels. The goal is to outplay your opponent by bouncing the ball past them, taking away 3 health points makes you advance to the next stage. The higher you climb, the tougher the challenges become.

  • W: Moves UP.
  • S: Moves DOWN.
  • Space: Dashes.
  • Momentum: The more you move the faster you become. Dashing can help you gain momentum.
  • Code Overview

    King Pong was developed with minimal object-oriented programming, as the project was created before the participants had formal education in OOP. The code may be a bit rough around the edges, but it is functional and effective.

    Key Files:

    • main.py: Contains the core gameplay mechanics.
    • setup.py: It's the sprite controler and holds the menu.
    • animations.py: Contains all the animations of the game, they were all made in pure code!
    • enemysIA.py: Contains all the enemys behaviour, their momentum logic and power up use.
    • gamefunctions.py: Contains the pause menu code.
    • ingame.py: Calls all the sprites in a list and Draws/Updates them.
    • powerUps.py: Changes the sprite of the power UP sprite in the lvl.

    Despite its simple structure, the codebase is a good example of early-stage game development, and we are proud of what we’ve accomplished.

    About

    Jogo feito para disciplina de Laboratório de Programação de Jogos.

    Topics

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

     
     
     

    Contributors

    Languages