orbitone Svelte Themes

Orbitone

Orbit One - A futuristic 3D space defense game built with SvelteKit, Three.js, and MetaMask wallet integration. Defend your star from asteroids, aliens, and space dragons!

šŸš€ ORBIT ONE

Orbit One Banner

A futuristic 3D space defense game built with SvelteKit and Three.js

Live Demo • Features • Tech Stack • Installation


šŸ“– About

image image

Orbit One is an immersive 3D space defense game where players orbit around a star, defending it from incoming asteroids, aliens, and space dragons. Built with modern web technologies, it features stunning neon-cyberpunk aesthetics, real-time 3D graphics, and Web3 wallet integration.

✨ Features

šŸŽ® Gameplay

  • Orbital Combat: Control your spaceship as it orbits around a central star
  • Click-to-Lock Targeting: Click on enemies to lock your aim for precision shooting
  • Multiple Enemy Types: Asteroids, Aliens, and Space Dragons with unique behaviors
  • Progressive Difficulty: Enemies get faster and stronger as you advance

šŸŽØ UI/UX

  • Neon Cyberpunk Design: Stunning glass-morphism panels with cyan and orange glow effects
  • Responsive Layout: Optimized for desktop and mobile browsers
  • Animated Effects: Post-processing bloom, particle systems, and smooth transitions
  • Player Profiles: Detailed stats with radar charts and performance metrics

šŸ’° Economy System

  • Credits & Coins: Earn currency by destroying enemies
  • Gem System: Premium currency for special items
  • Ship Shop: Purchase and customize different spaceships
  • Upgrade System: Enhance laser damage, fire rate, hull integrity, and orbit control

šŸ† Social Features

  • Leaderboard: Compete with top commanders globally
  • Player Profiles: View detailed stats, achievements, and skill distribution
  • Avatar System: Random avatar generation for each player

šŸ”— Web3 Integration

  • MetaMask Login: Connect your Ethereum wallet to login
  • Wallet Display: Show your wallet address in player profiles
  • Decentralized Identity: Your wallet = your game identity

šŸ›  Tech Stack

Frontend Framework

Technology Purpose
SvelteKit Full-stack web framework with SSR/SSG support
Svelte Reactive component framework with minimal bundle size
Vite Lightning-fast build tool and dev server

3D Graphics

Technology Purpose
Three.js WebGL-based 3D rendering engine
Threlte Svelte bindings for Three.js (declarative 3D)
@threlte/core Core Threlte library
@threlte/extras Additional components (GLTF, Environment, etc.)

Post-Processing

Technology Purpose
EffectComposer Three.js post-processing pipeline
UnrealBloomPass Neon glow bloom effects
RenderPass / OutputPass Scene rendering passes

State Management

Technology Purpose
Svelte Stores Reactive state management
Zustand-style patterns Game state organization

Data Visualization

Technology Purpose
Chart.js Interactive charts (radar, doughnut)
Avatar API Dynamic player avatar generation

Web3

Technology Purpose
MetaMask Ethereum wallet integration
window.ethereum Web3 provider detection

Styling

Technology Purpose
CSS Variables Theming with neon colors
Glass-morphism Modern frosted glass UI effects
CSS Grid/Flexbox Responsive layouts

šŸ“ Project Structure

orbitone/
ā”œā”€ā”€ src/
│   ā”œā”€ā”€ lib/
│   │   ā”œā”€ā”€ components/
│   │   │   ā”œā”€ā”€ ui/                    # UI Components
│   │   │   │   ā”œā”€ā”€ LoginScreen.svelte      # MetaMask + Guest login
│   │   │   │   ā”œā”€ā”€ MainMenu.svelte         # Game mode selection
│   │   │   │   ā”œā”€ā”€ UpgradeScreen.svelte    # Ship upgrades
│   │   │   │   ā”œā”€ā”€ ShopScreen.svelte       # In-game shop
│   │   │   │   ā”œā”€ā”€ SettingsScreen.svelte   # Game settings
│   │   │   │   ā”œā”€ā”€ LeaderboardScreen.svelte # Global rankings
│   │   │   │   └── PlayerProfileModal.svelte # Stats & charts
│   │   │   ā”œā”€ā”€ models/
│   │   │   │   ā”œā”€ā”€ Spaceship.svelte   # Player ship model
│   │   │   │   └── Target.svelte      # Enemy models (asteroid, alien, dragon)
│   │   │   ā”œā”€ā”€ Scene.svelte           # Main 3D game scene
│   │   │   ā”œā”€ā”€ App.svelte             # Root component
│   │   │   └── ...
│   │   └── stores/
│   │       └── gameStore.js           # Global game state
│   ā”œā”€ā”€ routes/
│   │   └── +page.svelte               # Main entry point
│   └── app.css                        # Global styles
ā”œā”€ā”€ static/
│   ā”œā”€ā”€ orbit one banner.png           # Game banner
│   ā”œā”€ā”€ left arrow.png                 # Navigation icon
│   ā”œā”€ā”€ settings icon.png              # Settings icon
│   ā”œā”€ā”€ leaderboard cup.png            # Trophy icon
│   ā”œā”€ā”€ shop button.png                # Shop icon
│   └── space.jpg                      # Background image
ā”œā”€ā”€ package.json
ā”œā”€ā”€ svelte.config.js
ā”œā”€ā”€ vite.config.js
└── README.md

šŸš€ Installation

Prerequisites

  • Node.js 18+
  • npm or pnpm
  • MetaMask browser extension (for Web3 features)

Quick Start

# Clone the repository
git clone https://github.com/0xsupremedev/orbitone.git
cd orbitone

# Install dependencies
npm install

# Start development server
npm run dev

# Open in browser
# http://localhost:5173

Build for Production

# Create optimized build
npm run build

# Preview production build
npm run preview

šŸŽÆ How to Play

  1. Login: Connect with MetaMask or play as Guest
  2. Choose Mode: Select Endless Run (other modes coming soon)
  3. Upgrade: Spend credits to enhance your ship
  4. Play:
    • Mouse moves your ship around the orbit
    • Click to shoot at enemies
    • Click on enemies to lock your aim
    • Protect the central star from being destroyed!

šŸŽØ Design System

Color Palette

Color Hex Usage
Neon Cyan #00f2ff Primary highlights, glow effects
Fiery Orange #ff6600 Warnings, fire effects
Fiery Red #ff0033 Health, critical alerts
Deep Space #050a1b Background, panels

Typography

  • Font: Orbitron (Google Fonts)
  • Weights: 400, 700, 900
  • Style: All-caps with letter-spacing

šŸ“Š Game State

The game uses a centralized store (gameStore.js) managing:

{
  currentScreen: 'login' | 'main-menu' | 'upgrades' | 'shop' | 'settings' | 'leaderboard' | 'game',
  playerName: string,
  walletAddress: string,    // MetaMask address
  credits: number,
  coins: number,
  gems: number,
  score: number,
  starHealth: number,       // 0-100
  isPlaying: boolean,
  ownedShips: string[],
  selectedShip: string,
  settings: { ... },
  upgrades: { ... }
}

šŸ”® Roadmap

  • Campaign Mode with story missions
  • Daily Challenges with special rewards
  • Multiplayer co-op defense
  • NFT ship skins
  • On-chain leaderboard
  • Mobile app (Capacitor)
  • Sound effects and music
  • More enemy types and bosses

šŸ¤ Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

šŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

šŸ‘¤ Author

0xSupremeDev


⭐ Star this repo if you like it! ⭐

Made with šŸ’œ using Svelte, Three.js, and Web3

Top categories

Loading Svelte Themes