So, I just recently relized, most people on here are talking about coding, and I don't know that, so can someone teach me coding or sm

I did that, dident work

I used what you made earlyer to make a game, but it dident save

well chatgpt did

?

what does that mean

3rd Person Car Test - Complete body { margin:0; overflow:hidden; } // Scene const scene = new THREE.Scene(); scene.background = new THREE.Color(0x88c0d0);

// Renderer
const renderer = new THREE.WebGLRenderer({antialias:true});
renderer.shadowMap.enabled = true;
renderer.setSize(window.innerWidth, window.innerHeight);
document.body.appendChild(renderer.domElement);

// Camera
const camera = new THREE.PerspectiveCamera(75, window.innerWidth/window.innerHeight, 0.1, 1000);

// Lights
const hemiLight = new THREE.HemisphereLight(0xffffff, 0x444444, 1);
hemiLight.position.set(0, 50, 0);
scene.add(hemiLight);

const dirLight = new THREE.DirectionalLight(0xffffff, 1);
dirLight.position.set(-30, 50, -30);
dirLight.castShadow = true;
scene.add(dirLight);

// Ground (Highway)
const road = new THREE.Mesh(
new THREE.PlaneGeometry(500, 20),
new THREE.MeshStandardMaterial({color:0x555555})
);
road.rotation.x = -Math.PI/2;
road.receiveShadow = true;
scene.add(road);

// Road Markings
for (let i=0; i<50; i++){
const mark = new THREE.Mesh(
new THREE.PlaneGeometry(1, 0.3),
new THREE.MeshStandardMaterial({color:0xffffff})
);
mark.rotation.x = -Math.PI/2;
mark.position.set(0, 0.01, -10 + i*10);
scene.add(mark);
}

// Car Placeholder
const car = new THREE.Mesh(
new THREE.BoxGeometry(1.5,0.5,3),
new THREE.MeshStandardMaterial({color:0xff0000})
);
car.position.y = 0.25;
scene.add(car);

// Camera offset
camera.position.set(0,5,-10);
camera.lookAt(car.position);

// Controls
const move = { forward:0, turn:0 };
document.addEventListener(‘keydown’, e=>{
if([‘w’,‘ArrowUp’].includes(e.key)) move.forward=1;
if([‘s’,‘ArrowDown’].includes(e.key)) move.forward=-1;
if([‘a’,‘ArrowLeft’].includes(e.key)) move.turn=1;
if([‘d’,‘ArrowRight’].includes(e.key)) move.turn=-1;
});
document.addEventListener(‘keyup’, e=>{
if([‘w’,‘ArrowUp’,‘s’,‘ArrowDown’].includes(e.key)) move.forward=0;
if([‘a’,‘ArrowLeft’,‘d’,‘ArrowRight’].includes(e.key)) move.turn=0;
});

// Car physics
let speed=0, maxSpeed=2, acc=0.05, friction=0.95, turnSpeed=0.03;

// Animation loop
function animate(){
requestAnimationFrame(animate);

// Movement
if(move.forward!==0) speed += acc*move.forward;
speed *= friction;
speed = Math.max(-maxSpeed, Math.min(maxSpeed, speed));

car.rotation.y += move.turn * turnSpeed * (speed*5);
car.position.x += Math.sin(car.rotation.y)*speed;
car.position.z += Math.cos(car.rotation.y)*speed;

// Camera follow
const camOffset = new THREE.Vector3(0,5,-10).applyEuler(car.rotation);
camera.position.copy(car.position).add(camOffset);
camera.lookAt(car.position);

renderer.render(scene,camera);

}
animate();

// Resize
window.addEventListener(‘resize’, ()=>{
camera.aspect = window.innerWidth/window.innerHeight;
camera.updateProjectionMatrix();
renderer.setSize(window.innerWidth, window.innerHeight);
});

that’s the correct one

Does look correct.

its weird.

