Space Battle Arena

A Programming Game in Java for AP CS Students.

Download Client Jar Java Docs Download Server (Windows) View on GitHub

Server Usage / Shortcuts


The server is a graphical client which is a window into the universe and displays what is occurring.

It has many functions to help interpret what is occurring, manipulate the world, or display general types of information about games and tournaments.

The following information will explain keyboard shortcuts as well as various information about the different types of modes and features available.

Keyboard Shortcuts

Display Toggles

Key Description
I IP Address
P List of Connected Players/Players in Round
S Stats on Objects
N Name on Ships
G Game Info
T Tournament Bracket
R Round Time

General Keys

Key Description
ESC Quit
Space Start Game / Round (see Game:autostart setting)

Debug Keys

Key Description
D Debug Mode
L In Debug Mode, Toggles Log Message Display
H Show Application Threads

View Keys

Key Description
Z Toggle Zoom
Up/Down/Left/Right Pan the View when Zoomed In
M Toggle Scrolling with Mouse on Edge of Window
MOUSEDOWN Zoom In / Re-center View

Tracking Modes

Key Description
PageDown/PageUp Track Next/Previous Player
END Stop Player Tracking
Y Toggle Dynamic Ship Tracking

'God' Commands

Key Description
A Add Object Mode
K Destroy Object Mode
E Explosion Mode
V Move Ship Mode

Debug Mode

Debug mode is useful for getting more insight into what may be occurring between some objects in the world. Yellow circles show the Radar Range of ships. Blue circles show the Gravity Wells of Planets and Black Holes. Red lines from the ship show its Velocity vector.

Tracking Modes

Using PageUp/PageDown, you can select a specific player to track. In this mode when zoomed in, the camera will continue to follow the specified player. Also, in debug mode with logging turned on, only output for this ship will be shown.

When a player is being tracked, a display will be shown in the bottom-right corner with information about the ship's current status as well as the commands it is currently trying to execute.

The Dynamic Ship Tracking mode will switch between ships to show whoever happens to have the highest score in the current game.

When in tracking mode, clicking another ship will switch tracking to that ship instead. (It will turn off dynamic camera mode as well.)

'God' Modes

There are four independent modes that allow you to manipulate the SBA world while it is running. Left-Click will perform the action and exit out of the mode. Middle-Click will perform the action but remain in the same mode (useful for performing the same action multiple times). Right-Click will close whatever mode you're in.

The first command 'A' allows you to add objects such as Asteroids, Planets, Black Holes, and Bubbles (if playing King of the Bubble). It can add any object which has been configured to be spawnable within the default Universe or the current game. The Mouse Wheel can control scrolling through this list.

The next command 'K' allows you to click on any object in the world to destroy it.

The next command 'E' will cause an explosion force with the clicked location being the origin. Everything within a nearby radius will have an outwardly force applied to it.

The finally command 'V' only works on whichever ship is currently being tracked (see above). When activated, the ship will be moved to the clicked location.