2021-04-22 14:36:51 +02:00
2021-04-18 16:25:26 +02:00
2021-04-22 14:33:32 +02:00
2021-04-18 16:11:38 +02:00
2021-04-18 16:13:04 +02:00
2021-04-22 13:00:50 +02:00
2021-04-22 14:36:51 +02:00

TETRIS-OS: An operating system that only plays Tetris.

screenshot

Video with an explanation of the development process.

Features:

  • It's Tetris.
  • 32-bit (x86)
  • Fully custom bootloader
  • Soundblaster 16 driver
  • Custom music track runner
  • Fully hardcoded tetris theme
  • Double-buffered 60 FPS graphics at 320x200 pixels with custom 8-bit RGB palette

Resources Used

Running

NOTE: This has only been tested in an emulator. Real hardware might not like it.

Mac OS
$ make iso
$ qemu-system-i386 -drive format=raw,file=boot.iso -d cpu_reset -monitor stdio -device sb16 -audiodev coreaudio,id=coreaudio,out.frequency=48000,out.channels=2,out.format=s32
Unix-like

Use the same command as Mac OS, but try with pulseaudio as the audio device.

If you're having issues with no image showing up/QEMU freezing, this is a known bug with QEMU SB16 emulation under GTK. Please read what @takaswie has written in #2 for a workaround.

Windows

Absolutely no idea.

Real hardware

You probably know what you're doing if you're going to try this. Just burn boot.iso onto some bootable media and give it a go. If things break, try disabling all of the music (remove #define ENABLE_MUSIC in main.c) since you probably don't have something with a SB16 in it.

Description
An operating system, but it only plays Tetris.
Readme MIT 468 KiB
Languages
C 68.7%
C++ 23%
Assembly 6.2%
Makefile 2.1%