Urgent.News

What's breaking now, across thousands of outlets.

Tech

Mid-air flips and side nozzles: selling flight without rewriting the hitbox

In a landscape browser runner, a jump that only changes Y position feels like a hop. A flip that rotates the car, keeps underbody jets lit, and throws mist from the side nozzles feels like flight. In CGT Rocket X Racer — a fan-made rocket-car runner for desktop browsers — we spent a stretch making that mid-air flip read as intentional without letting the cosmetics decide when you live or die.…

In the world of browser-based racing games, a seemingly simple jump can often feel mundane. However, in the fan-made game CGT Rocket X Racer, the key to making the mid-air flip feel intentional lies in a series of carefully crafted mechanics. The controls are straightforward, with players using A/D for lane changes, W or the Spacebar for the jump-flip, S for a ground roll, and Shift for boosting. Notably, the boost has no cooldown, adding an extra layer of excitement to the gameplay.

The flip itself is designed to be a decisive move, not a hover. The camera stays in a fixed position, and the flip occurs over a fixed window, meaning there's no mid-flip cancellation that allows the player to hover above obstacles. The side nozzles are simply markers, emitting mist based on their position relative to the car's mesh. Underbody hover jets remain lit throughout the flip, maintaining the visual illusion of flight.

Collision detection is handled separately from the visual effects. The flip uses the same capsule family as the ground collision, raised and slightly rotated to match the car's orientation. This ensures that the visual effects, such as mist and hover jets, align with the actual collision detection. The game runs on Godot's Compatibility renderer and the no-threads web template, which allows it to run on a wider range of desktop machines without sacrificing visual fidelity.

Despite these constraints, the team behind CGT Rocket X Racer has managed to create a smooth and enjoyable flip experience. They verify the flip's clearance offline against various obstacles at different speeds before shipping the timings. The game's browser engine ensures that only pre-approved flips are played back, preventing any jitter or pre-queued moves that could disrupt the gameplay.

The flip's success is crucial to the overall loop of the game. It ensures that collecting parts, such as body, chip, motor, thrust, and energy, remains challenging and rewarding. The results screen reflects the player's performance, highlighting any damage taken during the race. With these mechanics in place, CGT Rocket X Racer offers a satisfying and exhilarating browser racing experience.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Kubernetes: presupuestos de tiempo para correo en CI

Un pipeline de CI puede tardar varios minutos y aun así terminar con un mensaje poco útil: “no llegó el correo”. En una prueba que usa un disposable email address , ese fallo no dice si la aplicación…

  • Each test stage should have a defined time budget for diagnosis
  • Collect four signals: worker restarts, pod age, queue depth, correlation
  • Use unique addresses per execution to isolate inbox for verification

Five Nines Availability Architecture: What Single-Region, Multi-Region, and Multi-Cloud Designs Can Deliver

99.999% availability allows about 5 minutes 15 seconds of downtime per year, or about 26 seconds per month. That budget includes every failed deploy, certificate expiry, DNS misconfiguration, and…

  • Five nines availability demands multi-cloud, multi-region design
  • Single-region, single-cloud can only achieve three to four nines
  • Cross-provider multi-region designs are the only tier for five nines

More from Thursday 22 October →