Here's a fun 8-bit alien racing game with multiplayer support:
This creates a simple 2-player 8-bit alien racing game where:
Here's the updated version with fighting mechanics:
Key features:
Here's the updated version with power-ups:
New features added:
Four different power-ups:
Power-ups spawn randomly every 10-15 seconds
Visual indicators for active power-ups:
Power-up effects are properly cleaned up when they expire
All power-ups have distinct colors and visual styles
The game now has more strategic depth with the power-up system while maintaining the fast-paced 8-bit alien combat feel.
Here's the enhanced version with more power-ups and improved mechanics:
New power-ups added:
Other improvements:
Here's the complete game with loading screen, menu system, and all requested features:
Here's the complete game with all the requested changes:
<!DOCTYPE html>
<html>
<head>
<title>Space Jammmer</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Press Start 2P', cursive;
background: #000;
color: #fff;
overflow: hidden;
height: 100vh;
}
#game-container {
position: relative;
width: 100%;
height: 100%;
}
canvas {
display: block;
position: absolute;
top: 0;
left: 0;
}
#loading-screen {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #000;
display: flex;
flex-direction: column;
justify-content: center;
align: center;
align-items: center;
z-index: 100;
}
#loading-bar {
width: 300px;
height: 20px;
border: 2px solid #0f0;
margin-top: 20px;
}
#loading-progress {
height: 100%;
width: 0%;
background: #0f0;
}
#menu-screen {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 50;
}
*
<!DOCTYPE html>
<html>
<head>
<title>Space Jammmer</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Press Start 2P', cursive;
background: #000;
color: #fff;
overflow: hidden;
height: 100vh;
}
#game-container {
position: relative;
width: 100%;
height: 100%;
}
canvas {
display: block;
position: absolute;
top: 0;
left: 0;
}
#loading-screen {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #000;
display: flex;
flex-direction: column;
justify-content: center;
align: center;
align-items: center;
z-index: 100;
}
#loading-bar {
width: 300px;
height: 20px;
border: 2px solid #0f0;
margin-top: 20px;
}
#loading-progress {
height: 100%;
width: 0%;
background: #0f0;
}
#menu-screen {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 50;
}
*
Here is the simplified version with the requested features (Settings, Customize, Play, and Maps) without AI functionality:
<!DOCTYPE html>
<html>
<head>
<title>Space Jammmer</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Press Start 2P', cursive;
background: #000;
color: #fff;
overflow: hidden;
height: 100vh;
}
#game-container {
position: relative;
width: 100%;
height: 100%;
}
canvas {
display: block;
position: absolute;
top: 0;
left: 0;
}
#menu-screen {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
display: flex;
flex-direction: column;
justify-content:*
<!DOCTYPE html>
<html>
<head>
<title>Space Jammmer</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Press Start 2P', cursive;
background: #000;
color: #fff;
overflow: hidden;
height: 100vh;
}
#game-container {
position: relative;
width: 100%;
height: 100%;
}
canvas {
display: block;
position: absolute;
top: 0;
left: 0;
}
#menu-screen {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
display: flex;
flex-direction: column;
justify-content:*
Here's the complete game with all the requested features (menu, customization, settings, music) in a single file:
<!DOCTYPE html>
<html>
<head>
<title>Space Jammmer</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Press Start 2P', cursive;
background: #000;
color: #fff;
overflow: hidden;
height: 100vh;
}
#game-container {
position: relative;
width: 100%;
height: 100%;
}
canvas {
display: block;
position: absolute;
top: 0;
left: 0;
}
#loading-screen {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #000;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 100;
}
#loading-bar {
width: 300px;
height: 20px;
border: 2px solid #0f0;
margin-top: 20px;
}
#loading-progress {
height: 100%;
width: 0%;
background: #0f0;
}
#menu-screen {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 50;
}
.menu-title {
font-size: 48px;
color: #0f0;
text-shadow: 0 0 10px #0f0;
margin-bottom: 50px;
}
.menu-button {
background: #111;
color: #0f0;
border: 2px solid #0f0;
padding: 15px 30px;
margin: 10px;
font-family: inherit;
font-size: 18px;
cursor: pointer;
transition: all 0.3s;
width: 250px;
text-align: center;
}
.menu-button:hover {
background: #0f0;
color: #000;
box-shadow: 0 0 15px #0f0;
}
.submenu {
display: none;
position: absolute;
background: rgba(0, 20, 0, 0.9);
border: 2px solid #0f0;
padding: 20px;
flex-direction: column;
align-items: center;
}
.back-button {
margin-top: 20px;
background: #300;
border-color: #f00;
}
.*
<!DOCTYPE html>
<html>
<head>
<title>Space Jammmer</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Press Start 2P', cursive;
background: #000;
color: #fff;
overflow: hidden;
height: 100vh;
}
#game-container {
position: relative;
width: 100%;
height: 100%;
}
canvas {
display: block;
position: absolute;
top: 0;
left: 0;
}
#loading-screen {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #000;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 100;
}
#loading-bar {
width: 300px;
height: 20px;
border: 2px solid #0f0;
margin-top: 20px;
}
#loading-progress {
height: 100%;
width: 0%;
background: #0f0;
}
#menu-screen {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 50;
}
.menu-title {
font-size: 48px;
color: #0f0;
text-shadow: 0 0 10px #0f0;
margin-bottom: 50px;
}
.menu-button {
background: #111;
color: #0f0;
border: 2px solid #0f0;
padding: 15px 30px;
margin: 10px;
font-family: inherit;
font-size: 18px;
cursor: pointer;
transition: all 0.3s;
width: 250px;
text-align: center;
}
.menu-button:hover {
background: #0f0;
color: #000;
box-shadow: 0 0 15px #0f0;
}
.submenu {
display: none;
position: absolute;
background: rgba(0, 20, 0, 0.9);
border: 2px solid #0f0;
padding: 20px;
flex-direction: column;
align-items: center;
}
.back-button {
margin-top: 20px;
background: #300;
border-color: #f00;
}
.*