GithubHelp home page GithubHelp logo

kauefraga / ping-pong Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 2.52 MB

The classic ping pong game made with Raylib/C++.

Home Page: https://kauefraga.itch.io/ping-pong

License: GNU General Public License v3.0

C++ 98.55% C 1.45%
cpp game-development ping-pong raylib raylib-cpp

ping-pong's Introduction

Ping Pong

๐Ÿ“ The classic ping pong game made with Raylib/C++. ๐Ÿ“

GitHub top language GitHub all releases GitHub last commit GitHub LICENSE

Features (v2.1.0)

  • A classic game with all the implementations you would expect.
  • Player versus Computer (simple AI algorithm).
  • Player versus Player (ws and arrows).
  • A ball that moves faster than your reflex.
  • A dead-simple score implementation.
  • It's written in C++, so it's blazingly fast!
  • It's very lightweight. It is consuming around 25MB of RAM!!

โฌ‡๏ธ Getting Started

How to install and run it

  1. Install the game executable in the releases section;
  2. Unzip it inside the folder and keep the files as they are;
  3. Double click the ping-pong.exe and enjoy the gameplay!

Feel free to open an issue. We'd like to read and fix the bugs you spotted!

How to play

Currently, it's pretty straightforward:

  • When you execute the game you are going to see the logo scene
    • press spacebar
  • Sequentially, you're gonna see the game mode selector
    • press w or arrow up to select Player versus CPU
    • press s or arrow down to select Player versus Player
    • then hit enter to proceed
  • In the gameplay scene you will see the ping pong court
    • press w or s to move the player one (left)
    • press arrow up or arrow down to move the player two (right), if they exist

You learned how to play Ping Pong! Hope you like it ๐Ÿ’™

๐Ÿ’– Collaborators

See who helped to make this project better, CREDITS.

๐Ÿ“‘ Roadmap

A list to keep track of what's coming soon.

  • Release version 2.2.0.
    • Add background sound track.
    • Fix ball table collision sound.
    • Change ball color to contrast.
    • Implement winner (after 25 points).
  • Refactor #1.
    • Encapsulate global states.
    • Use header and implementation files (.cpp and .h).
    • Folder structure scene-based.
    • Enforces OOP.
  • Refactor #2.
    • Simplify scores and classes.
    • Use "state" design pattern to solve scene transition.

๐Ÿ“ License

This project is licensed under the GPL-3.0 License - See the LICENSE for more information.

ping-pong's People

Contributors

kauefraga avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

ping-pong's Issues

The game simply does not work ๐Ÿคฃ

First issue

When the window is moved along the screen the ball disappears.

Second one

The ball is getting stuck behind a paddle and it is resulting a lot of unfair points.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.