3D Sports Racer
by ChromeMeteor6492 lines1.6 KB
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>3D Sports Racer</title>
<style>
* {
box-sizing: border-box;
user-select: none;
}
body {
margin: 0;
overflow: hidden;
background: #111;
font-family: Arial, sans-serif;
}
canvas {
display: block;
width: 100vw;
height: 100vh;
}
#menu {
position: fixed;
inset: 0;
background: linear-gradient(#111b, #000);
color: white;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 10;
}
#menu h1 {
font-size: 42px;
margin: 10px;
}
#menu p {
color: #bbb;
}
button {
border: 0;
border-radius: 12px;
padding: 15px 35px;
margin: 8px;
font-size: 20px;
font-weight: bold;
cursor: pointer;
}
#play {
background: #00d9ff;
}
#carSelect {
display: none;
text-align: center;
}
.carButton {
background: white;
color: black;
}
#controls {
position: fixed;
bottom: 20px;
left: 20px;
z-index: 5;
display: none;
}
.ctrl {
width: 65px;
height: 65px;
margin: 4px;
border-radius: 50%;
background: #ffffffaa;
border: 2px solid white;
font-size: 25px;
}
#rightControls {
position: fixed;
right: 20Game Source: 3D Sports Racer
Creator: ChromeMeteor64
Libraries: none
Complexity: moderate (92 lines, 1.6 KB)
The full source code is displayed above on this page.
Remix Instructions
To remix this game, copy the source code above and modify it. Add a ARCADELAB header at the top with "remix_of: 3d-sports-racer-chromemeteor64" to link back to the original. Then publish at arcadelab.ai/publish.