; ______ ______ __ __ ______ ;
; \ \ \_ _\ \ \\ \ \ \ \ ;
; \ \\ \ \ \ \ \`\ \ \ \ \\ \ ;
; \ \\ \ \ \ \ \ `\ \ \ \ \\ \ ;
; \ `` \ _\ \_ \ \ `\\ \ \ `` \ ;
; \_____/ \______\ \__\ `\__\ \______\ ;
; A tiny game in 512 bytes (bootsector) ;
Dino is a bootsector game (512 bytes) written in 16-bit x86 assembly, that's based on Chrome's t-rex runner game!
The game can now be assembled for CPU 8086!
There are various ways to play dino: you can either use an x86 emulator, or burn the binary to a floppy (or some other medium), and try booting your old pc off of it.
I recommend using an emulator, namely qemu
.
- To use
qemu
, first compile or download the binary (a.bin) from the releases section, then run this command:
$ qemu-system-x86_64 a.bin || qemu-system-i386 a.bin
- If you have
make
,nasm
andqemu
installed, you can just use this command:
$ make run
To compile dino
you'll need to have nasm
installed on your machine.
- If you have
make
installed, just use it like so:
$ make
- If you want to compile by hand, use:
$ nasm -f bin -o a.bin dino.asm
- Alternatively, if you want to generate a 1440KiB floppy disk image, use:
$ make floppy
- Use
shift
to jump - Use
ctrl
to crouch
- I wish to thank nanochess (Oscar Toledo) for inspiring me to make this project and for writing his book (Programming Boot Sector Games), that helped me greatly.
- I'd also like to thank Mateusz, for helping me with creating the sprites included in the code.
Dino: 512 bytes
This README: 2154 bytes (not counting the preview gif)