Doomberg-Machine

🎮 Doomberg Machine - Gameplay Guide

Welcome to Doomberg Machine, a creative physics-based puzzle game where you build elaborate Rube Goldberg contraptions to doom an unsuspecting NPC! Think of it as a combination of The Incredible Machine meets dark humor.

🎯 Game Objective

Your mission is simple yet delightfully chaotic: Create a chain-reaction machine that successfully hits the NPC!

The red stick figure NPC stands innocently on the right side of the screen, blissfully unaware of the doom you’re about to engineer. Your job is to place objects and build contraptions that will inevitably lead to their demise through physics-based interactions.

🎨 Available Objects

⚽ Ball

📦 Box

🎴 Domino

📐 Ramp

▬ Platform

⚖️ Seesaw

🌀 Spring

💣 Explosive

🕹️ How to Play

Getting Started

  1. Open the Game
    • Open index.html in any modern web browser
    • For best results, use a local web server (see Technical Guide)
  2. Select an Object
    • Click any object button in the “Objects” control panel
    • The selected button will highlight in purple
    • Status bar will confirm your selection
  3. Adjust Ramp Angle (Optional)
    • When the Ramp tool is selected, use keyboard controls:
      • Press Q to rotate counter-clockwise
      • Press E to rotate clockwise
      • Each press rotates by 15 degrees
    • Current angle displays in the status bar
  4. Toggle Grid (Optional)
    • Click the ⊞ Grid button to enable/disable the grid overlay
    • When enabled, a 40px grid appears on the canvas
    • Objects snap to the nearest grid intersection for precise alignment
    • Grid OFF allows free placement at any position
  5. Place Objects
    • Click anywhere on the blue canvas to place the selected object
    • Objects appear at your click location (or snapped to grid if enabled)
    • You can place up to 100 objects for optimal performance
  6. Build Your Machine
    • Combine different objects strategically
    • Think about gravity, momentum, and chain reactions
    • The NPC is positioned on the right side - plan your trajectory!
    • Use the grid for precise alignment and professional-looking contraptions
  7. Run the Simulation
    • Click the green ▶️ Run Machine button
    • Physics activates and your contraption comes to life
    • Watch as objects interact and (hopefully) doom the NPC
  8. Check Success
    • If an object hits the NPC with sufficient velocity, doom is achieved!
    • NPC Status changes to “DOOMED! 💀☠️”
    • NPC turns black to indicate successful doom
  9. Reset or Clear
    • 🔄 Reset: Restores all objects to their starting positions (only works while machine is running)
    • 🗑️ Clear All: Removes all placed objects to start fresh
  10. View Your Score
    • After successfully dooming the NPC, a score modal will appear
    • Your performance is evaluated on multiple factors
    • Earn 1-3 stars based on your total score!

⭐ Scoring System

When you successfully doom the NPC, your contraption is scored based on four key metrics:

📊 Scoring Factors

🎯 Success (1000 points)

⚡ Efficiency Bonus (up to 500 points)

⏱️ Speed Bonus (up to 500 points)

🎨 Variety Bonus (100 points per type)

🔥 Combo Multiplier (1.0x - 1.6x)

🌟 Star Ratings

Your final score determines your star rating:

🏆 Example Scores

Simple Success (1 Ball, Fast)

Efficient Master (Minimal Objects)

Variety Showman (All Types)

Speed Demon (Fast & Efficient)

To get 3 stars, focus on:

💾 Save/Load System

The game includes a complete save/load system that stores your contraptions in your browser’s localStorage:

Features

Use Cases

Tips

💡 Strategy Tips

For Beginners

Advanced Techniques

Creative Challenges

🎮 Controls Reference

Action Control
Select Object Click object button
Place Object Click on canvas
Delete Object Right-click on object
Toggle Grid/Snap Click “⊞ Grid” button
Rotate Ramp CCW Q key
Rotate Ramp CW E key
Run Machine Click “▶️ Run Machine”
Pause/Resume Click “⏸️ Pause” / “▶️ Play” or Space key
Slow Motion Toggle Click “🐌 Slow-Mo”
Reset Positions Click “🔄 Reset”
Clear All Click “🗑️ Clear All”
Undo Ctrl+Z or Click “↶ Undo”
Redo Ctrl+Y or Ctrl+Shift+Z or Click “↷ Redo”
Toggle Sound Click “🔊 Sound” button
Save Design Type name and click “💾 Save” or press Enter
Load Design Select from dropdown and click “📂 Load”
Delete Saved Design Select from dropdown and click “🗑️ Delete”

❓ Frequently Asked Questions

Q: Why isn’t my object hitting the NPC hard enough?
A: The collision detection requires sufficient velocity. Try dropping objects from higher up, or use heavier objects like boxes for more impact force.

Q: Can I move objects after placing them?
A: Not currently - but you can right-click to delete individual objects and place them again, or use Reset to restore positions or Clear All to start over.

Q: What happens if I run the machine with no objects placed?
A: Nothing! The NPC will just stand there, safe and sound. You need to place objects first.

Q: How do I know what angle my ramp is at?
A: When you have the ramp tool selected, press Q or E to rotate, and the current angle (in degrees) displays in the status bar.

Q: Can objects go off-screen?
A: No - the game has invisible walls on the left and right sides to keep everything in play.

Q: Where are my saved designs stored?
A: Designs are stored in your browser’s localStorage. They persist across sessions but are specific to your browser on this device. Clearing browser data will delete saved designs.

Q: Can I share my contraptions with others?
A: Currently, designs are saved locally. You can tell others the name of your save and describe the machine, but there’s no export/import feature yet (planned for future updates).

Q: Is there a limit to how many designs I can save?
A: Browser localStorage typically allows 5-10MB. Each contraption is small (a few KB), so you can save hundreds of designs before running into limits.

Q: What happens if I save with the same name twice?
A: The new save will overwrite the old one. Use unique names or add version numbers (e.g., “Machine v1”, “Machine v2”) to keep multiple iterations.

Q: How do I use pause and slow-motion?
A: Once the simulation is running, press the Space key or click the “⏸️ Pause” button to pause. Press again to resume. Click “🐌 Slow-Mo” to run at 25% speed for detailed observation. You can even toggle slow-motion while paused - it will activate when you resume.

Q: Can I turn off the sound effects?
A: Yes! Click the “🔊 Sound: ON” button in the Actions panel to toggle sound effects on or off. Your preference is saved automatically and will be remembered next time you play.

Q: What does the Grid toggle do?
A: The Grid button enables/disables a 40px grid overlay on the canvas. When enabled (Grid: ON), objects automatically snap to the nearest grid intersection for perfectly aligned placement. Turn it off (Grid: OFF) for free placement at any position. Great for creating precise, professional-looking contraptions!

Q: Does the NPC fight back?
A: Nope! The NPC is purely a target and doesn’t move or defend itself (until you hit it).

🎪 Fun Facts

🎭 Easter Eggs & Secrets

“Some say if you doom the NPC fast enough, something special happens…”

Experiment and discover hidden behaviors! The game rewards creativity and experimentation.


🎨 Community Ideas

Have an amazing contraption you’d like to share? Consider:

🔜 Coming Soon?

Keep an eye on the repository for potential future features:


Now go forth and engineer some doom! 💀🎰

Remember: In Doomberg Machine, failure is just another opportunity to try a more creative solution!