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

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

487 authors    824 Worlds    79,701 runs    0.4 million lines of code    Update stats

Romantic Sunset
By Enhanced
Turn your head and discover a eautiful scenery observable in first person mode.
Bomberman
By Enhanced
Classic game of Bomberman, try to kill the ennemy with a bomb !
Chess : Mind vs Si...
By Enhanced
Clone of "Chess : Mind vs Simple AI (a bit of random)" by Mathias Bazin
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

1. Explore the site. Run Worlds.


2. See how coding on this site works. Do the Tutorial.

  • Work through the Start Tutorial. This shows you how coding on this site works. This does not assume you have ever written a program.
  • See How to write code on this site. When coding, see the "Docs" menu for all the documentation you need.
  • The tutorial looks at coding the following Worlds:
Blank Three.js World
By Starter user
A simple starter World. An Array of spheres. Painted with textures. Random motion.
One Cube World
By Starter user
Simplest possible starter World. Background color. A cube of random color.
3. Learn how to program with JavaScript. Do the courses.

  • You can learn how to program in the course: Foundations of Programming in JavaScript. This does not assume you have ever written a program.
  • This course uses the P5 graphics library.
  • You can learn WebGL with P5 in the WebGL course.
  • When you are finished these courses, you will be able to make Worlds like the following:
Tutorial 18.7
By "Coding Train" project
Tutorial 18.7 with full canvas, resized model, sound. Texture on box is image from another user.
Tutorial 7.8 variant
By "Coding Train" project
Tutorial 7.8 with music and other uploaded images, including from other users. Click on the images.
Tutorial 7.3
By "Coding Train" project
Arrays of Objects
Tutorial 2.1
By "Coding Train" project
Variables in p5.js (mouseX, mouseY)
4. Modify existing Worlds.

  • If you have learnt a little programming, start modifying existing Worlds.
  • Pick one of the following 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.
  • The following Starter Worlds use the Three.js graphics library. This site supports many libraries.
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.
Zombie Death Baby
By Starter user
How to make a fun touch game for mobile. Touch drag and tap objects. Mouse drag and click object...
5. See what you can build.

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

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

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

Car models with light...
By Port of threejs.org W...
Car bodywork reflects images from skybox. Click buttons to change model and bodywork. Mouse to m...
Complete Infinite World
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.

Touch MineCraft
By test
Created: 9 Jan 2018
Modified: 10 Feb 2018
smaller Cloned canvas 2d
By test
Created: 18 Jan 2018
Modified: 10 Feb 2018
Tutorial 2.1
By "Coding Train" project
Created: 4 Sep 2018
Modified: 4 Sep 2018
Variables in p5.js (mouseX, mouseY)
The Game of Life usin...
By Mathias Bazin
Created: 22 Jun 2018
Modified: 27 Jun 2018
Credits to Daniel Shiffman, http://codingtra.in
Sun
By Nathan Bonnard
Created: 9 Aug 2018
Modified: 9 Aug 2018
Sun Object, easy to use. Copy it for your world !
one cube world
By Isobel Humphrys
Created: 24 May 2018
Modified: 26 May 2018
quality
8 game
By Kevin Sweeney
Created: 10 Nov 2016
Modified: 10 Feb 2018
Tutorial 18.6
By "Coding Train" project
Created: 9 Sep 2018
Modified: 9 Sep 2018
createGraphics() as WebGL Texture
Space Invaders (Look ...
By Seamus Kelly
Created: 16 Nov 2016
Modified: 10 Feb 2018
Navigatable
By Conor Smyth
Created: 28 Nov 2016
Modified: 10 Feb 2018
Cloned Complex World
By declan mckibben
Created: 1 Dec 2016
Modified: 10 Feb 2018
Cloned Simple World
By Rahma Ahmed
Created: 9 Dec 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 !
Enhanced Don't Move
By Enhanced
Created: 12 Jun 2018
Modified: 27 Jun 2018
Try to dodge cubes as they fall to the ground, in this simple but efficient game
pain au chocolat
By Felix Jacob
Created: 15 Nov 2016
Modified: 10 Feb 2018
Globe Trotter
By Laura Araviciute
Created: 3 Dec 2016
Modified: 10 Feb 2018
Revamped Space Pong
By SinfulSalad
Created: 12 Jun 2018
Modified: 3 Aug 2018
Based on the world "Space Pong" by Igor Strelkov. Same graphics, with a revamped engine, and add...
First Person Night
By Mathias Bazin
Created: 19 Jun 2018
Modified: 20 Jun 2018
It's night
Day/Night cycle
By Mathias Bazin
Created: 20 Jun 2018
Modified: 26 Jun 2018
It's day then it's night the it's day again
Mid Air Pong
By Talah Ishfaq
Created: 16 Nov 2016
Modified: 10 Feb 2018
Cloned On
By Jonathan
Created: 4 May 2018
Modified: 4 May 2018
WIP Basic Line Of Sight
By Tadhg Mc Carthy Doyle
Created: 16 Nov 2016
Modified: 10 Feb 2018
Fundraising - User Co...
By Ross Franey
Created: 16 Nov 2016
Modified: 10 Feb 2018
water
By Mathias Bazin
Created: 4 Jul 2018
Modified: 6 Jul 2018
New World. Starting from scratch.
Connect4 2 Player
By Daniel O'Sullivan
Created: 6 Dec 2016
Modified: 10 Feb 2018
tha boi
By Steven
Created: 4 May 2018
Modified: 4 May 2018
Cells
By Enhanced
Created: 27 Jun 2018
Modified: 27 Jun 2018
'Cells' is an animation that displays 4 team of cells trying to infect each other, until total d...
pacman moves in 3d World
By tom
Created: 23 Oct 2016
Modified: 10 Feb 2018
Bouncy Balls
By Starter user
Created: 1 Oct 2017
Modified: 18 Sep 2018
Demo of Physics API. Balls bounce under gravity and collide in low friction world. Splash screen...
canvas webgl
By Starter user
Created: 17 Sep 2017
Modified: 18 Sep 2018
Minimal starter World for "Canvas" API (no graphics library). Program using getContext("webgl")....
Bad Pacman
By Mark Dunne
Created: 16 Nov 2016
Modified: 10 Feb 2018
P5 chase World
By Starter user
Created: 4 Aug 2018
Modified: 18 Sep 2018
Example of World with Mind on P5 plain API. No AB framework. Have to call Mind yourself. Mind mo...
Game of Crowns season 2
By Enhanced
Created: 21 Jun 2018
Modified: 27 Aug 2018
Enhanced version of "Game of Crowns" by Niamh Byrne with better graphics and controls
Cloned Complex World
By tom
Created: 16 Oct 2016
Modified: 10 Feb 2018
2D Perlin noise visua...
By Mathias Bazin
Created: 19 Jul 2018
Modified: 23 Jul 2018
Nice visuals
Car models with light...
By Port of threejs.org W...
Created: 13 Sep 2018
Modified: 14 Sep 2018
Car bodywork reflects images from skybox. Click buttons to change model and bodywork. Mouse to m...
a cube
By Patrick
Created: 4 May 2018
Modified: 4 May 2018
Cloned Complex World
By Andrew
Created: 14 Feb 2017
Modified: 10 Feb 2018
Tutorial 18.7
By "Coding Train" project
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.
Cloned Collision World
By Kian
Created: 11 Mar 2018
Modified: 11 Mar 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      Bug bounty      Contact      Stats      The name      Terms and conditions