# Big Top Bounce: design An original paddle game for the Atari 2600: brick-breaking, a circus big top with balloon targets, and a pinball table three screens tall. Everything here (names, art, sounds, layout) was made for this game. It borrows genres and mechanics only: no layout, art, sound or code of Breakout, Super Breakout, Circus Atari, Video Pinball, Alien Crush, Devil's Crush or Dragon's Fury was looked at or recreated, and no commercial disassembly was read. The design decisions are provisional (Aubrey's brief, 2026-11-20): a human should play it and change what does not play well. ## The table Three flip screens ("floors"), stacked. The ball leaving the top of a floor appears at the bottom of the floor above; falling off the bottom of an upper floor drops it to the floor below. The bat is at the bottom of the floor the ball is on (except on the top floor, below), so a miss on an upper floor costs nothing but height; a miss on the bottom floor loses the ball. | Floor | Name | Background | What is there | Points | | --- | --- | --- | --- | --- | | 0 (bottom) | the brick wall | navy | 8 columns x 6 rows of bricks; level 0 starts with the lower 4 rows, each level adds a row (6 at most) | 10 (bottom row) to 60 (top row) | | 1 (middle) | the midway | purple | a walking clown (tumbles when hit), five bumpers (3 + 2), a row of 8 drop targets | clown 500, bumper 20 (and a speed-up), drop target 100 | | 2 (top) | the big top | dark red | the tent canopy as a roof, three rows of six balloons sliding left and right | balloon 50 | The bricks are **cleared** when all are gone: 1000 points, a "CLEAR!" message, and the wall stays empty until Big Top; its HUD marker widens. The drop targets pay the same 1000 and CLEAR! when all eight are down, and the clear is remembered for Big Top (the middle floor's marker widens), but **the targets come back**: after the same wait as an emptied balloon set (150 frames at level 0, 120, 100, then 80 from level 3), they return one column every 4 frames from the left, and clearing them again pays again. The middle floor always keeps its bat (2026-11-22, Aubrey's second playtest; it had an open net for one revision). When the bricks are cleared and the drop targets have been cleared at least once in the level: **BIG TOP**, 5000 points, an extra ball (9 at most), and every floor comes back harder (one more brick row, faster balloons and clown, a faster base ball speed, all balloon rows and targets full again). **The top floor has no bat.** The ball comes up, bounces among the balloons and off the canopy, and falls back to the floors below: each visit is one burst, and "how many pop this time" is the point of the floor. (Chosen 2026-11-21 with the bot and kept by Aubrey after his second playtest: with a top bat until its balloons were all popped, as first briefed, the bot's ball spent 63% of play up there and Big Top became ten times rarer; see status.md.) The bottom and middle floors always have their bats. **Balloons drift back.** Once every balloon is popped (a 1000 bonus and a "CLEAR!", which does not count toward Big Top), the set waits (150 frames at level 0, 120, 100, then 80 from level 3; counted in fours of frames), then the top row slides in from behind the right wall, one clock every other frame (about 3 seconds to come fully in), each balloon appearing as it clears the wall; it can be popped as it comes. While one row is coming in, the next waits 40 frames, so the set returns row after row. Rows popped one at a time stay empty until the whole set is gone. (src/logic.s MoveBalloons.) **Speed is power (provisional, 2026-11-23, Aubrey's idea: "a faster ball is a stronger ball").** The speed rules stay as they were, but for one: a kick adds two steps, a plain bat hit takes one off toward the level's base speed, step 7 is the cap, and a bumper adds one step only up to step 3 (`BUMP_MAX`; it went to 7 before, and the bot's ball sat at the cap two thirds of the time, so a punch would have been constant). New: - From step 5 (`PUNCH_SPEED`, about 2.8 lines a frame of 1.6 to 3.3) the ball **punches through** balloons instead of bouncing, so it can pop several in a line. - **Every pop spends one step** (never below the level's base speed), keeping the ball's direction and angle. So a ball at 7 punches through at most three balloons (7, 6, 5) and bounces off the next, at 4: a break-through burns itself down. - Getting to 5 takes a kick on a ball that is already quick (bumpers to 3, then a kick; or kicks in a row from the base), so a punch is something to set up, and a slow ball plays as before. Tuned with the bot against `PUNCH_SPEED` 6 with `BUMP_MAX` 4 (shorter break-throughs, at most two pops a pass); both values build with `-D` for comparison. - **The power shows as the colour of the ball and of the walls** on the middle and top floors (the TIA ball is drawn in the playfield colour, so the two cannot differ): grey at steps 0-2, yellow at 3, orange at 4, blue-white from 5, when it punches (NTSC $1C, $3C, $9E; PAL nearest $4C, $6C, $BE; a flame's order, our own). The bottom floor's playfield is the bricks', so it shows no power colour. (Tried first, 2026-11-22, and dropped after Aubrey's third playtest: balloons needing 1-3 hits with the row's colour showing the count. He pictured each balloon changing colour; the kernel can only colour a whole row, because a row's six balloons are NUSIZ copies of two players that share one colour register each, and flicker or multiplexing is ruled out.) (src/physics.s HitBalloons, SpeedDown; src/play_top.s PowerCol.) **The multiplier (provisional, 2026-11-22, Aubrey's idea: "clearing the top give small bonus for future scores for that particular ball").** Each full balloon clear raises the current ball's multiplier one step: 2x, 3x, 4x, 5x at most. Every score after the rise is multiplied: bricks, targets, the clown, bumpers, balloons, the clear bonuses and Big Top. The balloon clear's own 1000 is paid at the multiplier before the rise. A lost ball (and every serve) puts it back to 1x; Big Top does not. It shows on the status line between the ball pips and the floor map as "x2" to "x5" (nothing at 1x). (src/physics.s AddScore, FloorCleared; src/hud.s MultGfx.) **The clown is hit from below only.** A ball falling in from the top floor arrives right where the clown walks; bouncing it straight back up was too fast to follow (Aubrey's playtest). Now such a ball passes in front of the clown. A ball moving down through the clown's lines can only have come from above (the middle floor has no roof) or off the clown itself, so the rule removes exactly that case. (History. The first build refilled a cleared floor at once: the ball lived on the top floor and no Big Top came in 30 bot-minutes. 2026-11-20: cleared floors stayed empty until all three were clear, and the bot reached Big Top within minutes, but in Aubrey's playtest (2026-11-21) the game stalled on empty upper floors, since getting the ball back down to the bricks was hard. 2026-11-21: balloons drift back, the top floor has no bat, the cleared middle floor opened its net (with an OPEN! message), Big Top needed only the bricks and the drop targets, and the clown is hit from below only. 2026-11-22, after Aubrey's second playtest ("more fun now"): the middle floor keeps its bat and its targets come back, the per-ball multiplier, and (for one revision) tough balloons coloured by row. 2026-11-23, after his third playtest: one-hit balloons again, and speed as power (punch-through, every pop spends speed). All values are provisional, chosen with the bot; see status.md.) ## Controls - **Paddle 1** (left port) moves the bat. Clockwise (less resistance) moves it right. - **Paddle button**: on the title, starts a game; while the ball rides the bat, launches it (it launches by itself after 4 seconds); in play, a **kick**: a press arms the bat for 11 frames (it is drawn raised and in yellow for the first 9); a ball hit in that time leaves faster (two speed steps, 7 at most) and one angle class steeper. One kick per press. - **Game Select**: in a game, back to the title; on the title, steps the game number (held: repeats every half second). - **Game Reset**: starts the selected game from anywhere. - **Left difficulty** (SWCHB D6, P0): player 1's bat, B = wide (24 clocks), A = narrow (16). **Right difficulty** (D7, P1): the same for player 2. (DOC: Stella Programmer's Guide, console switches; a2600-python docs/start-here.md. The first build had them the wrong way round; fixed 2026-11-21.) - Colour/B&W: not used. Games: 1 = one player from level 0; 2 = two players alternating from level 0; 3 = one player from level 2; 4 = two players from level 2. Five balls each. In a two-player game the turn passes on each lost ball while the other player has balls. ## Ball physics The ball is 2 colour clocks wide and 4 lines tall, at 8.8 fixed point in x and y. Velocities come from a table of 8 speeds (1.6 to 3.3 lines per frame, a colour clock counted as two lines) x 4 angle classes (15, 30, 45, 60 degrees from vertical), computed in scripts/gen_tables.py. Where the ball hits the bat picks the angle: the bat is split into eight zones; the outer zones send the ball away shallow, the inner ones steep, and the half it lands on picks left or right. So the player aims by where they take the ball. Bumpers add a speed step and bounce by the offset from their centre; a plain bat hit decays the speed one step toward the level's base speed. Walls and roof mirror the ball exactly. Every balloon pop takes a speed step off (to the base at least), and from step 5 the ball pops balloons without bouncing (above, "Speed is power"). ## Video NTSC and PAL60: 3 VSYNC + 33 VBLANK + 196 kernel lines (4 set-up lines, 192 visible) + 30 overscan = 262. PAL50: 25 more lines of VBLANK and 25 of overscan = 312. The VBLANK and overscan waits use TIM64T and poll TIMINT; the timer values sit in the middle of their line (src/bigtop.s), and the harness measures the cycles left after the logic every frame (worst case about 690 in VBLANK and 1100 in overscan). HUD (22 lines): six 8x8 characters with the two players and VDEL (the score, or a message: PLYR 1, PLYR 2, CLEAR!, BIGTOP, OVER, in the score's place), then a status line: balls in reserve as pips (left), the multiplier ("x2".."x5", player 0 at double width, in the pips' colour, middle) and a three-floor map (right; the current floor full width, wider markers for the bricks cleared, the drop targets cleared this level, and the top floor while every balloon is popped). Play area (170 lines): each floor's kernel is a list of bands (src/bands.inc, play_low.s, play_top.s). The ball is the TIA ball, drawn on every line; the bat is player 0 at quad width; balloons are both players at three copies each; the clown is a player with a colour per line; bricks and drop targets are an asymmetric playfield with the walls merged into it. Nothing is multiplexed, so nothing flickers. Known look: the brick rows' playfield colour also colours the walls beside each row (the walls are the same playfield, and the brick loop has no free cycles to switch the colour twice a line). Paddle: the capacitors are dumped (VBLANK D7) through VBLANK, the HUD and the first 59 play lines, released on play line 59, and every play line after that runs a 9-cycle test of INPT0 D7 (DOC: Stella Programmer's Guide, "Dumped input ports"), remembering the last line on which the pot was still charging. One line is one bat position. With the board's model (380 lines at 1 MOhm, DOC: nocash via a2600-rust-fast controllers.rs), the bat covers paddle positions 0.00 (bat at the right) to about 0.28 (bat at the left; beyond that it stays at the left). A frontend that maps a mouse over the whole picture to the whole knob should map it to about 0..0.30 for this game. A one-line step is taken only on the second frame in a row, so a reading wandering by a line does not shake the bat. ## Banks (16K, F6) | Bank | Link address | Holds | Used | | --- | --- | --- | --- | | 0 | $D000 | frame loop, logic, physics, sound, kernel preparation | 3.2K | | 1 | $F000 | HUD + middle and top floors' kernels and graphics | 3.3K | | 2 | $B000 | title kernel and graphics | 1.4K | | 3 | $9000 | HUD + bottom floor's kernel, font, bat graphics | 3.4K | Each bank ends with the same 64-byte stub (bank switches, F6 hotspots, vectors), so the console may start in any bank. 16K is far more than needed; the floors were put in separate banks so each kernel has room for page-aligned loops. 8K F8 would probably fit (about 11.7K used, partly padding); not tried. ## Sound Channel 0 plays the play sounds (wall, bat, kick, brick by row, pop, bumper, clown, drop target), channel 1 the longer ones (floor up and down, ball lost, start, clear, Big Top fanfare, game over). All effects are original step lists in src/sounds.s. No human has listened to them. ## Title The title screen shows the last game's score (in a two-player game the two scores take turns), a striped tent roof, BIGTOP BOUNCE in two colours, a row of sliding balloons, the clown, GAME n and a ring. ## Tools - `scripts/build.sh`: generates the tables (scripts/gen_tables.py) and builds NTSC, PAL60 and PAL ROMs with ca65/ld65 (V2.18 - Git 5552824, as the binaries report; the local install directory is misnamed cc65-2.19). - `scripts/check.sh`: the gate (see README). - `tools/harness`: Rust, on the family's a2600-rust-fast board: line count of every frame, timer margins, a paddle bot, pixel probes, PNGs. The probes compare where the bat, ball, clown, bumpers and balloon rows are drawn with where RAM says they are (every 7th frame, skipped where the ball covers the probed line), and on the top floor that no bat is drawn. Both commands report the stack's lowest byte (RAM ends at $F4; the stack has reached $F8). The bot also counts floor shares, falls from batless floors, balloon refills, and middle-floor entries from the top that go back up within 30 frames (and how many of those the clown sent), balloon and drop-target clears per ball, the highest multiplier each ball reached, every game's final score, pops made through and bounced, punch-through events and their pops, the speed step of every play frame and the runs at or above the punch threshold. The probes also check the power colour on the right wall and find the ball in it. The first session's `calib` command (which measured the positioning constants) was lost in a reboot; the probes are what now checks those constants. - `scripts/colours.py`: picks the PAL colour nearest each NTSC colour from the board's palettes (MAME's BSD-3 tables, dumped locally by `bigtop-harness palettes`; the dump is not committed).