All notes

Neon Pachinko Turf War — Game Rules & Features

note

Neon Pachinko Turf War — Game Rules & Features


Table of Contents

  1. Overview
  2. Goal & Win/Loss Conditions
  3. Factions & Battlefield
  4. Start Menu & Custom Parameters
  5. The Pachinko Engine (Growth)
  6. Attack Skills
  7. Turrets & Combat
  8. Projectiles: Bullets & Big Balls
  9. Shields
  10. Territory (Paint Floor)
  11. Time Flow: Reinforcements, Unlocks & Tier Multipliers
  12. Controls
  13. Parameter Reference

1. Overview

  • Genre: zero-player auto battler / idle spectator
  • Factions: 4 (magenta, cyan, violet, volt yellow)
  • Core loop: grow a ball's number → multiply it on layer 1 → trigger a skill on layer 2 → paint and fight in the arena → expand territory and destroy enemy turrets
  • Run: open index.html in a browser (or serve the folder with any static file server). No dependencies; the game is split into index.html, style.css, and game.js.

After the game loads, a setup menu appears. The battle runs entirely on its own once started — just watch the four factions develop, fight and absorb each other.


2. Goal & Win/Loss Conditions

A faction can die in two ways:

  1. Turret destroyed — when both its shield and hull HP reach 0, the faction is eliminated immediately.
  2. Total loss of territory — when the faction owns 0 grid cells, a 3-second grace period starts; if it fails to reclaim at least one cell within 3 seconds, it is eliminated.

On elimination:

  • all of that faction's balls, bullets, big balls and shields are removed;
  • its territory reverts to neutral dark-blue ground.

Victory: the last surviving faction wins, and a victory banner is shown.


3. Factions & Battlefield

