GithubHelp home page GithubHelp logo

pong_java's Introduction

PONG_JAVA

A simple Java Game which utilises concepts from OOP. Disclaimer : This Game's code was heaviliy inspired by @GamesWithGabe 's Youtube playlist link to it is here : https://www.youtube.com/watch?v=-uEFy0nPlgM&list=PLtrSb4XxIVborujf7DDM2MCi6yyMCw46d

the functionality has a few tweaks from the original buit such as

1)Player and Computer paddles having restricted access to both Right and left directions of their respective screen area ie: positive and negative X-axis

2)The Ball has updated physics logic which i'll explain in just a bit so instead of the ball having a constant velocity of vx & vy i made it so that the difference between the screen_width/2 and the ball's X coordinate is the factor by which the new velocity component Vx and Vy get multiplied by so that when the paddles are far back the balls speed is maximun and the closer the ball is to the centre the less is it's velocity. thereby making the game more fun.

i'm still trying to learn so feel free to criticise where needed. =)

pong_java's People

Contributors

aditya1404sal avatar

Watchers

 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.