How to code with P5

How to code JavaScript on Ancient Brain with the "P5" library.
To get started with P5, do the following Starter Tutorial. This does not assume you have ever written a program.
P5 Starter Tutorial
How to write JS on Ancient Brain
Explains how to code in JavaScript (JS) on Ancient Brain. To create a World, you need to register and log in. Click a World name to go to its "home page" where you can take actions. Edit code in the browser. Run direct from the editor. Explains ways to output data. Explains how to include another JS file.
How to write a World
To code a World, make a blank new one, or "clone" an existing World and change it. Worlds are written for a specific "API". Explains World screenshots. Explains how to upload support files and use them. Explains how to do keyboard, mouse and touch interaction.
How to write a World that uses no Mind
Step-by-step guide.
How to write a World that uses a Mind
Step-by-step guide.
How to write a Mind
Step-by-step guide. Explains how Minds can call other Minds. This is the AI model behind Ancient Brain.
The link below takes you to a course in Introduction to Programming in JavaScript in P5. This does not assume you have ever written a program.
Intro to Programming course
When you are finished this course, you will be able to make Worlds like the following:
Tutorial 7.8 variant
154 runs ♦ 0 likes
By "Coding Train" p...  
Created: 6 Sep 2018
Modified: 11 Sep 2018
Tutorial 7.8 with music and other uploaded images, including from other users. Click on the images.
Tutorial 7.3
80 runs ♦ 0 likes
By "Coding Train" p...  
Created: 5 Sep 2018
Modified: 5 Sep 2018
Arrays of Objects
Tutorial 2.1
194 runs ♦ 0 likes
By "Coding Train" p...  
Created: 4 Sep 2018
Modified: 4 Sep 2018
Variables in p5.js (mouseX, mouseY)
The link below takes you to a course in 3D graphics programming in JavaScript in P5.
3D graphics course
When you are finished this course, you will be able to make Worlds like the following:
Tutorial 18.7
245 runs ♦ 0 likes
By "Coding Train" p...  
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.
JavaScript
Links to full JavaScript and jQuery reference.
AB object
Ancient Brain runs have an "AB" object defined, which provides lots of built-in functionality and customisability on every run. This is a full reference for the data and methods of the AB object.
AB World and Mind definitions
You define Worlds and Minds by defining methods for AB.world and AB.mind. Then Minds can run in Worlds. This explains the syntax.
AB legacy code
Explains some legacy code you might see in some people's Worlds. One of the core principles of Ancient Brain is that old Worlds will run forever.
APIs
A summary page of all the APIs. Compares them by libraries used and functionality.
Resources
Some useful links for how to get resources online, such as textures, 3D models and sound effects.
Ace editor
Links to the official Ace editor docs, and quick reference. Explains the "Intelligent code help".
P5 reference
Links to the official P5 docs.