HexGL is a futuristic racing game by Thibaut Despoulain (BKcore), built with Three.js and WebGL. You fly a hovering ship around a neon track called Cityscape. A race is three laps against the clock, and your total time is shown at the end. Your browser needs WebGL; without it, the Start button says WebGL is not supported.
Setting up the race
The start menu has options that change each time you click them. Controls cycles through Keyboard, Touch, Leap Motion Controller and Gamepad, and Touch is preselected on touch devices. Quality goes from Low to Very High, which is the default. HUD turns the speed, shield, time and lap readouts on or off. After you click Start, a help screen shows the controls for the method you chose; click or tap to load the track.
Driving controls
| Action | Keyboard | Touch |
|---|---|---|
| Accelerate | Hold ↑ | Hold the right half of the screen |
| Steer | ← / → | Virtual stick on the left half |
| Left airbrake | Q or A | — |
| Right airbrake | D or E | — |
| Restart the race | Esc | Three-finger touch |
W and the Down arrow do nothing. With a gamepad, the left stick steers, and the acceleration control and the two triggers handle speed and airbrakes.
Shield, boosts and the finish
Each race starts with a full shield. Every wall hit costs shield, and the damage grows with the square of your speed, so a scrape at top speed hurts much more than a slow bump. A hit also cuts your speed and cancels any boost. When the shield runs out, the ship is destroyed. The race also ends if you fall off the track. Boost pads on the track give a burst of extra speed that fades away. "Final lap" appears when you start lap three, and crossing the line after it shows your total time.
Racing tips
- In tight corners, use the airbrake on the inside and steer the same way. An airbrake on its own turns you only half as fast.
- Airbrakes also slow you down, so let go as soon as the nose points down the straight.
- Stay off the walls after a boost pad, since a hit cancels the boost and costs more shield at high speed.
- Learn where the boost pads are on the first lap, then line up for them on laps two and three.
- If the race stutters, choose a lower Quality setting before you start.
More fast-paced games are in our arcade games section. HexGL was created by Thibaut Despoulain (BKcore) and is released under the MIT License.
