Drag the background!
Book chapters

Worlds to use chapter by chapter in a book. Slowly building up a 3D "Battleship" multi-user Websocket game. View code to see exercises for each chapter.

Userid: chapters
Type: Normal account.
Joined: 24 Aug 2023
Country: Unknown

Uploads
owned by this user
Ch.8. Tidying up...
36 runs ♦ 0 likes
Created: 17 Jul 2023
Modified: 24 Aug 2023
Final "Battleship" style Websocket game. 3D graphics. Rotate camera. Multi-user. Take turns.
Ch.7. Websocket ...
33 runs ♦ 0 likes
Created: 14 Jul 2023
Modified: 24 Aug 2023
Adding Websocket functionality. Multi-user. Guesses sent to opponent.
Ch.6. Arrays.
10 runs ♦ 0 likes
Created: 13 Jul 2023
Modified: 24 Aug 2023
Visually no different. But we are putting in things behind the scenes.
Ch.3. 2D grid.
18 runs ♦ 0 likes
Created: 9 Jul 2023
Modified: 24 Aug 2023
A 2D grid of boxes. The "for" loop.
Ch.4. Two grids.
71 runs ♦ 0 likes
Created: 9 Jul 2023
Modified: 24 Aug 2023
Two grids. My grid of ships, and my estimate of opponent's grid.
Ch.5. Click on l...
51 runs ♦ 0 likes
Created: 9 Jul 2023
Modified: 24 Aug 2023
Click on location to attempt to sink a ship. Click in 2D screen space selects a location in 3D T...
Ch.2. Draw two b...
26 runs ♦ 0 likes
Created: 8 Jul 2023
Modified: 24 Aug 2023
Draw two boxes. Two textures. The "if" statement.
Ch.1. Draw a box.
62 runs ♦ 0 likes
Created: 7 Jul 2023
Modified: 24 Aug 2023
Draw a box in Three.js space. Click to drag camera.
The background is a program, showing the JavaScript graphics used on this site.
The globes light up when you log in.
 
Font:

Users retain ownership of user content.

Platforms      Stats      The name      Terms and conditions

Call for partners      Contact

Call for partners!
Ancient Brain is looking for a partner to co-write a JavaScript coding book for schools, to be used worldwide. This would be a course for students in learning to code from scratch. The book and course will be integrated into the Ancient Brain site. This is an opportunity for someone looking to develop a course and textbook to partner with a site to promote it. Read more.