Skip to content

Googletrusting/Subway-Surfers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.2%
  • HTML 1.3%
  • CSS 0.5%