Skip to content

coatsnmore/glitterbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

19 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

โœจ SpaceCat's Glitterbox

A modern portfolio website showcasing interactive games, tech demos, and creative coding projects. Built with Astro for fast, static site generation.

๐ŸŽฎ Live Demos

  • ๐ŸŒฒ Forest Game - Interactive forest exploration game with procedurally generated environments
  • ๐Ÿš€ Space Game - Space shooter adventure with physics and audio
  • ๐ŸŽ‰ Best Friend Party - Interactive party game with cat characters
  • ๐ŸงŸ Vampire Survivors Clone - Action survival game with canvas rendering
  • ๐ŸŒฟ Survival Game - 3D survival experience built with Three.js
  • ๐Ÿ“ฑ Wellness Tracker - Progressive Web App for daily wellness and journaling

๐Ÿ—๏ธ Tech Stack

  • Framework: Astro - Static site generator
  • Styling: CSS with modern glassmorphism effects
  • Game Technologies:
    • Vite for build tooling
    • Matter.js for physics (Space Shooter)
    • Tone.js for audio (Space Shooter)
    • Three.js for 3D graphics (Survival)
    • Canvas API for 2D rendering (Vampire)
  • PWA Features: Service workers, local storage, offline support
  • Deployment: Ready for deployment to spacecat.org

๐Ÿš€ Getting Started

Prerequisites

  • Node.js (version 16 or higher)
  • npm or yarn

Installation

  1. Clone the repository:
git clone <repository-url>
cd glitterbox
  1. Install dependencies:
npm install
  1. Start the development server:
npm run dev
  1. Open your browser and visit http://localhost:4321

๐Ÿ“ Project Structure

glitterbox/
โ”œโ”€โ”€ apps/
โ”‚   โ””โ”€โ”€ wellness-tracker/     # PWA wellness tracking app
โ”œโ”€โ”€ games/
โ”‚   โ”œโ”€โ”€ best-friend-party/    # Cat party game (Vite + vanilla JS)
โ”‚   โ”œโ”€โ”€ chill-forest/         # Forest exploration game (Vite + vanilla JS)
โ”‚   โ”œโ”€โ”€ space-shooter/        # Space game (Vite + Matter.js + Tone.js)
โ”‚   โ””โ”€โ”€ survival/             # 3D survival game (Vite + Three.js)
โ”œโ”€โ”€ public/
โ”‚   โ”œโ”€โ”€ best-friend-party/    # Built game assets
โ”‚   โ”œโ”€โ”€ forest/               # Forest game assets
โ”‚   โ”œโ”€โ”€ space/                # Space game assets
โ”‚   โ”œโ”€โ”€ survival/             # Survival game assets
โ”‚   โ”œโ”€โ”€ vampire/              # Vampire game assets
โ”‚   โ”œโ”€โ”€ wellness/             # Wellness app assets
โ”‚   โ””โ”€โ”€ favicon.png           # SpaceCat brand favicon
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ assets/
โ”‚   โ”‚   โ”œโ”€โ”€ spacecat_logo_glitterbox_style_transparent.png
โ”‚   โ”‚   โ””โ”€โ”€ glitterbox_combined_transparent.png
โ”‚   โ”œโ”€โ”€ components/
โ”‚   โ”‚   โ””โ”€โ”€ Welcome.astro     # Main landing page
โ”‚   โ”œโ”€โ”€ layouts/
โ”‚   โ”‚   โ””โ”€โ”€ Layout.astro      # Base layout template
โ”‚   โ””โ”€โ”€ pages/
โ”‚       โ”œโ”€โ”€ index.astro       # Home page
โ”‚       โ”œโ”€โ”€ about.astro       # About page
โ”‚       โ”œโ”€โ”€ forest.astro      # Forest game page
โ”‚       โ”œโ”€โ”€ space.astro       # Space game page
โ”‚       โ”œโ”€โ”€ best-friend-party.astro  # Party game page
โ”‚       โ”œโ”€โ”€ survival.astro    # Survival game page
โ”‚       โ”œโ”€โ”€ vampire.astro     # Vampire game page
โ”‚       โ””โ”€โ”€ wellness.astro    # Wellness app page
โ””โ”€โ”€ package.json

