Skip to content

Latest commit

 

History

History
65 lines (59 loc) · 1.59 KB

README.md

File metadata and controls

65 lines (59 loc) · 1.59 KB

Subway Surfers

Subway Surfers game implemented in WebGL 2.0

Run

  • Open game.html on a browser and play!

Controls

  • Jump: Space Bar
  • Left: A/Left key
  • Right: D/Right Key

Directory Structure

.
├── assets
│   ├── barrier.jpg
│   ├── bgmusic.mp3
│   ├── coin.png
│   ├── container.jpeg
│   ├── container.jpg
│   ├── finish.jpg
│   ├── flyboost.jpg
│   ├── ground.png
│   ├── jumpboost.png
│   ├── player.png
│   ├── police.png
│   ├── track.jpeg
│   ├── train.jpg
│   └── wall.jpg
├── game.html
├── libs
│   ├── gl-matrix.js
│   ├── jquery-3.3.1.min.js
│   └── webgl-utils.js
├── LICENSE
├── README.md
├── src
│   ├── barrier.js
│   ├── boost.js
│   ├── camera.js
│   ├── coin.js
│   ├── draw.js
│   ├── finishline.js
│   ├── ground.js
│   ├── keyhandler.js
│   ├── main.js
│   ├── obstacle.js
│   ├── player.js
│   ├── police.js
│   ├── texture.js
│   ├── track.js
│   ├── utility.js
│   └── wall.js
└── style.css

Bonus

  • Background music throughout the game
  • Textures for all objects
  • Lighting used with ambience lighting & directional lighting

Note

  • Run the game on Firefox (tested). Google Chrome causes CORS error and code currently does not handle that error.
  • For best experience, maximize the window size and play.