Drag the background!

Ancient Brain
Code. Play. Teach. Learn. Research. Demo.

Our goal: To become one of the most fun places in the world to code.

18 countries    1,523 coders    2,981 worlds    189,932 runs    1.0 million lines of code    Update stats

Globe Trotter
1393 runs ♦ 2 likes
By Laura Araviciute  
Created: 3 Dec 2016
Modified: 10 Feb 2018
Purple Fruit Monster
129 runs ♦ 1 like
By Starter user  
Created: 1 Sep 2018
Modified: 23 Nov 2020
Example of porting physics World unchanged to AB using plain physics API. From "3D Game Programm...
Simple World
1275 runs ♦ 2 likes
By Starter user  
Created: 1 Oct 2016
Modified: 23 Nov 2020
Simple World with a Mind-controlled agent, randomly-moving enemy, paint blocks with texture.
Spider Paradise ...
687 runs ♦ 2 likes
By Aisling Casserly  
Created: 8 Dec 2016
Modified: 10 Feb 2018
An online coding platform

Ancient Brain is an online coding and hosting platform for everyone.
See Intro and List of features.


Coders: Make 3D worlds and share them with friends. Clone and edit other people's worlds. Make touch mobile games. Embed your worlds on other sites.
Teachers: Run courses in coding and coding for kids and AI coding. Run programming practicals in 3D or 2D or text, with many features designed for teachers. Safely edit and run student code.
Learners: Do courses in coding and coding for kids and AI coding. Clone other people's worlds and change one or two lines. What's the worst that could happen?
Gamers: Play the endless game worlds the coders make. Come and browse an ever-growing archive of games.
Researchers: Upload problems, tender for solutions, test and rank them. Make hybrid AI systems from the code of multiple authors.
Enough talk. Show me a video!

OK, here is a high-level introduction.
This does not assume you have ever coded, or ever heard of JavaScript graphics (what is behind this site).

How to code
You can "run" any of the programs or "Worlds" by clicking on them. But this is also a coding site, where you can code your own Worlds. You can use this site to learn to code. Or show off your creations if you are an experienced coder.
Click below to learn how to code on this site. Basically, there is a choice of "libraries" that you can use. Skip the intro, let us decide the library, and go straight to the starter tutorial (with videos):
Programming course

Ancient Brain has a course in how to program from scratch.
You will get to make "Worlds" like the following. Click on them to run them.

Tutorial 7.3
116 runs ♦ 0 likes
By "Coding Train" p...  
Created: 5 Sep 2018
Modified: 5 Sep 2018
Arrays of Objects
Tutorial 2.5
48 runs ♦ 1 like
By "Coding Train" p...  
Created: 4 Sep 2018
Modified: 4 Sep 2018
The random() Function
Tutorial 2.1
278 runs ♦ 1 like
By "Coding Train" p...  
Created: 4 Sep 2018
Modified: 4 Sep 2018
Variables in p5.js (mouseX, mouseY)
Tutorial 7.8 variant
241 runs ♦ 0 likes
By "Coding Train" p...  
Created: 6 Sep 2018
Modified: 11 Sep 2018
Tutorial 7.8 with music and other uploaded images, including from other users. Click on the images.
AI course

Ancient Brain has a set of AI programming exercises, with videos and notes. For use in any AI course.
You will get to modify "Worlds" like the following. Click on them to run them.

A star
1003 runs ♦ 1 like
By "Coding Train" p...  
Created: 1 May 2019
Modified: 15 Dec 2019
"A Star" algorithm to find shortest path through maze.
Breadth-first se...
721 runs ♦ 0 likes
By "Coding Train" p...  
Created: 30 Apr 2019
Modified: 15 Dec 2019
Breadth-first search with a Force-directed graph.
GA (Finnegans Wake)
450 runs ♦ 0 likes
By "Coding Train" p...  
Created: 2 May 2019
Modified: 15 Dec 2019
Genetic Algorithm to write the first line of Finnegans Wake.
Character recogn...
501 runs ♦ 0 likes
By "Coding Train" p...  
Created: 5 Jul 2019
Modified: 15 Dec 2019
Neural network to do character recognition from image database and from handwriting in real-time.
WebGL course

Ancient Brain has a short course in JavaScript 3D graphics ("WebGL") programming.
You will get to make "Worlds" like the following. Click on them to run them.

Tutorial 18.3
16 runs ♦ 0 likes
By "Coding Train" p...  
Created: 9 Sep 2018
Modified: 9 Sep 2018
Light and Material
Tutorial 18.7
294 runs ♦ 0 likes
By "Coding Train" p...  
Created: 9 Sep 2018
Modified: 11 Sep 2018
Tutorial 18.7 with full canvas, resized model, sound. Texture on box is image from another user.
Tutorial 18.8
36 runs ♦ 0 likes
By "Coding Train" p...  
Created: 9 Sep 2018
Modified: 9 Sep 2018
3D Custom Shapes
Tutorial 18.5
49 runs ♦ 0 likes
By "Coding Train" p...  
Created: 9 Sep 2018
Modified: 2 Jun 2019
Camera and Perspective
Starter Worlds for Three.js

These are the main "Starter Worlds" that use the Three.js library (which tends to give the most advanced graphics).

You can Clone and Edit all of these and change their code. Look for a section at the top called the "Tweaker's Box". This contains the easiest things to change.

MineCraft
677 runs ♦ 2 likes
By Starter user  
Created: 27 Nov 2016
Modified: 23 Nov 2020
Use keyboard to draw blocks like in MineCraft. Use arrow keys and PgUp, PgDn to draw. Can save w...
Websockets boxes
163 runs ♦ 0 likes
By Starter user  
Created: 29 Feb 2020
Modified: 23 Nov 2020
Demo of Websockets in 3D World. Click to change the boxes on the other user's machine, while the...
Model World
604 runs ♦ 2 likes
By Starter user  
Created: 8 Nov 2016
Modified: 23 Nov 2020
Demo of how to insert 3d models into World. Mind-controlled agent, actively-pursuing enemy. Skybox.
Zombie Death Baby
458 runs ♦ 1 like
By Starter user  
Created: 11 Jun 2018
Modified: 23 Nov 2020
How to make a fun touch game for mobile. Touch drag and tap objects. Mouse drag and click object...
User-controlled ...
504 runs ♦ 2 likes
By Starter user  
Created: 12 Feb 2017
Modified: 23 Nov 2020
3d model World. User controlled on desktop. Keyboard arrows to move. Switch to "Move with" camer...
Castle World
534 runs ♦ 4 likes
By Starter user  
Created: 11 Nov 2016
Modified: 23 Nov 2020
Demo of how to insert 3d model into World. Mind-controlled agent, actively-pursuing enemy. Splas...
Touch World
314 runs ♦ 1 like
By Starter user  
Created: 6 Jan 2018
Modified: 23 Nov 2020
How to override default touch handling. Mobile: Touch drag moves agent, touch pinch zooms camera...
Complex World
3894 runs ♦ 3 likes
By Starter user  
Created: 1 Oct 2016
Modified: 23 Nov 2020
World with a Mind-controlled agent, actively-pursuing enemy, random maze, skybox, music.
Blank Three.js World
987 runs ♦ 2 likes
By Starter user  
Created: 20 Nov 2016
Modified: 23 Nov 2020
A simple starter World. An Array of spheres. Painted with textures. Random motion.
One Cube World (...
813 runs ♦ 2 likes
By Starter user  
Created: 11 Apr 2018
Modified: 23 Nov 2020
Simple starter World (Three.js version). Cube of random color. Built-in camera control.
Simple World
1275 runs ♦ 2 likes
By Starter user  
Created: 1 Oct 2016
Modified: 23 Nov 2020
Simple World with a Mind-controlled agent, randomly-moving enemy, paint blocks with texture.
Random Worlds

Here are some random Worlds that have had more than 10 runs. Reload for more.

Simple World w/miner
44 runs ♦ 0 likes
By Jesse Balfe  
Created: 8 Mar 2018
Modified: error
Breadth-first se...
33 runs ♦ 0 likes
By Andrew Merrigan  
Created: 19 Oct 2019
Modified: 20 Oct 2019
Clone of "Breadth-first search " by "Coding Train" project
Tutorial 1.2 (cl...
19 runs ♦ 0 likes
By Stratford College 2  
Created: 15 Nov 2019
Modified: 15 Nov 2019
Clone of "Tutorial 1.2" by "Coding Train" project
One Cube World
35 runs ♦ 0 likes
By Soph  
Created: 13 May 2019
Modified: 13 May 2019
Clone of One Cube World by Sophia Smale
Cloned CA318 201...
74 runs ♦ 0 likes
By Eoin McLaughlin  
Created: 8 Nov 2018
Modified: 8 Nov 2018
Clone of "CA318 2018 World" by test
Day/Night cycle
63 runs ♦ 0 likes
By Mathias Bazin  
Created: 20 Jun 2018
Modified: 10 May 2019
It's day then it's night the it's day again
Complex World (c...
27 runs ♦ 0 likes
By Daniel Peres  
Created: 30 Oct 2019
Modified: 14 Jul 2020
Clone of "Complex World" by Starter user ORIGINAL X
One Cube World (...
58 runs ♦ 0 likes
By Stratford College 4  
Created: 14 Nov 2019
Modified: 15 Nov 2019
Clone of "One Cube World (P5)" by Starter user
MNIST character ...
27 runs ♦ 0 likes
By Andrew Merrigan  
Created: 17 Dec 2019
Modified: 17 Dec 2019
Clone of "Character recognition neural network" by "Coding Train" project
Binary tree (clo...
23 runs ♦ 0 likes
By test2  
Created: 22 Oct 2020
Modified: 22 Oct 2020
Clone of "Binary tree" by "Coding Train" project


The background is a program, showing the JavaScript graphics used on this site.
The globes light up when you log in.
 
Font:

Website copyright © Ancient Brain Ltd. 2018-20.
Users retain copyright of their own content.
Ancient Brain ™ is a trademark of Ancient Brain Ltd.

Platforms      Stats      The name      Terms and conditions

Bug bounty      Classes      Contact

Call for partners!
If you are interested in writing a programming course, textbook or tutorial videos, Ancient Brain is looking for partners. We will work with you, and integrate your course into the site. This is an opportunity for someone looking to develop a course or textbook to partner with a site to support it and promote it.