FactionTagColorTurret
MAGENTAM#FF2EC4top-left
CYANC#00E5FFtop-right
VIOLETV#9D4DFFbottom-left
VOLTY#FFE600bottom-right
  • The four turrets sit at the arena corners. Each barrel continuously sweeps a 100° arc facing the arena center (about a 6-second round trip), so its fire can reach the other three turrets.
  • The arena ground is dark blue (#0a1530) with a large blue grid (56 px major lines, plus a faint 28 px mid-line). Territory is painted over it as semi-transparent neon paint.

4. Start Menu & Custom Parameters

Before each game a setup menu pops up in the center. Every battle parameter can be customized; any field left at its shown value (or filled with an invalid value) simply uses the standard default.

ParameterDefaultEffect
Initial Shield300turret shield capacity
Turret HP2500turret hull health
Fire Interval (s)0.85auto-fire cooldown
Reinforcement Interval (s)90seconds between bonus balls
Max Balls / Faction4ball population cap
Starting Balls / Faction1balls each faction begins with
Big Ball Min Speed110big-ball speed floor
Big Ball Max Speed170big-ball speed ceiling
Bullet Lifetime (s)20normal/upgrade bullet TTL
Omni Bullet Lifetime (s)14omni-skill bullet TTL
Limit Unlock Interval (s)120seconds per power-cap unlock
  • DEFAULTS restores all fields to the standard values listed above.
  • START GAME applies your settings and immediately begins a fresh battle.
  • The RESTART button (or R) during a game keeps the same settings and starts a new battle.

Safety clamps: fire interval ≥ 0.1 s; ball counts are integers in 1–20; big-ball max speed can never drop below min speed.


5. The Pachinko Engine (Growth)

Each faction owns a pachinko engine on the left side — the source of all its forces.

5.1 Ball population

  • Each faction starts with 1 ball carrying the number 1 (configurable).
  • Every 90 seconds (configurable) each surviving faction gains one new number-1 ball.
  • A faction may hold at most 4 balls (configurable, 1–20); reinforcement stops at the cap.

5.2 Two layers

  • Balls fall under gravity, bouncing through peg arrays and short sliders.
  • Layer 1 (multipliers): landing in a multiplier slot multiplies the number, then the ball returns to the top to keep growing.
  • Layer 2 (skills): landing in one of the four skill slots triggers that skill using the current number, after which the ball's number resets to 1 and it restarts from the top.

5.3 Layer 1 multiplier slots (weighted width)

Slots are symmetric; wider slots are easier to hit but multiply less:

Slot (left → right)x8x4x2ATTACKx2x4x8
Width weight0.080.130.190.200.190.130.08
  • x2 / x4 / x8: multiply the ball's number (subject to the power cap).
  • ATTACK (center): the ball drops into layer 2.

5.4 Layer 2 — four skill slots

Left to right: SHIELD, OMNI, BIG BALL, UPGRADE (see Section 6).

5.5 Number (power) cap

To control early inflation, ball numbers are capped on a time-based schedule (see Section 11): locked at 2K early, scaling up to 200M after 10 minutes.


6. Attack Skills

When a ball enters a layer-2 slot, its current number becomes the skill's power/resource; the ball then resets to 1.

6.1 SHIELD

  • Creates a circular energy shield ring around the turret (radius 54 px).
  • Shield HP equals the ball's number; triggering the skill again stacks the HP onto the existing shield (a second ring is never created).
  • See Section 9 for how it blocks bullets and big balls.

6.2 OMNI

  • Fires bullets evenly in all directions (360°) from the turret.
  • Bullet count = ball number (up to 320), each bullet living 14 seconds.
  • At later tiers the count is divided by the tier multiplier and each bullet is proportionally stronger, so total power is unchanged.

6.3 BIG BALL

  • Spawns a large energy ball that rolls and crushes across the arena indefinitely — it has no lifetime limit.
  • Size grows with power, radius 14–56 px (14 + log10(number) × 7): number 1 → 14 px, 10 → 21 px, 2K → 37 px, ≥1M → 56 px cap.
  • Speed is clamped to 110–170 (both bounds configurable).
  • Full behavior in Section 8.2.

6.4 TURRET UPGRADE

Grants the turret a temporary high-rate umbrella barrage:

  • Total ammo = ball number; each volley spends 1% of the total (rounded up), which guarantees the upgrade finishes within 100 volleys.
  • Fire rate is doubled (~0.42 s vs ~0.85 s), firing an umbrella spread within ±34° of the barrel.
  • Number of bullets (N): min(10, this volley's ammo quota).
  • Per-bullet damage = (total / 100 / N) × normal bullet base damage (base damage = 1, doubling with the tier multiplier). Fractional damage is allowed; each volley's total damage is exactly total/100 × base.
  • One upgrade therefore fires between 1 and 100 volleys:
Ball numberPer volleyVolleys
11 bullet x0.011 (minimum)
501 bullet x0.550
1001 bullet x1100 (maximum)
2503 bullets x0.83 (last volley 1 x2.5)84
100010 bullets x1100
200010 bullets x2100
20000010 bullets x200100
  • The turret returns to normal single-shot fire when ammo reaches 0.
  • Triggering the skill again during an upgrade adds the new number to the remaining ammo and recomputes both the 1% quota and the damage total immediately (e.g. an active 100-ammo upgrade plus another 100 refreshes the per-volley quota from 1 to 2 bullets and the damage base from 100 to 200).

7. Turrets & Combat

  • Every turret has two durability layers: shield (300 default) and hull HP (2500 default). Damage hits the shield first, then hull; the turret dies only when both are 0.
  • The barrel sweeps its 100° arc and fires automatically (~0.85 s interval, with slight randomization).
  • The turret shows its current shield (◇ value), hull HP, and (during an upgrade) a green UP x remaining-ammo badge.
  • Turret bodies and barrels have dark outlines so they stay visible on any floor color.

8. Projectiles: Bullets & Big Balls

8.1 Normal bullets

  • Small light orbs: a white-hot core with a faction-colored neon halo, readable on any background.
  • Painting: the flight path converts cells to the faction's color; each bullet paints about 4 cells (roughly 20 px of travel on the 5 px grid), then it is spent.
  • Hitting a turret: each contact deals damage and bounces the bullet off; a short cooldown prevents repeated hits. Base damage is 1 and scales with the tier multiplier later on.
  • Lifetime: 20 seconds (14 seconds for omni bullets). A bullet that hits nothing bounces around the arena until it expires.
  • Enemy shields destroy bullets on contact; a faction's own bullets pass freely through its own shield.

8.2 Big balls

The heavy persistent unit of the arena:

  • Roll-and-paint: paints a wide area, losing 1 power per 3 cells painted (about 15 px on the 5 px grid).
  • Vs bullets:
    • enemy bullet → crushed (the big ball loses a little power);
    • own bullet → absorbed, increasing the big ball's number by the bullet's power (subject to the cap).
  • Vs turrets: deals 30% of its own power as damage and loses the same amount; if it destroys the turret it rolls through, otherwise it bounces off.
  • Vs other big balls:
    • same faction → elastic mass-based collision, bounces apart, no damage;
    • enemy faction → 100% power duel: the larger number survives and loses the smaller ball's full number; the smaller ball is destroyed. Equal numbers destroy both.
  • Vs enemy shields → see the shield duel in Section 9.
  • It only disappears when its power reaches 0 or its faction is eliminated.

9. Shields

A circular shield ring around a turret:

  • Enemy normal bullets are destroyed on the ring and the shield absorbs their damage; own bullets pass through freely.
  • Enemy big balls trigger a 100%-HP duel (no more partial chip damage):
    • Shield HP ≥ big-ball power: the ball is destroyed outright and the shield loses the ball's full power (even a 1-HP shield completely stops a weaker ball);
    • Big-ball power > shield HP: the shield breaks, and the ball loses an amount equal to the shield's HP and is bounced away — it cannot damage the turret on that strike; it may attack again later only once the shield is gone.
  • Shield destruction plays a burst effect and a SHIELD BROKEN message.

10. Territory (Paint Floor)

The arena is a fine 5 px grid rendered in a paint / oil style:

  • Each faction initially owns one quadrant (a quarter of the arena).
  • Bullet paths and rolling big balls repaint cells; the front lines shift constantly.
  • Bright edges, deep centers: a cell's color depends on its distance from the edge of its own paint blob — the front edge is bright saturated neon, while larger blobs get progressively darker toward the center (about 70% transparent at the core, revealing the blue grid beneath).
  • Irregular splatter edges: faction borders are noisy tongue/feather-like paint edges with flecks, not straight lines or square mosaics.
  • A faction whose cell count stays at 0 for 3 seconds is eliminated by loss of territory.

11. Time Flow: Reinforcements, Unlocks & Tier Multipliers

All times are game time (affected by the watch speed multiplier).

11.1 Reinforcements

  • Every 90 seconds (configurable), every surviving faction gains one number-1 ball, up to the per-faction cap (default 4).

11.2 Power-cap unlocks

Every 120 seconds (configurable) the number cap increases x10; it stops increasing after 10 minutes:

Game timeNumber cap
00:00 – 02:002,000 (2K)
02:00 – 04:0020,000 (20K)
04:00 – 06:00200,000 (200K)
06:00 – 08:002,000,000 (2M)
08:00 – 10:0020,000,000 (20M)
After 10:00200,000,000 (200M, frozen)

11.3 Global tier multiplier (doubles with each unlock)

At every unlock the following double together, capped at x32 after 10 minutes:

  • turret hull HP — current HP and max HP both x2 (damage ratio preserved);
  • normal bullet damage — per hit 1 → 2 → 4 … (x32 cap);
  • OMNI skill — per-bullet power/cost x2, bullet count halved, total power unchanged;
  • TURRET UPGRADE — the 1% per-volley ammo quota is unchanged, but every bullet's damage doubles along with the normal bullet base damage (see the formula in Section 6.4).
Big balls are not directly scaled — their power already grows with the inflated late-game numbers, balancing naturally against the doubled HP.

12. Controls

The game plays itself; the top bar offers:

ControlEffect
PAUSE / RESUME button (or Space)pause / resume
SPEED 1x / 2x / 4x buttoncycle watch speed
RESTART button (or R)start a new battle with the same settings
PLAY AGAIN (victory banner)start a new battle

The HUD also shows the game title, an mm:ss timer, and the number of factions still alive (or the winner).


13. Parameter Reference

ItemValue
Factions4
Initial shield / turret HP300 / 2500 (doubles per tier, x32 cap)
Turret radius26 px
Barrel arc100° inward, ~6 s sweep period
Normal fire interval~0.85 s (~0.42 s while upgraded)
Territory cell size5 px
Initial balls / reinforcement / cap1 / every 90 s / max 4 per faction
Multiplier slotsx8, x4, x2, ATTACK, x2, x4, x8 (weighted)
Attack skillsSHIELD, OMNI, BIG BALL, UPGRADE
Big-ball radius / speed14–56 px / 110–170
Big-ball damage to turret30% of its power
Enemy big-ball collision100% duel: larger survives minus smaller's number; ties die together
Shield radius54 px (turret radius + 28)
Normal / omni bullet TTL20 s / 14 s
Cells painted per bullet~4 (about 20 px of travel)
Cap unlock schedulex10 every 120 s, 200M cap at 10 min
Tier multiplierx2 every 120 s, x32 cap at 10 min
Territory-zero grace period3 s