Victor's Devblog

If you are interested to receive those weekly articles as a newsletter, poke me offline! Automated subscription is disabled because of bots...

Otherwise, Atom feed is here! Copy feed URL

Improved Air Controls

This week I worked on improving air control, and control in general.

Gameplay Fixes & Improvements

Control

Too easy to lose control of the car's roll after a jump: now braking in the air also locks roll (in addition to pitch lock from last week).

Once a vehicle goes airborne, there is no controlling how far it goes: added a new drag force applied to the vehicle and modulated by throttle input.

With throttle engaged while landing from a jump, sometimes the vehicle unexpectedly bumps (gain of grip is too sudden and relative ground-tire speed is big leading the car to suddenly accelerate): implemented progressive grip loss/gain when going airborne/landing and added wheel-spin coupling while airborne (an airborne wheel will slowly converge towards the speed it would have if perfectly rolling without sliding on some ground below it).

Camera

When airborne, camera's up is car's up from when car left the ground, which is odd when car left the ground from a banked turn: made camera's up slowly converge towards world's up while airborne.

New Input

As mentioned in previous newsletters, I decided to implement a new input that lets the player switch into a "special aero mode" with different downforce strength (higher by default).

This unlocks new kinds of gameplay, such as increasing downforce on hills to keep grip or in the air to land faster, but it will be even more useful when the upcoming roguelike gamemode is implemented.

Here is a video showcasing the various changes (better control upon landing, better camera follow, special downforce input):

Deploying The Game

Steam

I'm slowly getting ready to test the game more intensely (for now by sharing keys to friends and relatives, sometime through a real playtest) so I decided to continue the setup of my Steam application. Luckily Claude was here to help and I was able to quickly navigate through Steam's API to make a private version of my game accessible through Steam.

This allowed me to test it on my Steam Deck to increase my coverage (it's also nice to know it works on one of the most popular handhelds): turns out Steam Deck uses an AMD GPU but I was using Nvidia-only shader features I then had to replace with cross-vendor solutions. Luckily that was it for unexpected crashes & non-cross-platform issues.

It's running at 30fps with everything maxed out.

Packaging

Releasing a build on Steam made me face (again) a very annoying flaw of my codebase: I don't have any sort of packaging/cooking step that allows me to collect all data the game currently uses, and instead I have to manually fetch a couple hundred megabytes of data from the few gigabytes my workspace contains.

For this reason, I started working on a better framework that would allow me to collect data dependencies automatically to prepare and package a build. More on it next week.