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.
-
All Ancient Brain programs (called "Worlds") run in the browser.
- All programs are in JavaScript.
- 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:
Make a decision: P5 or Three.js
- There are two main families of Worlds:
- Those that use the "P5" graphics library.
- Those that use the "Three.js" graphics library.
- There are other Worlds, but at the moment, most of the interesting/complex Worlds use either P5 or Three.js
- So you need to figure out which library you want to use for coding.
-
See explanation of the differences between the libraries in
Getting started.
- All code is still in the JavaScript language.
This is just about choosing a graphics library for support.
- If you are Cloning a World and editing it, you need to stick with 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: