bz.rikers.org — Battlezone Online

Battlezone Online (bzo) is a free, open-source 3D multiplayer tank game that runs in the browser -- on a desktop, a phone or a VR headset -- and plays with BZFlag clients and servers. This server: bzo dev - restarts often.

Controls

One client runs on a desktop, a phone and a headset, so every action has a way in from each of them. The keyboard has the most; touch, a gamepad and the XR controllers carry the actions a match needs, and the Settings menu reaches the rest -- including from a headset, where there is no keyboard at all. This page is also the in-game help's (/ or ?).

Keyboard

Keys are named by where they sit on a US keyboard, and bzo reads them by position, not by the letter printed on them. On another layout a key named here is the one in the same place: Z is the key labelled W on a French keyboard and Y on a German one.

The numeric keypad works as in BZFlag. With Num Lock off its keys are the ones printed under the digits: the arrows drive, 1 is End, 9 and 3 are Page Up and Page Down, and . is Delete. With Num Lock on, a keypad key is the main key with the same character. Keypad Enter shoots either way.

Driving

Chat

View and panels

Hunting

Marking a player puts a cyan ◎ on their scoreboard row, a cyan ring on their radar blip, and a beacon in the sky over them in their own tank colour -- so several marked at once are still told apart at a glance. While one of them is in your sights the HUD says SPOTTED: and a ping sounds once a second from where they are. In Rabbit Chase the rabbit is marked for you, and its beacon is cyan like its ring: everyone is hunting it, so everyone's mark over it says so.

As an observer

As an Observer you have no tank. Drive and turn fly the camera instead, Tab climbs and Space descends, and holding Shift makes drive tilt the view up and down and turn slide it sideways. The camera rests at the eye height of a tank on the ground, and travel stays level however the view is tilted. Pausing and self-destruct do nothing.

Mouse

Shift+M or Settings -> Mouse Steering turns mouse steering on and off. Esc turns it off once it has released the pointer and left fullscreen. Driving never changes it.

The wheel

The wheel acts on whatever is under the pointer:

The targeting box

The two boxes in the middle of the screen are the steering, as in BZFlag. Where the cursor sits relative to their centre is what the tank does:

The boxes are BZFlag's own sizes, scaled to the window. As in BZFlag, the cursor is held inside the box: the first click on the battlefield takes the pointer over and bzo draws the cursor itself. Escape lets it go, and so do a menu, dying, pausing and observing; the next click takes it back. A browser that refuses leaves the cursor free -- the steering stays at full past the box, and the cost is a longer move back to the centre.

With the keys, the mouse keeps whichever axis no key is holding -- see Combining inputs.

Clicks

Left click shoots wherever the cursor is, whether mouse steering is on or not, unless the click lands on the chat panel or a button. Right click identifies. Mouse steering is unavailable with no mouse attached, in VR, and while the on-screen controls are up, since those steer instead; a click that misses one of their buttons does nothing rather than firing.

Combining inputs

Every input drives at once, and nothing switches between them on its own: Shift+M and the Settings rows are the only things that change which ones are on.

Driving is shared out an axis at a time -- forward/back, and turn, each on its own. On each, the first of these with something to say wins:

  1. Keys. A held drive key owns its axis, and holding both of a pair (W and S, or A and D) is a deliberate stop on that axis.
  2. The stick: the XR controllers in VR, otherwise a connected gamepad, otherwise the on-screen stick. Only one of the three is read at a time -- they are not added together.
  3. The mouse, in the targeting box, with mouse steering on.

So you can drive with W while the mouse steers, turn with A/D while the mouse sets the speed, or steer a gamepad's turn while a key holds the speed. A stick let go reads zero and gives the axis to the mouse; the mouse box holds whatever the cursor's place says, which is why it comes last.

Buttons add up. Shoot fires from Enter, a left click, or the stick source's own fire button; jump from Tab or the stick source's; identify from I, a right click, or the stick source's. Any of them will do.

With the autopilot on, the pilot takes the mouse's place, last in line: a drive key or the stick you hold still owns its axis, and the pilot has the rest. So when it is wedged against something you can hold A to turn it out, or S to back it off, while it keeps the other axis, and let go to hand it back -- it carries on from wherever you left it, re-planning its route if you took it somewhere else. Your shots, jumps and drops add to its own. The mouse box does not steer while the autopilot drives: it holds an offset wherever the cursor is parked, so it would never hand anything back.

Menus pause, unless the autopilot is driving. Opening Settings, Help or any other menu starts the pause countdown, and closing it puts the tank back as it was: a tank you had paused yourself stays paused. Until the countdown ends the tank goes on moving, a conveyor or turntable carrying it, as any pause's countdown does. With the autopilot driving, a menu does not pause: the pilot goes on while the menu has the keys, and turning it off from the menu starts the pause then. A hidden window pauses either way.

Three keys at once. Many keyboards cannot report some three-key combinations at all -- the third key's press never reaches the browser -- so a held turn and reverse can swallow a jump (#146). The debug HUD (`) shows how many keys the browser saw held at once, which tells the keyboard's limit from bzo's.

Touch: the on-screen controls

A phone starts with them on; anywhere else Settings -> Virtual Controls turns them on and off.

Everything else -- camera, radar range, chat, hunting, autopilot, pausing -- is a row in Settings, which a tap reaches.

Gamepad

Any controller the browser reports in the standard layout (most USB and Bluetooth pads, and iOS MFi controllers). Plugging one in turns it on; nothing needs setting up.

ControlDrivingIn a menu
Left stickforward/backward and turnmove between rows, change a row
A / Cross, or right triggershootselect
B / Circle, or left triggerjumpback
X / Squaredrop flag
Either shoulderidentify

The sticks have a dead zone of a fifth of their travel, so a pad left on the desk does not creep. The right stick is free.

The pad rumbles when you fire and when your tank dies, as BZFlag's does: a short buzz for a shot, longer for a shock wave, both motors for a laser, and one long, strong shake for a death. bzo adds a light tick as you jump and a bump as you land, harder the further you fell. It rumbles only while it is what you are playing with -- a key or a click hands control back and keeps it quiet -- and never for an observer. Rumble in Settings turns it off. The browser has to support it; Chrome and Edge do.

XR controllers

In VR the controllers are the only input. Turning the tank is independent of where you look.

ControlDrivingIn the XR menu
Either thumbstickforward/backward and turn -- the right stick if both are pushedmove between rows, change a row
Either triggershootselect
A / X (primary face button)drop flagselect
B / Y (secondary face button)open the XR menuback, and close it from the top
Either gripjumpback
Press either thumbstickidentify

Both controllers pulse for the same events as a gamepad's rumble.

Identify is on the thumbstick press because a thumb that is steering presses it by accident, and identifying costs nothing; the menu is on B for the same reason. Typing -- a name, a MOTD -- uses the headset's own system keyboard, raised when the row takes focus; see the README's WebXR section for headsets that have none.

Battlezone Online 1.4.30 · Source, AGPL-3.0