DEV Community

Cover image for Halloween game using js - Pumpkin Blast
Cody Pearce
Cody Pearce

Posted on • Edited on • Originally published at codinhood.com

Halloween game using js - Pumpkin Blast

Play the Game on CodePen

Pumpkin Blast is a physics-based Halloween launcher game. Click and hold to pump up pumpkins, then release to launch them at floating ghosts and ground buckets. Master trajectory arcs, chain combos for massive multipliers, collect game-changing powerups, and survive endless waves of increasingly difficult targets.

How to Play

  • Click (hold): Pump up power
  • Click (release): Launch pumpkin
  • Mouse Move: Aim trajectory (when aiming mode enabled)
  • T: Toggle trajectory preview line
  • A: Toggle aiming mode (mouse vs fixed 45°)
  • M: Mute/unmute sound effects

Launch pumpkins at targets to score points. Start with 5 pumpkins, earn more by hitting targets. Chain multiple hits within 3 seconds for 2x-6x combo multipliers. Difficulty increases every 30 seconds with new hazards and faster spawning.

The Targets

Floating Ghosts (10-75 points)

White spirits float at different heights. Higher ghosts award more points. Some ghosts move in patterns:

  • Static (white): Easiest targets, don't move
  • Horizontal (cyan): Move in sine waves, circles, or figure-8 patterns (1.5x points)
  • Vertical (red): Bob up and down unpredictably (2x points)

Ground Buckets (15-100 points)

Orange buckets sit on the ground at various distances. Farther buckets award more points. Land pumpkins inside to score.

Hazards and Obstacles

Spikes (Instant Death)

Dangerous purple spike obstacles appear after Level 2. If your pumpkin hits one, it pops instantly with no points. Spikes spawn at random heights and positions to block easy shots.

Canopies (Blocking)

Green protective canopies appear over some targets at higher difficulty levels, blocking direct shots. You'll need to arc over them or find gaps.

The Wall

A stone wall stands in front of your pumpkin launcher. Launch with enough power and angle to clear it, or hit the wall and lose your shot.

The Powerups

Powerups spawn randomly after hitting targets and last 10 seconds:

  • Multi-Shot (yellow): Launch 3 pumpkins in a spread pattern for massive coverage
  • Shield (blue): Protect against spike deaths, plus gain trail particles
  • Double Points (green): 2x score multiplier on all hits
  • Extra Pumpkin (orange): +1 pumpkin to your supply
  • Freeze Targets (cyan): Stop all moving targets for easy shots

The Combo System

Hit multiple targets within 3 seconds to build combos. Each consecutive hit increases your multiplier:

  • 2 hits: 2x multiplier
  • 3 hits: 3x multiplier
  • 4 hits: 4x multiplier
  • 5 hits: 5x multiplier
  • 6+ hits: 6x multiplier (max)

Streak Bonus: Hit the same target type (ghost or bucket) repeatedly for an additional +50% bonus points.

The combo timer bar shows remaining time. Miss or wait too long, and your combo resets.

Progressive Difficulty

  • Level 1: Static targets only
  • Level 2: Moving ghosts (horizontal and vertical patterns)
  • Level 3: Spike hazards and faster spawning
  • Level 4+: Canopies over targets, more hazards, faster gameplay

Top comments (2)

Some comments may only be visible to logged-in visitors. Sign in to view all comments.