Screenshot of the LHC Driver game

LHC Driver

I wanted to make a “steady hand” game and realised I could make one based on the beams of the LHC. In this game the player(s) have to control magnets in the \(x\) and \(y\) directions to keep the beams on target. This eventually lead on to the Science Shift Simulator games.

Links

Live page
GitHub repository

Overview

Both beams have a random walk that moves them around the canvas. The player(s) can affect the forces that act on the beam(s) in the \(x\) and \(y\) directions and have to keep the beams within the valid range of the canvas. If the beams are close to each other then the instantaneous luminosity increases, and the integrated luminosity is a measure of the score. When the beams get dumped there is the customary toilet flush!

Challenges

Challenge: I had to make sliders to control the forces.
Solution: This is the first time I made some sliders (that I would later reuse in the Mandelbrot project) and it was trickier than I thought it would be. The event listeners need to keep track of all mouse and keyboard actions to use the slides properly and intuitively. (Resolved.)
Challenge: This was the first two player game I made.
Solution: Making a game that two players can play is a bit tricky, since their controls cannot be allowed to interfere with each other. This was achieved by moving both with the keyboard. (Resolved.)

Screenshots

Here is a screenshot of the game in its current form:

Screenshot of the LHC Driver game
Screenshot of the LHC Driver game

I don’t usually show screenshots of previous stages of development, but here is the first version of the game:

Screenshot of the previous version of the LHC Driver game
Screenshot of the previous version of the LHC Driver game

One thought on “LHC Driver”

Leave a Reply

Your email address will not be published. Required fields are marked *