diff --git a/README.md b/README.md index 192b9e6..c87329b 100644 --- a/README.md +++ b/README.md @@ -2,15 +2,32 @@ my [entry](https://js13kgames.com/entries/simple-sailing-simulator) to js13kgames 2023 +![Gameplay screenshot, a pixelated sailboat exits a well-protected bay](https://github.com/Speedy6451/simplesailing/assets/37423245/16b60975-08f3-4f62-b0df-f78ba95454f5) + > Brave the north wind and search for York, or simply explore. ### Controls - +/-: zoom - A: rudder left - D: rudder right +|keyboard | controller | action +|---|---|--- +|`A`|`D-Left`|rudder left +|`D`|`D-Right`|rudder right +||Left Stick X|rudder +|`+`|`D-Up`|zoom in +|`-`|`D-Down`|zoom out +||Right Stick Y|zoom +|`E`|`B`|raise sails +|`Q`|`A`|lower sails +||Left Stick Y + Left Bumper|control sails +|arrow keys|Right Stick + Right Bumper|pan camera +|`R`|`Y`|reset sailboat +|`/`|`X`|reset camera +|Esc||quit Your sailboat travels fastest going perpendicular to the wind. +#### Installation + +download the [latest release](https://github.com/Speedy6451/simplesailing/releases/latest) #### Building from source diff --git a/client/src/main.rs b/client/src/main.rs index 8d7f5a9..264ecd7 100644 --- a/client/src/main.rs +++ b/client/src/main.rs @@ -1,5 +1,4 @@ -use std::time::{Duration, SystemTime}; - +use std::time::SystemTime; use minifb::{Key, ScaleMode, Window, WindowOptions, Scale}; extern crate pirates; use pirates::{WIDTH, HEIGHT}; @@ -133,6 +132,8 @@ fn main() { Key::Right => keyboard_input(39), Key::R => keyboard_input(82), Key::Slash => keyboard_input(191), + Key::E => keyboard_input(69), + Key::Q => keyboard_input(81), _ => (), });