ia made that, but I think its brocken

Mustang Tunnel Road body{margin:0;overflow:hidden;}canvas{display:block;} const scene = new THREE.Scene(); scene.background = new THREE.Color(0x05070d);

// Camera
const camera = new THREE.PerspectiveCamera(75, innerWidth/innerHeight, 0.1, 1000);
camera.position.set(0,3,10);

// Renderer
const renderer = new THREE.WebGLRenderer({antialias:true});
renderer.setSize(innerWidth, innerHeight);
document.body.appendChild(renderer.domElement);

// Ambient light + directional for visibility
scene.add(new THREE.AmbientLight(0x404040,1.5));
const dirLight = new THREE.DirectionalLight(0xffffff,2);
dirLight.position.set(5,10,10);
scene.add(dirLight);

// ==================
// FOREVER TUNNEL
// ==================
const tunnelGroup = new THREE.Group();
scene.add(tunnelGroup);

const TUNNEL_RADIUS = 7;
const SEG_LEN = 50;
const SEG_COUNT = 12;
const tunnelMat = new THREE.MeshStandardMaterial({color:0x222222, side:THREE.BackSide});

for(let i=0;i<SEG_COUNT;i++){
const seg = new THREE.Mesh(
new THREE.CylinderGeometry(TUNNEL_RADIUS,TUNNEL_RADIUS,SEG_LEN,32,1,true),
tunnelMat
);
seg.rotation.x = Math.PI/2;
seg.position.z = -i*SEG_LEN;
tunnelGroup.add(seg);
}

// ==================
// ROAD INSIDE TUNNEL
// ==================
const ROAD_WIDTH = 4;
const ROAD_LEN = SEG_LEN*SEG_COUNT;
const roadMat = new THREE.MeshStandardMaterial({color:0x333333});
const road = new THREE.Mesh(new THREE.PlaneGeometry(ROAD_WIDTH,ROAD_LEN),roadMat);
road.rotation.x = -Math.PI/2;
road.position.z = -ROAD_LEN/2;
scene.add(road);

// Lane markings
for(let i=0;i<ROAD_LEN;i+=5){
const mark = new THREE.Mesh(
new THREE.PlaneGeometry(0.3,1),
new THREE.MeshStandardMaterial({color:0xffffff})
);
mark.rotation.x = -Math.PI/2;
mark.position.set(0,0.01,-i);
scene.add(mark);
}

// ==================
// MUSTANG FASTBACK
// ==================
const car = new THREE.Group();
scene.add(car);

const paint = new THREE.MeshStandardMaterial({color:0xff0000, metalness:0.5, roughness:0.3});
const body = new THREE.Mesh(new THREE.BoxGeometry(2,0.5,4), paint); body.position.y = 0.25; car.add(body);

// Wheels
const wheelMat = new THREE.MeshStandardMaterial({color:0x111111});
for(let dx=-1; dx<=1; dx+=2){
for(let dz=-1.5; dz<=1.5; dz+=3){
const wheel = new THREE.Mesh(new THREE.CylinderGeometry(0.4,0.4,0.3,16), wheelMat);
wheel.rotation.z = Math.PI/2;
wheel.position.set(dx,0.2,dz);
car.add(wheel);
}
}

// Headlights
const headlights = ;
for(let dx=-0.5; dx<=0.5; dx+=1){
const spot = new THREE.SpotLight(0xffffff,3,50,Math.PI/6,0.3);
spot.position.set(dx,0.3,2.2);
spot.target.position.set(dx,0.2,50);
scene.add(spot);
scene.add(spot.target);
headlights.push(spot);
}

// Tail lights
const tailMat = new THREE.MeshStandardMaterial({emissive:0xff0000, emissiveIntensity:2});
for(let dx=-0.7; dx<=0.7; dx+=1.4){
for(let dz=-1.5; dz<=-1; dz+=0.5){
const tl = new THREE.Mesh(new THREE.BoxGeometry(0.15,0.15,0.05), tailMat);
tl.position.set(dx,0.25,dz);
car.add(tl);
}
}

car.position.y = 0.25;

// ==================
// INPUT
// ==================
const input = {forward:0, turn:0};
addEventListener(‘keydown’, e=>{
if([‘w’,‘ArrowUp’].includes(e.key)) input.forward=1;
if([‘s’,‘ArrowDown’].includes(e.key)) input.forward=-1;
if([‘a’,‘ArrowLeft’].includes(e.key)) input.turn=1;
if([‘d’,‘ArrowRight’].includes(e.key)) input.turn=-1;
});
addEventListener(‘keyup’, e=>{
if([‘w’,‘ArrowUp’,‘s’,‘ArrowDown’].includes(e.key)) input.forward=0;
if([‘a’,‘ArrowLeft’,‘d’,‘ArrowRight’].includes(e.key)) input.turn=0;
});

// ==================
// PHYSICS
// ==================
let speed=0, maxSpeed=3, acc=0.05, friction=0.95, turnSpeed=0.03;

// ==================
// ANIMATION LOOP
// ==================
function animate(){
requestAnimationFrame(animate);

// Movement
if(input.forward!==0) speed += acc*input.forward;
speed *= friction;
speed = Math.max(-maxSpeed, Math.min(maxSpeed, speed));

car.rotation.y += input.turnturnSpeed(speed*5);
car.position.x += Math.sin(car.rotation.y)*speed;
car.position.z += Math.cos(car.rotation.y)*speed;

// Move tunnel segments for infinite effect
tunnelGroup.children.forEach(seg=>{
if(seg.position.z - car.position.z > SEG_LEN/2){
seg.position.z -= SEG_LEN*SEG_COUNT;
}
});

// Headlights direction
headlights.forEach(h=>h.target.position.set(h.position.x + Math.sin(car.rotation.y)*50, h.position.y, h.position.z + Math.cos(car.rotation.y)*50));

// Camera follow
const camOffset = new THREE.Vector3(0,3,-8).applyEuler(car.rotation);
camera.position.copy(car.position).add(camOffset);
camera.lookAt(car.position);

renderer.render(scene,camera);
}
animate();

// ==================
// RESIZE
// ==================
window.addEventListener(‘resize’, ()=>{
camera.aspect = innerWidth/innerHeight;
camera.updateProjectionMatrix();
renderer.setSize(innerWidth, innerHeight);
});

without playing this monstrosaty guess what I is

A racing game?

well, close, but no

I imagine it’s something having to do with a car since “car” is mentioned there.

lol, its supposed to be a police chase. its ai made

Nice! Why supposed? It didn’t work?

I think there is supposed to be some html around it.

I pasted your code into chatGPT and said:

someone pasted this into the forum, trying to make a standalone html file game, but he's missing some parts.. like the html.. can you fix this and give me a downloadable html i can give him:

tunnel-driver-standalone.html (8.5 KB)

There is some css towards the top?

“I want to know coding.”

This statement is meaningless. The appropriate question is: “How do I learn to solve problems using a computer”? Since a computer is as good as the person behind the keyboard, you can only “code” what you know. Therefore, you have to pursue a background or a degree first.

In the past, people have solved problems by building machines with a single purpose. For instance, Blaise Pascal built maybe the first calculators in the 17th century to help his father, who was an accountant, to perform calculations faster. Touring helped cracking the “Enigma” code in WW II, by building something “programmable” in a certain sense. However, he created what is known as a Touring machine, the basis of the modern computation.

CG, on the other hand, is just a way of outputting the result of a calculation by using images, instead of spitting out only text and numbers.

I know this is not the answer you were looking for, but if you understand my point, it may save you a lot of disappointments in the future.

Nowadays you just use AI. You can tell it what to do in plain human languages and get the results.