Add alt code for 2000/thadgavin

This version allows for delaying between the writing of characters (for
curses) or pixels (for SDL). I explained how to reconfigure it in the
README.md file.

This is useful for more modern systems as well as if you're sensitive to
rapid swirling.

Typo fixes in README.md.
This commit is contained in:
Cody Boone Ferguson committed 2023-07-04 09:26:32 -07:00
1 parent 61de38e6f0
commit 3f19712230
5 files changed
+147 -7

No files matched your search

+35 -3
View File
@@ -22,7 +22,7 @@ make
NOTE: the author suggested `-O6` but at least some gcc versions support no more
than level 3 which is what the Makefile has.
To use the SDL version works independentlt from the cueses version:
To use the SDL version that works independently from the curses version:
```sh
make thadgavin_sdl
@@ -37,8 +37,8 @@ Use `thadgavin_sdl` as you would `thadgavin` below.
./thadgavin
```
WARNING: if you are sensitive to rapid movement you should probably avoid
this entry, both the SDL version and the curses version.
WARNING: if you are sensitive to rapid movement or if you want to see better
what is going on then please see the Alternate code section.
NOTE: in curses mode you might want to type `reset` after execution of this
program as the program does not call `endwin()`. Using `reset` will clear the
@@ -51,6 +51,38 @@ screen.
echo "Do or do not. There is no try."
```
## Alternate code:
An alternate version exists which allows you to slow down the printing of the
characters, useful for those with modern systems or those who are sensitive to
rapid moving swirling. To use:
```sh
make alt
```
To make the SDL version:
```sh
make thadgavin.alt_sdl
```
If you wish to reconfigure the delay you can do so like:
```sh
make -DZ=50 clobber alt
make -DZS=5000 clobber thadgavin.alt_sdl
```
Use `thadgavin.alt` and `thadgavin.alt_sdl` as you would `thadgavin` and
`thadgavin_sdl` above.
The default for the curses alt version is 30 and for SDL it is 150000. The
different macros is because the curses version is already slower but it's better
to not tie the two values together. The reason for such drastically different
numbers is because curses is already slower than SDL.
## Judges' remarks: