about summary refs log tree commit diff stats
path: root/docs/controls
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/controls
parentc020a309846d9d20be1badd28e592da161d1761f (diff)
downloadPong-C-bc664e9a94271463e35e26a7c988757469986ad7.tar.gz
Added a manual
Diffstat (limited to 'docs/controls')
-rw-r--r--docs/controls/gamepad.html9
-rw-r--r--docs/controls/keyboard.html18
-rw-r--r--docs/controls/mouse.html9
3 files changed, 36 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>