Giter VIP home page Giter VIP logo

ahtwpong's Introduction

AHTWPong

A simple pong game by Taylor Watson and Andrew Hartwig

Instructions

Keyboard Shortcut Action
Enter Starts the round
A + Z Move Player One's Paddle
Up + Down Arrow Move Player Two's Paddle
R Reset ball and paddle

ahtwpong's People

Contributors

andrew1431 avatar taylorwatson avatar

Watchers

 avatar  avatar  avatar

ahtwpong's Issues

SpriteFont add in game texts.

  • Player names with their score
  • Perhaps game duration?
  • Game won text
  • Press enter to start game text info on PRE_GAME game state.
  • Perhaps add a PRE_ROUND state to not show "Press Enter to Start" on the start of each round

Small remaining bugs

  • Prevent ball from being launched at a perfect 90 degree angle.

feel free to adjust the constants settings (ball speed range, rotation allowances)

Tally Player scores

Keep track of the player scores.

  • When score is 3, change game state to POST_GAME
  • Play applause sound upon game win.
  • When R is pressed in this state, reset the player's scores, paddles, and the ball.

Add game sound effects.

Play the correct sound effects on the following events:

  • Ball hits paddle, or bounces off wall
  • Ball exits screen (Ping when a player scores a point)j

Add collision detection

Know when the ball hits the following sides of the screen.

  • Top
  • Bottom
  • Right
  • Left

Know when the ball hits the paddle

  • Player One's Paddle
  • Player Two's Paddle

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.