GithubHelp home page GithubHelp logo

johnwat92 / side-pong Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.52 MB

A creative pong game that can go side to side as well!

Home Page: https://johnwat92.github.io/Side-Pong/.

JavaScript 92.83% HTML 2.47% CSS 4.71%

side-pong's Introduction

Side Pong

Side Pong What I Learned

  • In this game, I learned how helpful constructors are when instantiating new objects
  • I've strengthened my understanding of using "this" to dynamically use values for modularity
  • I learned how to use key codes and eventlisteners so the user may trigger certain actions
  • Exporting and importing partials is a very clean way to implement codes
  • Learned how to render and add attributes to SVGs

Technologies Used

  • Babel
  • ES2015
  • Webpacks
  • SVGs
  • GitHub

How to Play

The objective of this game is to rebound the balls so they pass the opponents paddle. You are allowed to move sideways closer to the mid-line and even past it, to give your opponents a harder time, but be careful! After you score, the ball spawns in the center again, so get back to position quickly

Player 1 Controls

  • w: up
  • s: down
  • a: left
  • d: right

Player 2 Controls

  • ▲: up
  • ▼: down
  • ◀: left
  • ▶: right

Other Controls

  • g: spawn one big ball
  • h: remove big ball
  • space bar: Pauses Game

side-pong's People

Contributors

johnwat92 avatar

Watchers

James Cloos 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.