Giter Site home page Giter Site logo

pong-starter-svg's Introduction

Pong Game

A basic pong game using SVGs, Javascript ES6 syntax and Webpack as a build tool in relation to game coding.

A Pong Board

Setup

Install:

> npm i

Run:

> npm start

Keys

Player 1:

  • a: up
  • z: down

Player 2:

  • ▲ : up
  • ▼: down

Pause:

  • spacebar: pause game

Stretch Goals

  • Triggered multiple balls at once

Technology Used

  • ATOM Text editor
  • HTML5 Audio sounds triggered on ball bounces
  • SVGs to render the pong game
  • ES2015
  • Webpack as a build tool

##Meaningful Takeaways

This project involved creating a basic pong game using SVGs and Javascript's ES2015 syntax. This was a very interesting challenge, as it was part code along with the class, and part figure out the missing pieces. I thought it was a great opportunity to practice a more object oriented programming style with the newly added class functionality.

I have found through my first few projects here at RED that I really enjoy setting up the best dev environment that I can. I enjoy using/learning all the tools to utilize for being able to write more readable code on my end, while still producing files the browser can still read and render.

I learned a lot from completing this project. It challenged my problem-solving abilities and also really opened up my eyes to how precisely you need to be when telling a computer what to do.

pong-starter-svg's People

Contributors

jsvn 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.