Code Monkey home page Code Monkey logo

ponggame's Introduction

PongGame

PongGame is a clone of the classic game called Pong.

In this case i've written it in Python with the PyGame library and i wanted it to be really simple and no longer than 200 lines of code.

Just made it for fun and to learn how to use PyGame library, i hope someone can find it useful too.

Features

  • Similar to old Pong game
  • Two players game
  • The movement of the ball is diagonal, really simple
  • The code is easy to learn and modify

Things that could be added

I wanted to leave this things our so far so the code dont get longer and more complex, but it could be nice to upgrade the game with some of this features

  • More complex ball movement
  • Game score for each player
  • Game Menu to choose between many game types
  • Play against AI
  • Funnier game mechanics (multiple balls, faster and slower balls, drunk balls, just to name a few)

How to play

Player 1 use the keys "w" and "s" to move

Player 2 use arrows keys to move

Just like the old classic, you must not let the ball hit the border behind you

After one player wins, the game restarts until you use the "Escape" key or just close the window

License

PongGame is released under the MIT License.

ponggame's People

Contributors

dbinagi avatar

Watchers

James Cloos avatar  avatar

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.