๐ŸŽฎ Game Details

๐ŸŒฒ Chill Forest

  • Type: Procedural forest exploration
  • Tech: Vanilla JavaScript, Vite
  • Features: Dynamic environment generation, interactive elements

๐Ÿš€ Space Shooter

  • Type: Physics-based space combat
  • Tech: Matter.js physics, Tone.js audio, Vite
  • Features: Realistic physics, sound effects, responsive controls

๐ŸŽ‰ Best Friend Party

  • Type: Interactive party game
  • Tech: Vanilla JavaScript, Vite
  • Features: Cat characters, party mechanics

๐ŸงŸ Vampire Survivors Clone

  • Type: Action survival
  • Tech: Canvas API, vanilla JavaScript
  • Features: Real-time combat, enemy spawning

๐ŸŒฟ Survival Game

  • Type: 3D survival experience
  • Tech: Three.js, Vite
  • Features: 3D graphics, immersive environment

๐Ÿ“ฑ App Details

Wellness Tracker

  • Type: Progressive Web App
  • Tech: Vanilla JavaScript, PWA features
  • Features:
    • Daily goal tracking
    • Food logging
    • Personal notes/journaling
    • Local storage
    • Offline support
    • Service worker registration

๐ŸŽจ Design Features

  • Dark Tech Theme: Deep blue/purple gradients with animated overlays
  • Glassmorphism UI: Modern backdrop blur effects and transparency
  • Responsive Design: Optimized for desktop and mobile
  • Brand Integration: SpaceCat branding with Glitterbox product focus
  • Smooth Animations: Hover effects and transitions throughout

๐ŸŽฎ Adding New Games

To add a new game to the portfolio:

  1. Create game directory:

    mkdir public/your-game-name
  2. Add game files to public/your-game-name/

  3. Create Astro page at src/pages/your-game-name.astro:

    ---
    import Layout from '../layouts/Layout.astro';
    ---
    
    <Layout>
      <div id="game-container">
        <iframe 
          src="/your-game-name/index.html" 
          width="100%" 
          height="100%" 
          frameborder="0"
          style="border: none;"
        ></iframe>
      </div>
    </Layout>
  4. Update asset paths in your game's HTML to include the subdirectory (e.g., /your-game-name/assets/)

  5. Add link to the main page in src/components/Welcome.astro

๐Ÿš€ Deployment

Build for Production

npm run build

Deploy to spacecat.org

The site is configured for deployment to spacecat.org. Build files will be generated in the ./dist/ directory.

๐ŸŽฏ Available Scripts

Command Action
npm install Installs dependencies
npm run dev Starts local dev server at localhost:4321
npm run build Build your production site to ./dist/
npm run preview Preview your build locally, before deploying
npm run astro ... Run CLI commands like astro add, astro check

Individual Game Development

Each game can be developed independently:

cd games/your-game-name
npm install
npm run dev

๐ŸŒŸ Features

  • Fast Loading: Static site generation for optimal performance
  • SEO Optimized: Built-in meta tags and structured data
  • Accessible: Semantic HTML and ARIA labels
  • Modern CSS: CSS Grid, Flexbox, and custom properties
  • Game Integration: Seamless iframe embedding for interactive content
  • PWA Support: Progressive Web App capabilities for mobile
  • Cross-Platform: Works on desktop, mobile, and tablets

๐Ÿ› ๏ธ Development Tools

  • Vite: Fast build tool for modern web development
  • Astro: Static site generator with component support
  • Modern JavaScript: ES6+ features and modules
  • CSS Grid/Flexbox: Modern layout systems
  • Responsive Design: Mobile-first approach

๐Ÿ“ License

This project is part of the SpaceCat portfolio. All rights reserved.


Built with โค๏ธ by SpaceCat

About

A collection of alllll the good stuff.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors