Drag the background!

Search JS code (of Worlds)

Search JavaScript code of all Worlds for: ABWorld camera


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.
User-controlled ...
905 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) );
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;
Castle World
785 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;
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;
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()
Simple World
1643 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)
Space Odyssey
440 runs ♦ 0 likes
By Yiming Fu  
Created: 2 Dec 2022
Modified: 17 Sep 2023
Clone of "Websockets boxes" by Starter user
ABWorld.drawCameraControls = false;
Collision World
1361 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
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)
Password Websock...
65 runs ♦ 0 likes
By Starter user  
Created: 14 Nov 2022
Modified: 17 Sep 2023
Password version of "Websockets boxes"
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)
MineCraft
1115 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;
Bouncy Balls
525 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
Websockets boxes
801 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;
Complex World
8191 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)
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
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;
The San Andreas ...
1023 runs ♦ 0 likes
By Effa  
Created: 1 Dec 2022
Modified: 17 Sep 2023
ABWorld.drawCameraControls = false;
Bowling
1009 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;
Blank Three.js World
1497 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
762 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;
Zombie Escape
4086 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) );
Mighty Spread
331 runs ♦ 0 likes
By Gareth Hogan  
Created: 12 Nov 2022
Modified: 17 Sep 2023
CA318 Project
ABWorld.drawCameraControls = false;
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);
Dragon Ball Meng...
929 runs ♦ 0 likes
By MENGTE ZHU  
Created: 14 Nov 2022
Modified: 22 Jan 2024
ABWorld.drawCameraControls = false;
AncientBook - 3D...
1129 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;
Port of flying b...
758 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;
Battleship
4277 runs ♦ 2 likes
By Aaron Crawford  
Created: 30 Oct 2022
Modified: 17 Sep 2023
ABWorld.drawCameraControls = false; // Controls for camera
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)
World 1: A* to s...
350 runs ♦ 0 likes
By Musthaq Ahmed  
Created: 12 Nov 2022
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* by Chandrabha...
99 runs ♦ 0 likes
By Chandrabhanu Sin...  
Created: 12 Nov 2022
Modified: 17 Sep 2023
World 1 with A*
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)
v0.92 Pool Predi...
224 runs ♦ 0 likes
By Ian Gilligan  
Created: 20 Feb 2019
Modified: 17 Sep 2023
Clone of "v0.91 Pool Predictor Prototype" by lillisl2
ABWorld.drawCameraControls = false;
//ABWorld.camera.position.set(x,y,z);
//ABWorld.camera.up = new THREE.Vector3(0,0,1);
//ABWorld.camera.lookAt(new THREE.Vector3(0,0,0));
//ABWorld.camera.position.set(x,y,z);
Simple World (c...
0 runs ♦ 0 likes
By Brendan  
Created: 28 Oct 2019
Modified: 17 Sep 2023
Clone of "Simple 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)
Complex World (c...
Broken. (No Minds found.)
By Amitansh Joshi  
Created: 27 Oct 2022
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)
Cloned Complex World
2 runs ♦ 0 likes
By DojoCon machine 1  
Created: 20 Oct 2018
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)
Complex World (c...
3 runs ♦ 0 likes
By Piyush Wadhai  
Created: 16 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)
3. Making an Ava...
1 run ♦ 0 likes
By John Lasis  
Created: 5 Dec 2022
Modified: 17 Sep 2023
Clone of "3. Making an Avatar" by "3D Game Programming for Kids" project
ABWorld.drawCameraControls = false;
Assignment 1 - W...
18 runs ♦ 0 likes
By Prashant Kumar  
Created: 10 Nov 2022
Modified: 17 Sep 2023
A* algorithm in enemy
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)
Expo World (clon...
1 run ♦ 0 likes
By Fionn Gallahar Hall  
Created: 5 Dec 2022
Modified: 17 Sep 2023
Clone of "Expo World" by Mark Humphrys
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()


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.