Skip to content

bkennedyshit/Reddit_Plane_Submission

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ›ฉ๏ธ Sky Racer - Reddit Devvit Game

Fly your jet through the city, dodge obstacles, and compete for high scores on Reddit!

Sky Racer

๐ŸŽฎ About

Sky Racer is a fast-paced flight game built for Reddit's Developer Platform (Devvit). Pilot your jet through a bustling cityscape, perform tricks, collect rings, and climb the leaderboard!

Built for: Reddit Devvit Hackathon - Community Play Category

๐Ÿ“ฆ Version Note

Live Demo: Running version 0.0.19 on r/sky_racer_game_dev
Source Code: This repository contains the latest development version with additional UI improvements

The live demo is fully functional with all core features. The source code includes additional responsive design improvements and UI polish that will be deployed in future updates.

โœจ Features

  • Smooth Flight Physics - Vertical movement with realistic controls
  • Dynamic Obstacles - Buildings, cranes, floating boxes, and bonus rings
  • Trick System - Barrel rolls, loops, and combos for bonus points
  • Global Leaderboard - Compete with other Reddit users
  • Real-time Scoring - Live score updates and multipliers
  • Reddit Integration - Native user authentication and profiles

๐ŸŽฏ How to Play

Controls

  • W / โ†‘ - Fly up
  • S / โ†“ - Fly down
  • A - Barrel roll (left)
  • D - Speed boost
  • Space - Turbo boost
  • Q / E - Loop-de-loop

Scoring

  • Distance - Auto-scroll points
  • Rings - +100 points (fly through them!)
  • Obstacles - +10-30 points for passing
  • Tricks - +25-100 points for barrel rolls and loops
  • Combos - Up to 5x multiplier for consecutive successes

Lives

You have 3 lives. Lose one when you hit:

  • Buildings
  • Cranes
  • Floating boxes
  • The ground

๐Ÿš€ Quick Start

Play on Reddit

  1. Visit the game post on Reddit
  2. Click to start playing
  3. Your scores automatically save to the leaderboard!

Local Development

# Install dependencies
npm install

# Run development server
npm run dev

# Open http://localhost:3000

Deploy to Reddit

# Login to Devvit
devvit login

# Build the game
npm run build

# Upload to Reddit
npm run devvit:upload

# Install to your test subreddit
devvit install YOUR_SUBREDDIT_NAME

See DEVVIT_SETUP.md for detailed setup instructions.

๐Ÿ› ๏ธ Tech Stack

  • Frontend: React + TypeScript
  • Animation: Framer Motion
  • Styling: Tailwind CSS + shadcn/ui
  • Platform: Reddit Devvit
  • Database: Redis (leaderboard)
  • Build: Vite

๐Ÿ“ Project Structure

reddit-sky-racer/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ main.tsx              # Devvit app entry point
โ”‚   โ”œโ”€โ”€ GamePost.tsx          # Game post component
โ”‚   โ””โ”€โ”€ handlers.ts           # Event handlers
โ”œโ”€โ”€ components/
โ”‚   โ”œโ”€โ”€ game/
โ”‚   โ”‚   โ”œโ”€โ”€ JetPlane.tsx      # Player component
โ”‚   โ”‚   โ”œโ”€โ”€ GameObstacles.tsx # Obstacle rendering
โ”‚   โ”‚   โ””โ”€โ”€ GameUI.tsx        # HUD and UI
โ”‚   โ””โ”€โ”€ ui/                   # Reusable UI components
โ”œโ”€โ”€ hooks/
โ”‚   โ”œโ”€โ”€ useGameEngine.ts      # Core game logic
โ”‚   โ””โ”€โ”€ useDevvitBridge.ts    # Reddit integration
โ”œโ”€โ”€ CityBackground.tsx        # Animated background
โ”œโ”€โ”€ App.tsx                   # Main game component
โ””โ”€โ”€ devvit.yaml              # Devvit configuration

๐ŸŽจ Game Design

Obstacles

  • Buildings (15%) - Ground-level structures to dodge
  • Cranes (10%) - Construction obstacles
  • Floating Boxes (60%) - Air obstacles scattered throughout
  • Rings (15%) - Bonus collectibles (fly through for points!)

Difficulty

  • Progressive challenge as you fly further
  • Increasing obstacle density
  • Faster scroll speed with boost

Visual Effects

  • Engine trails and sparks
  • Particle effects on tricks
  • Smooth animations with Framer Motion
  • Parallax scrolling background

๐Ÿ† Leaderboard

The global leaderboard tracks:

  • Top 10 scores across all players
  • Personal high scores
  • Reddit usernames
  • Real-time updates

Powered by Redis for fast, reliable score storage.

๐Ÿ“ Development

Available Scripts

  • npm run dev - Start development server
  • npm run build - Build for production
  • npm run devvit:upload - Upload to Reddit
  • npm run devvit:playtest - Live testing with auto-reload

Adding Features

The game is modular and easy to extend:

  • Add new obstacles in GameObstacles.tsx
  • Modify physics in useGameEngine.ts
  • Update scoring in the game loop
  • Add power-ups or achievements

๐Ÿค Contributing

This is a hackathon submission, but feel free to:

  • Report bugs
  • Suggest features
  • Fork and improve!

๐Ÿ“„ License

MIT License - See LICENSE file for details

๐Ÿ™ Credits

๐ŸŽฏ Hackathon Submission

Category: Community Play Theme: Building engaging, community-driven gaming experiences on Reddit

Why Sky Racer?

  1. Unique Mechanics - Flight-based gameplay (not another runner)
  2. Community Focus - Global leaderboard brings players together
  3. Reddit Native - Built specifically for Reddit's platform
  4. Addictive Gameplay - Easy to learn, hard to master
  5. Visual Polish - Smooth animations and effects

Ready to fly? ๐Ÿ›ฉ๏ธ Install Sky Racer on your subreddit and start competing!

For setup help, see DEVVIT_SETUP.md

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages