/flappy-game-x86

A simple flappy game running in OS kernel level

Primary LanguageCMIT LicenseMIT

Flappy game in x86

A simple flappy game running in OS kernel level.

You can run it in a x86 virtual machine, load the disk image into floppy drive and start. (Can run without any existing OS)

Using PC Speaker for sound. Supports PS/2 Keyboard & Mouse. Use IDE hard disk for saving data (this will read/write sector 24).

screenshot

How to play:

  • Press Space or left click to jump.
  • Press S to change speed.
  • Press Esc to pause.

Dev-requirements

  • NASM
  • Cross-compiler (like i386-elf-gcc)
  • Python, with library Pillow (for generating assets)
  • QEMU (for testing)

Build from source

To run with QEMU:

qemu-system-x86_64 -drive file=os-image.img,format=raw -soundhw pcspk

To compile the source code and run with QEMU:

make

Assets include font and player sprite, to regenerate them:

make assets

License

MIT