Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.11 KB

readme.md

File metadata and controls

35 lines (23 loc) · 1.11 KB

WebGL Pong

This project was my submission to a 48 hour "hackathon" contest at Know IT. Most of which I spent trying to get a "fish eye" effect in WebGL so the game was curved in the corners of the TV - which I never did, unfortunately. GL was a completely uncharted area to me. If nothing else, I learned some GL and won an iPad.

However, it features a 2D canvas rendered with shaders and all, and has a very basic AI for the computer paddle. It also has artificiell friction - if the paddle moves while the ball bounce against it, the ball will increase in speed in that direction.

Demo

There's a demo running at http://s3.chsk.se/pong/

Attributions

Wallpaper pattern: http://speckyboy.com/2010/04/08/6-free-vector-seamless-backgrounds-source-files/

TV stock photo: http://www.sxc.hu/photo/1187553

gl-matrix: https://github.com/toji/gl-matrix

Pong sounds: http://www.atariage.com/forums/topic/45621-the-pong-sound/

Audio lib: https://github.com/operasoftware/Emberwind

Music: http://freemusicarchive.org/ "Gondolier and Temptation rag&quot" Albert Benzler and Fred Van Eps