Lands
Many of them are nods to something — a C64 game, a film, a myth. Those notes come from the author’s own memory of 1999, checked where checking was possible; a couple are still unidentified.
How to play
Two players, one keyboard
| Player 1 | W A S D drive, Shift fire |
| Player 2 | ← ↑ ↓ → drive, , fire |
Click the field to take control. Every key is rebindable from the Keys panel, and each player has an optional second fire key.
In-game keys
| F2 | New game |
| F3 | Choose land |
| F5 | Keyboard test |
| F6 | Land editor |
| F7 | Refresh |
| F8 | View playground |
| F10 | Replay |
Not just a duel
Lands come in three flavours: destroy (shoot the other tank), race (laps and checkpoints — Venice, Dakar) and quest (collect treasures). Water, hills, mud, ice and destructible walls all behave differently under the tracks.
Make your own land
The editor
Press F6 in the game for the original land editor: draw rectangles, ovals, circles and
polygons, paint them with the terrain textures, drop treasures, then Export the result as
a land.xya script. Its Help button documents all 73 commands.
The land script
Every land is plain text — geometry plus physics:
pos1 560,425,36; object1 boatred; race ; normalspeed 150; checkpoint 1; rect 520,250,120,30; solid ; rect 130,130,390,190;
That fragment is Venice: two boats, three checkpoints and a big red palazzo.
Sound
Three packs ship with the game and you pick one on the play page. Original is the 1999 recording exactly as it was: 8 kHz, 8-bit µ-law. Restored is that same recording rebuilt at 32 kHz. New is synthesised from scratch, with a distinct voice for each of the five schemes.
Lands pick their own scheme: the mine chimes, the meadow is soft, Soccer gets a referee's whistle. Compare the three packs or audition alternative takes.
Where the name came from
Small green tanks
The name echoes Big Red Racing (Big Red Software / Domark, 1996) — sixteen absurd vehicles, twenty-four courses from Earth to Mars, and network play over a modem or a LAN. It was the game to lose an afternoon to, and sgTANKS took its cue: silly machines, shared screen, someone else in the room.
The network mode that is gone
sgTANKS could be played over a LAN. NetFrame, Communicator and a
small Java server class are all still in the source, and the applet still takes
serverip and serverport parameters. It cannot come back in a
browser: raw TCP sockets are not something a web page is allowed to open. Two players on one
keyboard works exactly as it always did.
About this revival
sgTANKS was written between 1999 and 2001 for Java 1.1 and the <applet> tag, which
browsers dropped years ago. Nothing here was rewritten: the 29 class files compiled in January 2001
are bundled into sgtanks.jar and executed by
CheerpJ, a Java 8 runtime compiled to WebAssembly. The AWT windows,
the µ-law sound effects, the recorded demo replays and the level editor all work exactly as they did.
Two things did change. The applet registered its key handling on the Play button alone, so a click on the playing field left the game deaf; the playground is now a focus owner in its own right. And each player has an optional second fire key. Everything else — physics, lands, editor, replays — is the 2001 code.
The 2013 launcher page is kept as index-2013.html, and the original applet page as tanks.html, for the record.