> ## Content Index
> Fetch the complete content index at: https://devlog.bujingames.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Banchou, day 1 (13 Nov): a brawler, a boxing rework, and a TV that plays real TV
- URL: https://devlog.bujingames.com/banchou-day-1-13-nov-a-brawler-a-boxing-rework-and-a-tv-that-plays-real-tv/
- Published: 2026-11-14T04:03:55.000Z
- Updated: 2026-12-01T19:49:12.000Z
- Description: Banchou is a delinquent brawler RPG in the spirit of Kenka Banchou and River City Ransom. It's set in Higashi-cho, a small Japanese neighbourhood: you, two AI allies, and rival gangs. It's built in Godot 4.7 with C#. Today was the first commit, and a lot happened after it.
- Author: Jin
- Tags: banchou, devlog

Banchou is a delinquent brawler RPG in the spirit of Kenka Banchou and River City Ransom. It's set in Higashi-cho, a small Japanese neighbourhood: you, two AI allies, and rival gangs. It's built in Godot 4.7 with C#. Today was the first commit, and a lot happened after it.

## The skeleton

I split the game into two halves from the start:

- **Sim/**: engine-free game rules. The clock, NPC schedules, stats and growth, damage, turf, reputation, shops and saves. It's all plain C# covered by xUnit tests (46 on the first commit, 68 by evening).
- **Scripts/**: the Godot side. Procedural block-person characters, the town builder, day/night lighting, a frame-data fighter state machine, and ally and gang AI.

Everything else is JSON in **Data/** and gets validated at load: 26 NPCs with routines, 3 gangs, moves, items and shops. An env-var-driven autotest boots the game, plays a scripted fight and takes screenshots. I lean on it a lot.

## Combat, take two

The first playtest felt bad. It was spammy, gave no feedback, hits didn't connect, and blocking didn't cover the head. So I rebuilt combat around boxing the same afternoon:

- **Per-hand controls.** Left and right click (or the triggers) throw that hand. Direction picks the punch: none is a jab, toward is a straight, away is an uppercut, sideways is a hook.
- **Free-form combos** with input buffering. Switching hands chains sooner.
- **Hard lock-on** with opponent-relative footwork and a circle strafe that holds distance.
- **Solved poses.** I wrote small forward-kinematics scripts (`pose_solver.py`, `punch_solver.py`) that solve guard and punch-impact poses on the rig, with clearance checks so gloves don't clip through heads. Move reach is fit to where the hands actually land. Straights were about 0.2 m short and buried the gloves in faces.
- **Slips, sways and ducks** with a counter window, plus a "catch": raise your guard within 0.15 s of impact to take no chip damage and open a counter. That rewards timing over holding block.

## Making the AI fair

The AI got **tells**. It eases into a wind-up and holds it. Heavy shots glint amber, unblockables glint red, and hitting a tell counts as a counter. It also mixes in feints, quick jabs and delayed tells.

Its defence works on a **human reaction delay**: it only "sees" a strike after a jittered reaction time, so fast shots get through. It covers up after taking hits, learns an opener you keep using, and sometimes guesses under pressure and guesses wrong. The autotest logs how the AI handled each of my punches (landed, blocked, caught or slipped), so I can tune from numbers.

Two camera fixes. At punching range the lock-on view looked straight down the line between the fighters, so my own body hid the opponent. It now orbits off the right shoulder at an angle that widens as the gap closes. Allies standing between the camera and the fight fade to see-through.

## Room 203

Ryuji has a home: Kotobuki Apartments #203\. You walk in from the street. It has a futon (sleep until 07:00), a **Win95-style PC** running a browser I wrote, "NetVoyager", that reads tiny HTML sites from `Data/web`, and a **CRT TV**.

The TV shows **live IPTV**. It runs an in-process libav decoder on a background thread: HTTP MPEG-TS in, H.264/AAC decoded, scaled and resampled, with audio-master A/V sync through Godot's `AudioStreamGenerator`. When the stream falls behind it rebuffers instead of stuttering, and it re-tunes after losing the signal. Watching actual TV on a 90s CRT inside the game is very satisfying.

One bug from that work: the HUD's fade and full-screen overlays never appeared. Their controls under `CanvasLayer`s had a size of 0×0.