# Tank Front An original single-player tactical tank game for the Commodore 64, written in Kick Assembler for COMPUTE!'s AI Game Jam. One tank against 3 to 7 CPU tanks: use hills to vanish, pick your targets, and save the super missile for a cluster. ## Build You need Java and Kick Assembler (KickAss.jar). build.bat (Windows: KickAss.jar next to build.bat, or set KICKASS) ./build.sh (Linux/macOS) or directly: java -jar KickAss.jar src/main.asm -o build/tankfront.prg The charset, sprites, map and music tables are already generated (`build/*.bin`, `src/generated/`). Python 3 with Pillow is only needed if you change the art, map or music in `tools/gen_assets.py`. ## Run x64sc build/tankfront.prg (VICE, PAL C64; joystick in port 2) Or on real hardware: `LOAD"TANKFRONT",8,1` then `RUN`. ## Controls | Action | Keyboard | Joystick (port 2) | |---|---|---| | Move | W A S D or cursor keys | Stick | | Fire selected weapon | SPACE (hold for gun auto-repeat) | Tap fire | | Next visible target | T | Hold fire, then release | | Weapon: gun / missile / super | 1 / 2 / 3 | Hold fire and push up (cycles) | | Pause | P | | | Menu: resume, restart battle, new map, sound on/off, quit | F1 (then up/down and SPACE) | Up/down and fire once open | | Start / next battle / retry | SPACE | Fire | A long fire press never shoots. While fire is held the stick doesn't drive. ## Rules in brief - Player: 100 armour. Gun: 1 damage per hit, unlimited, short range, 3-round bursts. Missiles: 25 damage, 20 per battle, one in flight at a time, fly straight at where the target was. Super missile: 75 damage to every tank in a small radius (yours too), one per battle. - Enemies: 50 armour. They only know where you are while they can see you, react after a short delay, aim imperfectly, and retreat to cover when hurt. At most two attack at once; the others flank and wait. - Hills slow tanks and block sight both ways. Logs and wrecks stop shots and tanks. Pits stop tanks but shots fly over them. - Battle 1 has 3 enemies, rising to 7 by battle 5. Armour and ammunition are restored for every battle. ## Files src/main.asm start-up, interrupts, game flow, battle setup src/config.asm every tunable number (damage, ranges, speeds, AI) src/input.asm keyboard matrix and joystick src/player.asm player controls, targeting, firing src/tank.asm movement, collision, turrets src/terrain.asm map, terrain lookups, line of sight, wrecks src/weapons.asm projectiles, damage, explosions, character overlay src/ai.asm CPU tank behaviour src/display.asm sprites, status panel, text, message boxes src/sound.asm music player and sound effects src/data.asm tables and text src/vars.asm variables tools/gen_assets.py generates the art, map and music (all original) tools/minikick.py stand-in assembler used for testing without KickAss.jar tools/c64sim.py 6502 test harness (screenshots, input scripts) tools/soak.py robot player for long automated test runs ## Memory map $0801-$3fff program, tables, variables $4400 screen (VIC bank 1) $4800-$4fff character set $5000-$6fff 128 tank sprite frames (8 hull x 8 turret directions, plain and bracketed) $c000-$c3e7 map buffer (same layout as the screen)