about summary refs log tree commit diff stats
path: root/docs
diff options
context:
space:
mode:
authorCharadon <dev@iotib.net>2022-06-25 01:55:56 -0400
committerCharadon <dev@iotib.net>2022-06-25 01:55:56 -0400
commitbc664e9a94271463e35e26a7c988757469986ad7 (patch)
tree36a920e2767b10406ca4faa467bf604f602444b1 /docs
parentc020a309846d9d20be1badd28e592da161d1761f (diff)
downloadPong-C-bc664e9a94271463e35e26a7c988757469986ad7.tar.gz
Added a manual
Diffstat (limited to 'docs')
-rw-r--r--docs/controls/gamepad.html9
-rw-r--r--docs/controls/keyboard.html18
-rw-r--r--docs/controls/mouse.html9
-rw-r--r--docs/gamemodes/marathon.html7
-rw-r--r--docs/gamemodes/versus.html7
-rw-r--r--docs/index.html24
6 files changed, 74 insertions, 0 deletions
diff --git a/docs/controls/gamepad.html b/docs/controls/gamepad.html
new file mode 100644
index 0000000..983364f
--- /dev/null
+++ b/docs/controls/gamepad.html
@@ -0,0 +1,9 @@
+<html>
+	<button onclick="history.back()">Back</button>
+	<br>
+	<h1>Gamepad</h1>
+	<hr>
+	The game assumes your gamepad has an xbox controller layout. Up and Down on the D-Pad controls the movement of the paddle, the entire d-pad controls menus such as the title screen and the pause screen, the start button pauses the game, and the A button selects a menu item.
+	<br><br>
+	In multiplayer versus, you can use a 2nd gamepad for the second player.
+</html>
diff --git a/docs/controls/keyboard.html b/docs/controls/keyboard.html
new file mode 100644
index 0000000..0008a9e
--- /dev/null
+++ b/docs/controls/keyboard.html
@@ -0,0 +1,18 @@
+<html>
+	<button onclick="history.back()">Back</button>
+	<br>
+	<h1>Keyboard</h1>
+	<hr>
+	<ul>
+		<li>
+			Singleplayer
+			<br>
+			Up and Down controls the paddle, ESC pauses the game, Arrow Keys controls the menus such as the title screen and pause screen, and SPACE selects a menu item.
+		</li>
+		<li>
+			Multiplayer
+			<br>
+			W and S controls the 1st player paddle, Up and Down control the 2nd player paddle, and the rest is the same as singleplayer.
+		</li>
+	</ul>
+</html>
diff --git a/docs/controls/mouse.html b/docs/controls/mouse.html
new file mode 100644
index 0000000..ab75977
--- /dev/null
+++ b/docs/controls/mouse.html
@@ -0,0 +1,9 @@
+<html>
+	<button onclick="history.back()">Back</button>
+	<br>
+	<h1>Mouse</h1>
+	<hr>
+	To simplify code and my sanity, the game uses a "Software Cursor". Meaning it locks the cursor to the game. While on the title screen and pause screen, you can press ESC to unlock the cursor. In gameplay, the player's paddle follows the mouse, and menu navigation is self-explainatory.
+	<br><br>
+	Mouse will NOT work with multiplayer.
+</html>
diff --git a/docs/gamemodes/marathon.html b/docs/gamemodes/marathon.html
new file mode 100644
index 0000000..4fded3c
--- /dev/null
+++ b/docs/gamemodes/marathon.html
@@ -0,0 +1,7 @@
+<html>
+	<button onclick="history.back()">Back</button>
+	<br>
+	<h1>Marathon Mode</h1>
+	<hr>
+	The goal in Marathon Mode is to hit the ball against the right edge as much as possible to get a high score. All games are saved, up to 131,000 games. You can see all scores in the game, or in the file <code>~/.local/share/iotib/Pong/leaderboard.txt</code>
+</html>
diff --git a/docs/gamemodes/versus.html b/docs/gamemodes/versus.html
new file mode 100644
index 0000000..1acc842
--- /dev/null
+++ b/docs/gamemodes/versus.html
@@ -0,0 +1,7 @@
+<html>
+	<button onclick="history.back()">Back</button>
+	<br>
+	<h1>Versus Mode</h1>
+	<hr>
+	Versus mode can be played in two ways, singleplayer and multiplayer. In singleplayer you fight against an AI paddle, while in multiplayer you fight an opponent locally. In order to play multiplayer you need two gamepads. Alternatively, Player 1 can use the W and S keys, and Player 2 can use the arrow keys.
+</html>
diff --git a/docs/index.html b/docs/index.html
new file mode 100644
index 0000000..e98af3c
--- /dev/null
+++ b/docs/index.html
@@ -0,0 +1,24 @@
+<html>
+	<h1>Pong Manual</h1>
+	<hr>
+	<span style="font-weight: bold;">
+		Table of Contents:
+	</span>
+	<ol>
+		<li>
+			Gamemodes:
+			<ul>
+				<li><a href="gamemodes/versus.html">Versus</a></li>
+				<li><a href="gamemodes/marathon.html">Marathon</a></li>
+			</ul>
+		</li>
+		<li>
+			Controls:
+			<ul>
+				<li><a href="controls/mouse.html">Mouse</a></li>
+				<li><a href="controls/gamepad.html">Gamepad</a></li>
+				<li><a href="controls/keyboard.html">Keyboard</a></li>
+			</ul>
+		</li>
+	</ol>
+</html>