2016-09-30 23:27:43 +02:00
|
|
|
# TetrOS
|
2016-09-30 23:40:19 +02:00
|
|
|
TetrOS is a small *feature rich* Tetris clone which is written in Assembly.
|
|
|
|
It fits completely into a 512 byte boot sector and is executed during the
|
2016-10-01 18:55:52 +02:00
|
|
|
boot sequence before any operating system is loaded. It does not need any
|
|
|
|
existing operating system. TetrOS is its own operating system, hence the suffix
|
|
|
|
OS in its name.
|
2016-09-30 23:27:43 +02:00
|
|
|
|
2016-09-30 23:40:19 +02:00
|
|
|
This is how it looks like:
|
|
|
|
|
|
|
|

|
|
|
|
|
2016-10-01 19:14:37 +02:00
|
|
|
And this is the complete machine code:
|
2016-10-01 18:55:52 +02:00
|
|
|
|
|
|
|

|
|
|
|
|
2016-09-30 23:40:19 +02:00
|
|
|
## Features
|
2016-09-30 23:27:43 +02:00
|
|
|
* Each brick shape has a unique color.
|
|
|
|
* Blinking cursor is not visible.
|
|
|
|
* Left and right arrow to move a brick.
|
|
|
|
* Up arrow to rotate a brick.
|
|
|
|
* Down arrow to drop a brick.
|
2016-09-30 23:40:19 +02:00
|
|
|
* Game over detection. It stops if a new brick could not be placed.
|
|
|
|
* Selects the next brick at random via a linear congruential generator.
|
|
|
|
* Shows a nice playing field.
|
2016-09-30 23:27:43 +02:00
|
|
|
|
2016-09-30 23:40:19 +02:00
|
|
|
## Features missing due to size limits
|
2016-09-30 23:27:43 +02:00
|
|
|
* Scores and highscores.
|
|
|
|
* Intro.
|
2016-10-01 18:55:52 +02:00
|
|
|
* Game over message and restart without rebooting.
|
2016-09-30 23:40:19 +02:00
|
|
|
* Show next brick.
|
|
|
|
* Increase speed.
|
2016-10-01 18:55:52 +02:00
|
|
|
|
|
|
|
## Similar projects
|
|
|
|
* https://github.com/dbittman/bootris
|
|
|
|
* https://github.com/Shikhin/tetranglix
|
|
|
|
* http://olivier.poudade.free.fr/src/BootChess.asm
|