A simple and fun car game featuring an interactive LCD display! Control your car to collect coins, all while enjoying sound effects. This game was developed for the MSP430, focusing on interrupts, assembly, and peripheral interfacing.
The rules are simple:
- SW1: Start/stop the car's horizontal movement.
- SW2: Cycle the car's color (Red → Blue → Green).
- SW3: Move the car up.
- SW4: Move the car down.
- Collect as many coins as possible!
- Your score increases with each coin collected.
- A new coin appears in a random location.
- A special sound effect plays for every coin.
- The background engine sound continues running throughout.
- Car Movement: Up, down, start, and stop controls.
- Coin Collection System: Score tracking and random coin placement.
- Sound Effects: Background engine sound and coin collection effects using the buzzer.
- Enhanced Score Display: Larger font (8x12) for better visibility.
- Assembly Integration: Special scoring features implemented in assembly.
- Smooth Game Play: Interrupt-driven inputs and real-time updates.
- Navigate to the
lcdLib
directory. - Clean old compiled files:
$ make clean
- Compile and load the game:
$ make load-car
Working on this project helped me understand:
- How to use the LCD display effectively
- Interrupt handling for buttons
- Sound generation using the buzzer
- Basic game mechanics and collision detection
- Assembly language integration with C
- State management in embedded systems
- Sometimes the coin might spawn close to the screen edges
- Background sound can get a bit repetitive (but it works!)