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

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

11 countries    996 authors    1,427 Worlds    104,761 runs    0.6 million lines of code    Update stats

Call for partners to work on content for Ancient Brain.
Flickr World
By Starter user  
Demo of "Web page" API. Just use JS to make a web page. This page gets images from Flickr using ...
Sampler
By Enhanced  
Upload sounds, play them, automate them. Saving data works.
Collision World
By Starter user  
Demo of Physics API. Blocks fall under gravity and collide. Can modify gravity, friction, etc. S...

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?

Ancient Brain: How to get started

Explore the site. Run Worlds.

Shooting Range
By Enhanced  
Shoot the ducks, feel the spirit of the hunt. Enhanced version of "Shooting Range (Space To Shoo...
Collision World
By Starter user  
Demo of Physics API. Blocks fall under gravity and collide. Can modify gravity, friction, etc. S...
3D for Kids Worl...
By Starter user  
Example of plain Three.js API. Porting a World unchanged. From "3D Game Programming for Kids"
See how coding 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 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 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.8 variant
By "Coding Train" p...  
Tutorial 7.8 with music and other uploaded images, including from other users. Click on the images.
Tutorial 2.1
By "Coding Train" p...  
Variables in p5.js (mouseX, mouseY)
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 (above).
  • To get started coding 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.
Complex World
By Starter user  
World with a Mind-controlled agent, actively-pursuing enemy, random maze, skybox, music.
MineCraft
By Starter user  
Use keyboard to draw blocks like in MineCraft. Use arrow keys and PgUp, PgDn to draw. Can save w...
Simple World
By Starter user  
Simple World with a Mind-controlled agent, randomly-moving enemy, paint blocks with texture.
Blank Three.js World
By Starter user  
A simple starter World. An Array of spheres. Painted with textures. Random motion.
See what you can build.

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

User-controlled ...
By Starter user  
3d model World. User controlled on desktop. Keyboard arrows to move. Switch to "Move with" camer...
Game of Crowns s...
By Enhanced  
Enhanced version of "Game of Crowns" by Niamh Byrne with better graphics and controls
See the most advanced Worlds.

Here are some of the most advanced Worlds:

Car models with ...
By Port of threejs....  
Car bodywork reflects images from skybox. Click buttons to change model and bodywork. Mouse to m...
Sampler
By Enhanced  
Upload sounds, play them, automate them. Saving data works.
Port of flying b...
By Discover three.js  
Animated models. Port of flying birds with GLB models. From "Discover three.js". See project inf...
Complete Infinit...
By Enhanced  
This program was made by Nathan Bonnard. In this world, you can generate an infinite world ! Bu...
Random Worlds

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

