Code Monkey home page Code Monkey logo

pong-game's Introduction

Pong Game

A remake of the Pong Game of Atari(1972) with SDL2! The game has better graphics, but yet, is not so GOOD. NOTE: This software is alpha, not all features are ready.

Q: What looks like to play Pong? A: See with your eyes!

Game Image

How to play?

Player Keys Moviment
One W Up
One S Down
Two Up arrow Up
Two Down arrow Down

There's also action keys!

Key Action
F11 Fullscreen mode
ESC Exit game
F5 Debug mode
P Pause game
R Reset game

This game was compiled in Linux with G++ and in Windows with MingW32, using the Qt and Code::Blocks, so you may have no problems with these IDEs. If you have any issue with the compiler saying that to_string is not a member of std you problaby is not compiling with -std=c++11 or you are compiling with MingW32 that has this _problem! But is easy to solve, so good luck!

You do need of:

Remind: The res folder has to be on the same folder as the *.exe , otherwise, it will give you a segmentation fault, or you can change the path to the images and fonts in the main.cpp and recompile the game. If you are having problems executing the game is probably because you don't have the runtime libraries of the SDL2, SDL2_image, SDL2_ttf, so just look at the links above and download them.

This project is licensee on Apache v2!

Roadmap:

  • Perfect collision detection.
  • Over each match of the game, a random direction for the ball.
  • Ball speed increases over the course of hits in the paddles.
  • Pause game

pong-game's People

Contributors

rafaelcn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pong-game's Issues

Collision detection

There's still problems on the ball collision detection, I have to develop a more accurate one, because when the speed of the ball increases too a high speed, the collision detection bugs.

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.