Dev Log · Anpfiff2, Preparation, Architecture, Measuring
Anpfiff2: why a scaffold comes first
25 to 30 September 2026:
The most important thing first: you cannot play Anpfiff2 yet, and you cannot see it yet. There is no release date and no store page. Since 25 September there has been a project that is a scaffold, with 105 commits in four days. This post describes what is in it and why the scaffold comes first.
What it is meant to become
Anpfiff2 is a football manager for one player, with a high score like Whistle1, in landscape, for phone and PC, with fictional names and an editor. The direction: club life instead of a table. A clubhouse you walk through from room to room, decisions as small scenes, a time budget for each week. The graphics are meant to be pixel art of our own, built from rules: no third-party pictures and no AI graphics. There is no picture of it yet, because the foundation comes first.
Two decisions shape everything else:
- No difficulty setting. How easy it is depends on the club you pick: squad, budget and what the board expects.
- The same rules for everyone. The AI gets no special rights and the player no bonuses. It is measured against plausible football figures, not against Whistle1.
Why not start from zero
The foundation is the functions of Whistle1. The inventory sorted all 184 game scripts with 222,442 lines altogether:
- Take over: 13,095 lines, 6 percent
- Repot (the logic stays, the edges change): 110,186 lines, 50 percent
- New, with the formulas from Whistle1: 99,161 lines, 45 percent
Most of the new lines sit in the interface: 68,045 of the 99,161 lines.
A scaffold that checks itself
The project has five layers, around 50,000 lines of GDScript and 57 test files together. Whoever breaks the rules breaks the test:
- The core is pure. It knows no scene tree, waits for nothing and draws no random number from thin air. Randomness always arrives as a random sequence passed in, so that the same seed gives the same season.
- Modules never call each other directly. They talk through typed events, thirty kinds so far, and through rules.
- Every formula exists exactly once. Market value, form and table sorting are not copies in three screens.
- There is at most one autoload, and at 1,000 lines a file it stops.
- A checking program with more than a dozen rules runs before every commit. Nothing counts as done until it is green.
Behind it lies an experience: a football manager grows in a thousand small rules, and every additional rule must not silently change another.
Numbers on the save
Measured with all 15 countries, 40,516 players and 1,771 clubs on a PC:
- Saving: 3.4 seconds in the first version (JSON), now 0.8
- Loading: 5.7 seconds, now 1.8
- File size: 1.5 MB, now 1.6 MB
The target for saving when the app goes to the background is under half a second. On a PC it is met, on a real phone it is not proven yet. When loading, creating the 40,000 player objects now dominates.
Countries in the background get by with a compact level of detail that needs about half the computing time per match of the full one.
International matches as a module
As a test of the way it is built, national teams were added without the rest moving. Club and national team are both a team, and after the change the same seed gives, bit for bit, the same season as before. There are national squads with selection, international windows without club matches, qualification, a European and a World Championship every four years and a national manager job depending on reputation. Some things are simplified: the World Cup has 32 instead of 48 teams. There is no interface for it yet.
What already runs and what does not
A plain interface for the vertical slice runs: title, new career, office, squad, line-up, matchday with live commentary, table, fixtures, finances. Plus match, competitions, youth, transfers, economy and 80 achievements.
Still missing are the pixel art, the sound, the clubhouse, a date and a test on a phone. The order is fixed: first structure and functions, until a game can be played from the first week to the last, then content and design.
Whoever builds a game meant to run for many years starts with the rules they will not want to change later.
Warm regards from the workshopDigitale Manufaktur Rudolstadt