smooth FPV Model...
By tom  
Created: 26 Feb 2017
Modified: 10 Feb 2018
Racing World
By Seamus Kelly  
Created: 6 Dec 2016
Modified: 10 Feb 2018
Cloned Cloned CA...
By Odhran Byrne-Gildea  
Created: 7 Nov 2018
Modified: 7 Nov 2018
Clone of "Cloned CA318 2018 World" by cdaly
Connect4 AI
By Daniel O'Sullivan  
Created: 8 Dec 2016
Modified: 10 Feb 2018
crown
By Mathias Bazin  
Created: 11 Jun 2018
Modified: 13 Jun 2018
Clone of "One Cube World" by Starter user
Cloned Complex World
By Kian  
Created: 25 Dec 2016
Modified: 10 Feb 2018
Lights out
By Shaun Kinsella  
Created: 16 Nov 2016
Modified: 10 Feb 2018
2D sprite animation
By Mark Humphrys  
Created: 11 Nov 2018
Modified: 12 Nov 2018
2D sprite animation on a surface. Change show3d to true to see it on 3d box faces.
Cloned Complex World
By Dean Lalor  
Created: 14 Nov 2016
Modified: 10 Feb 2018
Don't Move
By Finnian O'Neill  
Created: 6 Dec 2016
Modified: 10 Feb 2018
Coolest project demo
By test2  
Created: 26 May 2018
Modified: 26 May 2018
Clone of "Complex World" by Starter user
Cloned One Cube ...
By test2  
Created: 11 Jan 2019
Modified: 11 Jan 2019
Clone of "One Cube World (P5)" by Starter user
Deliverable Week 7&8
By cam  
Created: 11 Nov 2018
Modified: 13 Nov 2018
Christmas Themed Pacman
Cloned 3d Simple...
By simon  
Created: 23 Oct 2016
Modified: 10 Feb 2018
Cloned CA318 201...
By Velo Eire  
Created: 18 Nov 2018
Modified: 18 Nov 2018
Clone of "CA318 2018 World" by Mark Humphrys
Cloned Simple World
By Adrian Rabbitte  
Created: 15 Nov 2016
Modified: 10 Feb 2018
Cloned Enhanced ...
By Mathias Bazin  
Created: 1 Jun 2018
Modified: 5 Jun 2018
Clone of "Enhanced Minecraft world" by Nathan Bonnard
Tutorial : Contr...
By Nathan Bonnard  
Created: 14 Aug 2018
Modified: 14 Aug 2018
Tutorial for movement depending on camera position & Velocity
Sushi
By Mathias Bazin  
Created: 29 May 2018
Modified: 29 May 2018
Clone of "Sushi" by Mathias Bazin
Joe's One Cube World
By Joe Rathborne  
Created: 6 Nov 2018
Modified: 7 Nov 2018
One Cube World for learning
Cloned wyo <b> '...
By test  
Created: 7 Sep 2017
Modified: 10 Feb 2018
Cloned One Cube ...
By test  
Created: 3 May 2018
Modified: 21 May 2018
One Cube World V...
By Terry D  
Created: 20 Feb 2019
Modified: 20 Feb 2019
Clone of "One Cube World (P5)" by Starter user
Cloned Complex World
By Frank  
Created: 14 Feb 2018
Modified: 15 Feb 2018
Cloned Complex World
By test2  
Created: 9 May 2018
Modified: 9 May 2018
Connect4 2 Player
By Daniel O'Sullivan  
Created: 6 Dec 2016
Modified: 10 Feb 2018
Purple Fruit Monster
By Starter user  
Created: 1 Sep 2018
Modified: 23 Feb 2019
Example of porting physics World unchanged to AB using plain physics API. From "3D Game Programm...
Cloned Cloned Cl...
By Quinc3y  
Created: 15 Nov 2018
Modified: 15 Nov 2018
Clone of "Cloned Cloned CA318 2018 World" by Quinc3y
Complete Infinit...
By Enhanced  
Created: 9 Aug 2018
Modified: 26 Aug 2018
This program was made by Nathan Bonnard. In this world, you can generate an infinite world ! Bu...
Tutorial 16.4
By "Coding Train" p...  
Created: 6 Sep 2018
Modified: 6 Sep 2018
for...of loop
Room Escape
By Jack O'Connor  
Created: 18 Feb 2019
Modified: 22 Feb 2019
Room Escape Game
Cloned xyz MineCraft
By simon  
Created: 4 Dec 2016
Modified: 10 Feb 2018
simon World
By simon  
Created: 16 Oct 2016
Modified: 10 Feb 2018
Tutorial 2.3 (1)
By "Coding Train" p...  
Created: 4 Sep 2018
Modified: 4 Sep 2018
JavaScript with Objects
Bouncy Balls
By Starter user  
Created: 1 Oct 2017
Modified: 23 Feb 2019
Demo of Physics API. Balls bounce under gravity and collide in low friction world. Splash screen...
first world
By cahillrock  
Created: 5 Nov 2018
Modified: 5 Nov 2018
first clone of One Cube World
No brain
By SinfulSalad  
Created: 7 Jun 2018
Modified: 7 Jun 2018
Endless animation by SinfulSalad
Cloned Cloned Mi...
By simon  
Created: 27 Nov 2016
Modified: 10 Feb 2018
CUSTOM MINECRAFT
By James Humphrys  
Created: 15 Jan 2017
Modified: 10 Feb 2018
CA318 2018 World...
By James O'Boyle  
Created: 15 Nov 2018
Modified: 18 Nov 2018
Clone of "CA318 2018 World" by Mark Humphrys


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

© Ancient Brain Ltd. 2018-19. All rights reserved.

Ancient Brain ™ is a trademark of Ancient Brain Ltd.

Platforms      Bug bounty      Contact

Stats      The name      Terms and conditions

Classes in Dublin      Call for partners