Small collection of three.js game examples.

Welcome to our collection of JavaScript examples! In this meticulously curated compilation, we have assembled a diverse range of JavaScript code snippets that showcase the flexibility and power of this dynamic programming language.

Traffic Run Game with Three.js

Author:
Hunor Marton Borbely | March 17, 2021
Made with:
HTML / CSS / JS

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-

Stack Game with Three.js and Cannon.js

Author:
Hunor Marton Borbely | January 9, 2021
Made with:
HTML / CSS / JS

About a code

Build a stack of boxes. Boxes are coming in from left and right and you have to click when the incoming box is on top of the previous one. You have to be precise though because the overhanging parts will fall down and the surface you can place boxes on gets smaller and smaller.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
cannon.js

The Cube

Author:
Boris Šehovac | March 3, 2019
Made with:
HTML / CSS (Sass) / JS

About a code

See if you can solve this classic Rubik's puzzle game made in three.js.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-

Crossy Road with three.js

Author:
Hunor Marton Borbely | December 21, 2018
Made with:
HTML / CSS / JS

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-
Tower Blocks

Tower Blocks

Author:
Steve Gardner | January 11, 2018
Made with:
HTML / CSS (SCSS) / JavaScript (TypeScript)

About a code

Tower building game. Place blocks by clicking, tapping or spacebarring.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Dependencies:
TweenMax.js
Runner Game

Runner Game

Author:
Juwal Bose | September 4, 2017
Made with:
HTML / JavaScript

About a code

Simple 3D endless runner game using three.js

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Dependencies:
-
The Frantic Run of the Valorous Rabbit

The Frantic Run of the Valorous Rabbit

Author:
Karim Maaloul | September 29, 2016
Made with:
HTML / CSS (SCSS) / JavaScript

About a code

Save this little guy from this (not so evil) wolf. It starts very slowly, but don't be fooled, you probably can't stand the speed. Click to jump - grab the carrots / avoid the hedgehogs.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Dependencies:
OrbitControls.js, TweenMax.js
The Aviator

The Aviator

Author:
Karim Maaloul | April 26, 2016
Made with:
HTML / CSS / JavaScript

About a code

Grab the blue pills, avoid the red ones.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Dependencies:
TweenMax.js
Astray

Astray

Author:
Rye Terrell | July 15, 2012
Made with:
HTML / CSS / JavaScript

About a code

A WebGL maze game built with three.js and Box2dWeb.js.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Dependencies:
jquery.js, Box2dWeb.js

Discover Our Extensive Snippet Library

This heading suggests that your website provides a wide variety of snippets across different technologies, encouraging users to explore and use these resources for their development projects.

HTML Snippets.

Explore a collection of HTML snippets designed to streamline your web development process. From basic structures to complex elements.

CSS Snippets.

Discover powerful CSS snippets that help you style your web pages with ease. Whether you need layout solutions, animations

JavaScript Snippets.

Enhance your website's interactivity with our JavaScript snippets. From DOM manipulation to advanced algorithms

Bootstrap Snippets.

Leverage the power of Bootstrap with our collection of snippets. Quickly integrate responsive design components

Tailwind Snippets.

Speed up your development process with Tailwind CSS snippets. These utility-first CSS snippets enable you to

jQuery Snippets.

Simplify your JavaScript development with jQuery snippets. Easily perform common tasks like event handling, animations

React Snippets.

Build robust, component-based user interfaces with our React snippets. From state management to lifecycle methods,

Vue Snippets.

Streamline Vue.js development with our collection of snippets for creating components, managing state, and handling events.

Ready to set your Brand ablaze?

Let's craft a visual identity that ignites passion and loyalty. ✨