Skip to content

jackiesafari/dam-attack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dam Attack 🦫

A retro 80s beaver-themed Tetris game built with Devvit and Kiro! Help the beaver build the ultimate dam by stacking logs, branches, and twigs in this neon-styled puzzle game.

🎮 Game Features

  • Beaver-Themed Tetris: Classic Tetris gameplay with wooden pieces (logs, branches, twigs)
  • Retro 80s Aesthetic: Neon colors, grid backgrounds, and synthwave vibes
  • Progressive Difficulty: Game speeds up as you level up (every 10 lines cleared)
  • Beaver Encouragement: Your beaver buddy cheers you on with motivational messages
  • Mobile-Friendly: Touch controls for mobile devices
  • Score System: Points for clearing lines, bonus for higher levels

🕹️ How to Play

  • Arrow Keys: Move pieces left/right/down
  • Up Arrow: Rotate pieces
  • Space: Drop pieces
  • Mobile: Use the on-screen control buttons

🎯 Objective

Stack the falling wooden pieces to create complete horizontal lines. When a line is filled, it disappears and you score points! The beaver gets more excited as you build higher and higher dams.

🏗️ Piece Types

  • Log (I-piece): Long straight logs
  • Bundle (O-piece): Square branch bundles
  • Branch (T, J, L-pieces): Various shaped branches
  • Twig (S, Z-pieces): Small curved twigs

🎨 Visual Style

Inspired by 80s arcade games with:

  • Neon cyan and magenta color scheme
  • Retro grid backgrounds
  • Wood-textured game pieces
  • Glowing text effects
  • Pixel-art beaver character

🚀 Tech Stack

  • Kiro AI: AI-powered IDE used for development and code generation
  • Devvit: Reddit's developer platform
  • Vite: For compiling the webView
  • Phaser: 2D game engine
  • Express: For backend logic
  • Typescript: For type safety

🤖 Development with Kiro AI

This project showcases the power of AI-assisted development using Kiro:

  • 🎮 Game Logic: Complete Tetris mechanics generated and refined with AI assistance
  • 🎨 Visual Design: Retro 80s neon aesthetic implemented through AI-guided styling
  • 🦫 Character Integration: Beaver-themed elements and animations created collaboratively
  • 🐛 Debugging: Real-time error detection and resolution with AI support
  • 📱 Responsive Design: Mobile-friendly controls and layouts optimized with AI insights
  • ⚡ Performance: Efficient rendering and game loop optimization through AI recommendations

Key Features Developed with Kiro:

  • Beaver character positioning and transparency handling
  • Wood-textured tetris pieces with grain effects
  • Progressive difficulty system with level progression
  • Mobile touch controls with haptic feedback
  • Retro grid backgrounds and neon glow effects

🎯 Development Story

  1. Concept to Code: Started with a simple request for a "beaver-themed Tetris game"
  2. Iterative Development: Refined gameplay mechanics through AI-assisted iterations
  3. Visual Polish: Enhanced UI/UX with retro 80s styling and neon effects
  4. Problem Solving: Resolved complex issues like PNG transparency and responsive positioning
  5. Optimization: Fine-tuned performance and cross-platform compatibility

Getting Started

Make sure you have Node 22 downloaded on your machine before running!

  1. Clone this repository: git clone https://github.com/YOUR_USERNAME/dam-attack.git
  2. Install dependencies: npm install
  3. Build the project: npm run build
  4. Start development: npm run dev

Original Devvit Setup:

  1. Run npm create devvit@latest --template=phaser
  2. Go through the installation wizard. You will need to create a Reddit account and connect it to Reddit developers
  3. Copy the command on the success page into your terminal

Commands

  • npm run dev: Starts a development server where you can develop your application live on Reddit.
  • npm run build: Builds your client and server projects
  • npm run deploy: Uploads a new version of your app
  • npm run launch: Publishes your app for review
  • npm run login: Logs your CLI into Reddit
  • npm run check: Type checks, lints, and prettifies your app

Cursor Integration

This template comes with a pre-configured cursor environment. To get started, download cursor and enable the devvit-mcp when prompted.

🙏 Credits

  • Kiro AI - AI-powered development environment that made this project possible
  • Phaser Team - For the excellent Vite TypeScript template
  • Reddit Devvit Team - For the developer platform and tools
  • Community - For inspiration and feedback on the beaver-themed concept

🤖 Proudly built with Kiro AI - Showcasing the future of AI-assisted game development!

About

Help the beaver build their dam in Tetris mode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages