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

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

809 authors    1,328 Worlds    99,108 runs    0.6 million lines of code    Update stats

Free JavaScript courses in Dublin using Ancient Brain for teachers and adult leaders. Next class: 25 Jan 2019.
Plain canvas web...
By Starter user  
Example of porting webgl World (almost) unchanged to AB using plain canvas API
Car models with ...
By Port of threejs....  
Car bodywork reflects images from skybox. Click buttons to change model and bodywork. Mouse to m...

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 programming practicals in 3D or 2D or text, with many features designed for teachers. Safely edit and run student code.
Researchers: Upload problems, tender for solutions, test and rank them. Make hybrid AI systems from the code of multiple authors.
Gamers: Play the endless game worlds the coders make. Come and browse an ever-growing archive of games.
Learners: Clone other people's worlds and change one or two lines. What's the worst that could happen?

How to get started

Explore the site. Run Worlds.


See how coding on this site works.

  • See How to write code on this site.
  • When coding, see the "Docs" menu for all the documentation you need.


Do the Starter Tutorial (P5)

  • The "P5" graphics library is probably most suitable for beginners. More experienced programmers may prefer to skip P5 and use the "Three.js" graphics library (below).
  • To get started coding JavaScript on Ancient Brain with P5, work through the P5 Starter Tutorial. This shows you how coding on this site works (with P5). This does not assume you have ever written a program.
  • The tutorial looks at coding the following World:
One Cube World (P5)
By Starter user  
Simple starter World (P5 version). No camera control. So cube rotates to show 3D.
Do the Programming courses (P5)

  • You can learn in depth how to program in JavaScript in P5 by doing the course: Foundations of Programming in JavaScript. This does not assume you have ever written a program.
  • When you have done that, you can do the more advanced WebGL course (JavaScript 3D graphics in P5).
  • When coding, use the P5 reference material.
  • When you are finished these courses, you will be able to make Worlds like the following:
Tutorial 2.1
By "Coding Train" p...  
Variables in p5.js (mouseX, mouseY)
Tutorial 7.8 variant
By "Coding Train" p...  
Tutorial 7.8 with music and other uploaded images, including from other users. Click on the images.
Tutorial 18.7
By "Coding Train" p...  
Tutorial 18.7 with full canvas, resized model, sound. Texture on box is image from another user.
Tutorial 7.3
By "Coding Train" p...  
Arrays of Objects
Do the Starter Tutorial (Three.js)

  • The "Three.js" graphics library is more suitable for programmers with a little experience. Beginners may prefer to start with P5. If you know a little P5, you will be ready to try some Three.js.
  • To get started coding JavaScript on Ancient Brain with Three.js, work through the Three.js Starter Tutorial. This shows you how coding on this site works (with Three.js). This does not assume you have ever written a program.
  • The tutorial looks at coding the following World:
