seL4 Level-1 Tutorials - Exercise #10: Game of Pong
Summary
This is just a demonstration of everything presented in exercises 1 through 9. The final result is a game of pong where the player gets to play against the computer. The difficulty of the computer depends on the processing speed of the machine the game is running on. It varies from one environment to another. Under ideal conditions with enough performance, the computer should never lose.
The game looks like the following screenshots:
Build and Run
$ cd /home/$USER/sel4-files
$ container # if using our environment setup
$ cd level-1-tutorials
$ ./init-build exercise-9 x86
$ cd application/build/exercise-9-x86
$ ninja
# RUN THE FOLLOWING IN A SEPERATE TERMINAL OUTSIDE OF 'container'
$ ./simulate -g '-vga std' # use Ctrl + A ⟶ X to quit qemu
# use Ctrl + Alt + G to release mouse from qemu |
Game controls:
- P: player (start game).
- R: reset game and scores.
- W: move player paddle upwards.
- S: move player paddle downwards.
- Q: quit game. (disabled in-code by default)