ZonexRecording / Subway-Surfers

Subway Surfers Game in WebGL 2.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Subway Surfers Game in WebGL 2.0

License:MIT License


Languages

Language:JavaScript 98.2%Language:HTML 1.3%Language:CSS 0.5%