One Cube World (...
By Starter user  
Simple starter World (Three.js version). Cube of random color. Built-in camera control.
Do a Programming course (Three.js)

  • There is not yet on this site a full course in programming in Three.js.
  • You are directed to the Three.js reference material.
  • There are plans to partner with the book 3D Game Programming for Kids. You can code all the examples in this book on Ancient Brain. Here are two examples from the book:
1. Shapes
By "3D Game Program...  
Port of code "shapes" from Ch.1
3. Making an Avatar
By "3D Game Program...  
Port of code "building_an_avatar" from Ch.3
Modify some Starter Worlds.

  • If you have learnt a little programming, start modifying existing Worlds.
  • Pick one of the Starter Worlds. "Clone" it, and edit your copy.
  • The easiest parts of the code to change are in the "tweaker's box" at the top.
Blank Three.js World
By Starter user  
A simple starter World. An Array of spheres. Painted with textures. Random motion.
MineCraft
By Starter user  
Use keyboard to draw blocks like in MineCraft. Use arrow keys and PgUp, PgDn to draw. Can save w...
Complex World
By Starter user  
World with a Mind-controlled agent, actively-pursuing enemy, random maze, skybox, music.
Simple World
By Starter user  
Simple World with a Mind-controlled agent, randomly-moving enemy, paint blocks with texture.
See what you can build.

As you keep learning, here are some examples of what you can build on this site. Build something beautiful!

Collision World
By Starter user  
Demo of Physics API. Blocks fall under gravity and collide. Can modify gravity, friction, etc. S...
See the most advanced Worlds.

These are probably the most advanced Worlds on the site at the moment:

Complete Infinit...
By Enhanced  
This program was made by Nathan Bonnard. In this world, you can generate an infinite world ! Bu...
Car models with ...
By Port of threejs....  
Car bodywork reflects images from skybox. Click buttons to change model and bodywork. Mouse to m...
Random Worlds

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

Cloned Simpsons ...
By Jake  
Created: 27 Oct 2016
Modified: 10 Feb 2018
Cloned One Cube ...
By Jennifer  
Created: 30 Nov 2018
Modified: 30 Nov 2018
Clone of "One Cube World (P5)" by Starter user
Chess : Mind v...
By Enhanced  
Created: 17 Aug 2018
Modified: 17 Aug 2018
Clone of "Chess : Mind vs Simple AI (a bit of random)" by Mathias Bazin
3. Making an Avatar
By "3D Game Program...  
Created: 16 Aug 2018
Modified: 30 Aug 2018
Port of code "building_an_avatar" from Ch.3
FLESHMAN PLAYS G...
By Sean Hutchinson  
Created: 21 Oct 2016
Modified: 10 Feb 2018
Cloned Sheepdog3...
By Teaching Worlds  
Created: 10 Dec 2017
Modified: 10 Feb 2018
Bad Pacman
By Mark Dunne  
Created: 16 Nov 2016
Modified: 10 Feb 2018
Cloned Blank Thr...
By James Humphrys  
Created: 2 Apr 2018
Modified: 2 Apr 2018
Cloned Cloned CA...
By sloyand2  
Created: 12 Nov 2018
Modified: 12 Nov 2018
Clone of "Cloned CA318 2018 World" by cdaly
Cloned Shooting ...
By James Humphrys  
Created: 26 May 2018
Modified: 26 May 2018
Clone of "Shooting Range (Space To Shoot)" by Adrian Rabbitte
aha
By Patrick  
Created: 4 May 2018
Modified: 4 May 2018
No brain
By Enhanced  
Created: 12 Jun 2018
Modified: 27 Jun 2018
Float through hypnotic space cubes. No user input required, it's only an animation
Cloned One Cube ...
By CaseyMahon  
Created: 9 May 2018
Modified: 9 May 2018
Deliverable Week 7&8
By cam  
Created: 11 Nov 2018
Modified: 13 Nov 2018
Christmas Themed Pacman
Cloned Cloned Cl...
By CaseyMahon  
Created: 9 May 2018
Modified: 9 May 2018
Arrow keys demo
By test  
Created: 21 Jan 2018
Modified: 11 Jun 2018
Chess
By Mathias Bazin  
Created: 24 Jul 2018
Modified: 26 Jul 2018
Chess using chess.js. Plays a random game
unknow
By Samuel  
Created: 4 May 2018
Modified: 4 May 2018
Jason's cube
By jason sheehan  
Created: 17 Dec 2018
Modified: 17 Dec 2018
This is Jason's cube
Cloned Cloned CA...
By the Platyman  
Created: 25 Nov 2018
Modified: 25 Nov 2018
Clone of "Cloned CA318 2018 World" by the Platyman
New World
By Sim sam  
Created: 31 Mar 2018
Modified: 31 Mar 2018
Cloned Cloned Cl...
By Quinc3y  
Created: 15 Nov 2018
Modified: 15 Nov 2018
Clone of "Cloned Cloned CA318 2018 World" by Quinc3y
Pink Castle World
By tom  
Created: 11 Nov 2016
Modified: 10 Feb 2018
Bomberman
By Enhanced  
Created: 21 Jun 2018
Modified: 21 Jun 2018
Classic game of Bomberman, try to kill the ennemy with a bomb !
better FPV Model...
By tom  
Created: 12 Feb 2017
Modified: 10 Feb 2018
First Person Vie...
By Mathias Bazin  
Created: 19 Jun 2018
Modified: 19 Jun 2018
New World. Starting from scratch.
Coding Challenge 2
By "Coding Train" p...  
Created: 13 Aug 2018
Modified: 4 Sep 2018
Menger Sponge Fractal
Cloned CA318 201...
By Adaam  
Created: 6 Nov 2018
Modified: 6 Nov 2018
Clone of "CA318 2018 World" by test
Simpsons GAME (...
By Jake  
Created: 25 Oct 2016
Modified: 10 Feb 2018
Cloned Complex World
By declan mckibben  
Created: 1 Dec 2016
Modified: 10 Feb 2018
Actual Cloned CA...
By perd  
Created: 15 Nov 2018
Modified: 19 Nov 2018
Clone of "Cloned CA318 2018 World" by cdaly
Cube Catcher
By Ali Raza  
Created: 16 Nov 2016
Modified: 10 Feb 2018
Assassin vs Soldier
By tom  
Created: 16 Oct 2016
Modified: 10 Feb 2018
Cloned multiple ...
By Isobel Humphrys  
Created: 5 Nov 2017
Modified: 10 Feb 2018
MineCraft+
By James Humphrys  
Created: 27 Nov 2016
Modified: 10 Feb 2018
Cloned Globe Trotter
By Coolest Projects  
Created: 26 May 2018
Modified: 26 May 2018
Clone of "Globe Trotter" by Laura Araviciute
First Person Con...
By Enhanced  
Created: 21 Jun 2018
Modified: 14 Aug 2018
First person view with mouse controls. Use WASD or Arrows to move, mouse to look around and spac...
P5 test preserv...
By Mathias Bazin  
Created: 27 Jun 2018
Modified: 27 Jun 2018
Clone of "P5 test" by Mathias Bazin
Joe's blank Thre...
By Joe Rathborne  
Created: 10 Nov 2018
Modified: 10 Nov 2018
Blank Three World for learning
OpenChip8 (Pong)...
By Eyyb Sari  
Created: 8 Dec 2016
Modified: 10 Feb 2018


The background is a program, showing the JavaScript graphics used on this site.
 
Font:

© Ancient Brain Ltd. All rights reserved.

Ancient Brain ™ is a trademark of Ancient Brain Ltd.

Beta      Contact      Stats      The name      Terms and conditions

Bug bounty      Course in Dublin      Call for partners