Giter VIP home page Giter VIP logo

pong's Introduction

title summary tech
Pong
A Web-based, Pong game written in JavaScript using HTML5 Canvas
JavaScript, HTML5 Canvas, HTML/CSS, Heroku, GitHub

Heroku Site

Summary

A version of Pong written in JavaScript using HTML5 Canvas.

Explanation

This is Pong, taken from the original Pong game (1972 Atari) with these features:

  • Level: Easy, Medium, and Hard. Hard should be labelled "Insane" but I wanted to keep things simple. The paddle gets smaller and the ball gains speed as the level goes up. On every level, the ball gains speed every time it hits Player(1)'s paddle after the first five. Icons in upper-center.
  • Player vs Computer / Player 1 vs Player 2 (icons in upper-right)
  • Mouse or Keyboard: a player can be either. Hard level on the keyboard is challenging. Or it's impossible, I actually don't know.
  • Score: the current score, leader in green.

Problem

It's always good to have a grasp of game development. Why? Algebra, Physics, and Geometry, and stop-motion rendering, of course!

Solution

This project shows the practical application of several technologies:

  • JavaScript
  • HTML/CSS
  • Heroku
  • GitHub

Results

I have some experience in game creation using LibGDX, so animating Pong using a 60 fps game loop along with collision detection was familiar. Still, I hadn't done so in JavaScript. I feel like it's fairly lean (or at least lean enough), although I'm sure it can be optimized further.

Conclusion

Animation is fascinating.

ToDos

  • Optimize further

pong's People

Contributors

dsa027 avatar

Watchers

 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.