Skip to content

ProfessorMoose74/break_brake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Breaker Braker ๐Ÿš›๐Ÿ’ฅ

18 Wheels of Fury

A mobile trucking chaos game where you drive semi-trucks and DESTROY everything in your path to earn Damage Points (DP).


๐ŸŽฎ Game Overview

Genre: Arcade Destruction / Endless Runner Platform: Android / iOS (Flutter) Status: Active Development

Core Gameplay Loop

  1. Drive your semi-truck down the highway
  2. Destroy cars, signs, barriers, and hit bridges (THE signature move!)
  3. Earn DP (Damage Points) for each collision
  4. Repair your truck while the app is closed (idle mechanic)
  5. Upgrade to better trucks and trailers
  6. Progress through career stages

Career Progression

  • Company Driver (Starter) - Speed limited to 65 mph, basic truck
  • Lease Operator (Mid) - Speed limited to 75 mph, better equipment
  • Owner Operator (Max) - No speed limit, chrome everything!

โœจ Implemented Features (v0.1)

โœ… Core Gameplay

  • Truck physics with momentum and drift
  • Trailer physics with spring-based sway
  • Traffic cars (4 types: sedan, SUV, sports, minivan)
  • Collision detection and destruction
  • Infinite scrolling road with 3 lanes

โœ… Visual Effects

  • Enhanced truck rendering (20% bigger, tons of chrome!)

    • Manufacturer-specific grilles (Kenworth, Peterbilt, International, Volvo, Freightliner)
    • Long extended hoods on classic trucks
    • Massive chrome bumpers with highlights
    • TALL chrome exhaust stacks
    • Large wraparound windshields
    • West Coast mirrors
  • Particle system with 4 types:

    • โœจ Sparks (yellow/orange with motion trails)
    • ๐Ÿชจ Debris (dark chunks with gravity)
    • ๐Ÿ’จ Smoke (expanding puffs)
    • ๐Ÿ’Ž Glass (shiny shards)
  • Screen shake on impact (intensity-based)

โœ… Feedback Systems

  • Haptic feedback (phone vibration on collisions)

    • Light tap for cars
    • Strong shake for bridges
    • Multi-stage patterns
  • HUD display

    • Current speed
    • Damage Points
    • Career stage
    • Truck damage meter

๐Ÿšง Coming Soon

Next Update (v0.2)

  • Destructible environment (signs, barriers, cones)
  • Low bridge obstacles (THE signature feature!)
  • Progressive damage visuals (smoke, cracks, missing parts)

Future Updates

  • Sound effects and music
  • Enhanced truck visuals (manufacturer-specific rendering for all trucks)
  • Trailer visual variety
  • ELD timer countdown
  • Garage/customization screens
  • Achievement popups
  • Dispatcher harassment (calls/texts during gameplay)

๐Ÿš€ Getting Started (Development)

Prerequisites

  • Flutter SDK 3.10 or higher
  • Android Studio / VS Code with Flutter extensions
  • Connected device or emulator

Setup

# Navigate to project
cd break_brake

# Get dependencies
flutter pub get

# Run on connected device
flutter run

# Or run on Chrome (desktop controls)
flutter run -d chrome

Controls

Desktop (Testing):

  • Arrow Keys or WASD: Steer left/right, brake
  • Spacebar: Brake

Mobile:

  • Tap left third of screen: Steer left
  • Tap right third: Steer right
  • Tap middle: Brake

๐Ÿ“ Project Structure

lib/
โ”œโ”€โ”€ game/
โ”‚   โ””โ”€โ”€ breaker_braker_game.dart       # Main game loop
โ”œโ”€โ”€ components/
โ”‚   โ”œโ”€โ”€ truck/
โ”‚   โ”‚   โ”œโ”€โ”€ truck_component.dart       # Player truck (ENHANCED!)
โ”‚   โ”‚   โ””โ”€โ”€ trailer_component.dart     # Trailer with spring physics
โ”‚   โ”œโ”€โ”€ obstacles/
โ”‚   โ”‚   โ”œโ”€โ”€ car_component.dart         # Traffic cars
โ”‚   โ”‚   โ””โ”€โ”€ traffic_spawner.dart       # Spawns cars
โ”‚   โ”œโ”€โ”€ effects/
โ”‚   โ”‚   โ”œโ”€โ”€ screen_shake.dart          # Camera shake
โ”‚   โ”‚   โ””โ”€โ”€ collision_particle.dart    # Particle explosions
โ”‚   โ””โ”€โ”€ ui/
โ”‚       โ””โ”€โ”€ game_hud.dart              # HUD overlay
โ”œโ”€โ”€ models/
โ”‚   โ”œโ”€โ”€ truck_model.dart               # Truck data & templates
โ”‚   โ”œโ”€โ”€ trailer_model.dart             # Trailer data & templates
โ”‚   โ”œโ”€โ”€ damage_model.dart              # Component-based damage
โ”‚   โ””โ”€โ”€ player_model.dart              # Player progression & stats
โ”œโ”€โ”€ providers/
โ”‚   โ””โ”€โ”€ game_state_provider.dart       # Global state
โ”œโ”€โ”€ services/
โ”‚   โ””โ”€โ”€ haptic_service.dart            # Vibration/haptics
โ””โ”€โ”€ main.dart                          # App entry point

๐Ÿ“ Documentation

See DEVELOPMENT_NOTES.md for:

  • Detailed implementation notes
  • Session progress tracking
  • TODO list with priorities
  • Known issues and technical debt
  • Architecture decisions
  • Developer handoff notes

๐ŸŽฏ Development Status

Current Version: 0.1.0 (Foundation Complete) Last Updated: 2025-11-18 Compilation Status: โœ… Clean (0 errors)

Completed This Session:

โœ… Haptic feedback system โœ… Traffic cars with collision detection โœ… Enhanced truck visuals (20% bigger, tons of chrome) โœ… Screen shake on impact โœ… Particle effects (sparks, debris, smoke, glass)

Lines of Code Added: 1,200+ Files Created: 3 new components Files Modified: 5 core game files


๐ŸŽจ Visual Style

Design Goals

  • Arcade feel with bright colors and exaggerated effects
  • Chrome everywhere on trucks (show truck vibe)
  • Satisfying destruction with screen shake + particles + haptics
  • Clean UI with CB radio aesthetic

๐Ÿ“Š Technical Stack

  • Framework: Flutter 3.10+
  • Game Engine: Flame 1.18+
  • State Management: Provider
  • Persistence: SharedPreferences

Key Dependencies

flame: ^1.18.0          # Game engine
provider: ^6.1.0        # State management
vibration: ^2.0.0       # Haptic feedback
shared_preferences: ^2.2.0  # Save data

Status: Active Development ๐Ÿšง

Keep on truckin'! ๐Ÿš›

About

A game for truckers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors