Intro to Ancient Brain
Ancient Brain
is an online coding site on which we can write programs in the browser.
We can use it for writing programs for teaching courses.
-
Ancient Brain programs (coded by users) are called "Worlds".
They run in the browser without any install.
- Most Worlds are in JavaScript.
Though Python Worlds are arriving.
- You can Clone and Edit your own copy of any "World".
Example Worlds
Click to run.
All the following Worlds have draggable and zoomable cameras.
There are currently
Worlds on the site.
Click to run World:
Blank Three.js World at
Ancient Brain.
Click to run Mind:
Simple Mind in World:
Simple World at
Ancient Brain.
Click to run World:
Game of Crowns at
Ancient Brain.
Click to run World:
Port of flying birds at
Ancient Brain.
How to code
Ancient Brain has extensive help.
Get started here:
Graphics libraries
- Most Worlds are in the JavaScript language.
Normally we need a graphics library to help with graphics for JavaScript.
- There are two main families of JavaScript Worlds on the site:
- Worlds that use the "P5" graphics library.
- Worlds that use the "Three.js" graphics library.
- There are other Worlds, using other graphics libraries, no graphics library,
and not JavaScript,
but most of the interesting/complex Worlds are JavaScript and use P5 or Three.js.
- We need to pick which one to try out first. If you do not know, we suggest P5.
-
See explanation of the differences between the libraries in
Getting started.
- If you are Cloning a World and editing it, you get the library the World used.
The "P5" JavaScript library
- To get started with P5 in JavaScript on Ancient Brain, do the starter tutorial:
- P5 Starter Tutorial
- While coding you can consult the Docs page:
- Docs
The "Three.js" JavaScript library
- To get started with Three.js in JavaScript on Ancient Brain, do the starter tutorial:
- Three.js Starter Tutorial
- While coding you can consult the Docs page:
- Docs
Intro to JavaScript
Don't know JavaScript?
You will pick it up quickly if you can code.
Notes on this site
I have extensive notes on JavaScript on this site: