Driver AI in Stunt Car Racer, Commodore 64
This technical breakdown explains how the computer-controlled opponents work in the Commodore 64 game Stunt Car Racer, using game code and race simulations to reconstruct their behavior. Unlike the player’s fully modeled car, an opponent is represented mainly by its position on the track, lane, speed, and three vertically moving spring-mounted wheels. It is kept on the road, cannot be wrecked, and responds to the terrain through wheel compression: it leans on banked turns and can leave the track surface over a crest. Its suspension and starting height are governed by specific routines, while race sections can impose speed limits to help it clear jumps.
Opponent behavior depends on the player’s position and each driver’s habit settings. The computer car steers toward an aim that changes to pass, circle, block, or move aside from the player; on bends it generally targets the road’s middle. After leaving a bend ahead of the player, it may weave for 16 passes, with drivers such as Road Hog doing so more often than Hot Rod. Big Ed, Max Boost, and High Flyer can also randomly hop their front wheels. All drivers share the same engine, but the computer car receives special help: it can be towed from behind the player and can accelerate beyond its usual maximum for jumps. When cars collide, the player’s car takes the damage, while the opponent mainly loses speed. Thus, the apparent personalities arise from small habit values and different swerve frequencies, not distinct engines.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.
More in Other
Massive expansion of immigration detention under new EU deportation rules
The EU’s new Return Regulation expands the grounds and duration for immigration detention, including for children, and increases deportations. Critics warn that surveillance-based alternatives and externalization measures extend coercive migration controls beyond detention centers. (statewatch.org)
Ex-PlayStation boss says "true innovation" would be making a $300 console again
Former PlayStation boss Shawn Layden says the PS6 should prioritize affordability over more processing power, arguing a $300 console would be real innovation. He says rising console prices are shutting out buyers and Sony should focus on making hardware smaller and cheaper. (gamesradar.com)
Show HN: An offline desktop companion to help maintain a healthy blink rhythm
EyesRhythm is an offline desktop app that uses a webcam to track blink rate and regularity, then offers gentle reminders and practice exercises. It also tracks head movement to encourage neck breaks, while keeping video on the device. (eyesrhythm.com)
Major construction ongoing near Iran missile bases, satellite images suggest
Satellite images show Iran building new facilities near the Garmdareh and Shahroud missile bases and repairing damage at at least 12 other military sites. The work follows months of US and Israeli air strikes, according to analysts who reviewed the images. (bbc.com)
Leaked documents show Cisco doubled down on Israeli military deals
Cisco strengthened its Israeli military contracts during the Gaza war, despite protests from current and former employees over the company’s role. Leaked documents describe the effort as a “customer success story” amid reported technical problems in Israeli military intelligence networks. (theguardian.com)