Ancient Brain Starter Tutorial (P5)
This tutorial shows you how to get started on Ancient Brain (P5 version).
To be precise, this shows how to start coding on Ancient Brain
in the JavaScript programming language,
using the P5 library for the graphics.
(You can use other libraries for graphics, notably Three.js.)
On Ancient Brain, you can edit and run programs in the browser, with no install.
You have to register and get a username
if you want to save your creations.
This tutorial will show you how to copy and edit a simple "World" called "One Cube World". (Click on World image to run it.)
You will soon be able to make variants of this World, such as the ones shown here.
Contents
- Register and login
- Run the Starter World
- Clone the Starter World
- Edit your World
- First look at the code
- Change some code
- Program structure
- Paint the cube
- Upload your own image
- Make another box
- Make lots of boxes
- Add music
- Errors
- Documentation
- Clone and edit other P5 Worlds
- Finish
Notes
- Use buttons (or back and forward arrow keys) to move through the tutorial.
- This tutorial does not assume you have ever done any computer programming (or "coding") before.
- This is not a full course in programming. For that see the Introduction to Programming course.
- Rather, this explains how to use Ancient Brain. As such, it serves as a gentle introduction to the idea of coding itself.
Get started
Enough talk. Let's start the tutorial!