Format/typo check 2000/tsoj

This commit is contained in:
Cody Boone Ferguson committed 2023-12-21 12:22:31 -08:00
1 parent d5c99244fa
commit 3371f772dc
1 file changed
+50 -33
+50 -33
View File
@@ -5,8 +5,8 @@ make
``` ```
There is an [alternate version](#alternate-code) which has controls that will There is an alternate version which has controls that will make much more sense
make much more sense to those familiar with vi. to those familiar with vi. See [Alternate code](#alternate-code) below.
## To use: ## To use:
@@ -59,15 +59,13 @@ reverse indentation style.
## Author's remarks: ## Author's remarks:
#### Controls ### Controls
- Movement:\
`w` (forwards), `a` (left), `s` (backwards), `d` (right) - Movement: `w` (forwards), `a` (left), `s` (backwards), `d` (right)
- Fire:\ - Fire: space
`space` - Quit: `q`
- Quit:\ - Pause: `p`, then use any other key to resume
`q`
- Pause:\
`p`, then use any other key to resume
``` ```
/\ /\
@@ -78,20 +76,26 @@ reverse indentation style.
``` ```
#### Compile and run ### Compile and run
###### Linux
#### Linux
``` ```
cc -std=c99 -O3 prog.c -o prog cc -std=c99 -O3 prog.c -o prog
./prog ./prog
``` ```
###### Windows #### Windows
The only way I found to make it work is to use [MSYS2](https://www.msys2.org). When using the MSYS2 shell you can install gcc via pacman.
The only way I found to make it work is to use [MSYS2](https://www.msys2.org).
When using the MSYS2 shell you can install gcc via pacman.
``` ```
cc -std=c99 -O3 prog.c -o prog cc -std=c99 -O3 prog.c -o prog
./prog.exe ./prog.exe
``` ```
#### Warnings #### Warnings
- `-Wno-missing-prototypes` - `-Wno-missing-prototypes`
- `-Wno-shorten-64-to-32` - `-Wno-shorten-64-to-32`
- `-Wno-sign-conversion` - `-Wno-sign-conversion`
@@ -106,24 +110,37 @@ cc -std=c99 -O3 prog.c -o prog
- `-Wno-empty-body` - `-Wno-empty-body`
- `-Wno-misleading-indentation` - `-Wno-misleading-indentation`
- `-Wno-maybe-uninitialized` - `-Wno-maybe-uninitialized`
- You may experience a mild [motion aftereffect](https://en.wikipedia.org/wiki/Motion_aftereffect) when playing for too long - You may experience a mild [motion
#### High score aftereffect](https://en.wikipedia.org/wiki/Motion_aftereffect) when playing for
Score will be shown in the top left corner.\ too long.
My best was **156**. If you beat that I'll send you the image of a very expensive chocolate.
#### Features
- Procedural star generation ### High score
- Very space-efficient for-loops
- No use of `!=` or `==` Score will be shown in the top left corner.
- Smooth rendering even on slow terminals My best was **156**. If you beat that I'll send you the image of a very
- Advanced ascii-art expensive chocolate.
- Cutting edge physics engine and collision detection
- Probably not many segfaults
- Every letter in the English alphabet has a variable or function named after it ### Features
- Not a virus
- Runs on my machine - Procedural star generation.
#### Tips - Very space-efficient `for` loops.
- Adjust your terminal size for different experiences - No use of `!=` or `==`.
- Run this program in a virtual console to immerse yourself in the game - Smooth rendering even on slow terminals.
- Advanced ASCII art.
- Cutting edge physics engine and collision detection.
- Probably not many segfaults.
- Every letter in the English alphabet has a variable or function named after
it.
- Not a virus.
- Runs on my machine.
### Tips
- Adjust your terminal size for different experiences.
- Run this program in a virtual console to immerse yourself in the game.
## Copyright and CC BY-SA 4.0 License: ## Copyright and CC BY-SA 4.0 License: