1
Fork 0

updated README.md

This commit is contained in:
Andy Killorin 2023-09-16 21:04:28 -05:00
parent 8d5c58ea7a
commit f1f58a0400
Signed by: ank
GPG key ID: B6241CA3B552BCA4
2 changed files with 23 additions and 5 deletions

View file

@ -2,15 +2,32 @@
my [entry](https://js13kgames.com/entries/simple-sailing-simulator) to js13kgames 2023 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. > Brave the north wind and search for York, or simply explore.
### Controls ### Controls
+/-: zoom |keyboard | controller | action
A: rudder left |---|---|---
D: rudder right |`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. Your sailboat travels fastest going perpendicular to the wind.
#### Installation
download the [latest release](https://github.com/Speedy6451/simplesailing/releases/latest)
#### Building from source #### Building from source

View file

@ -1,5 +1,4 @@
use std::time::{Duration, SystemTime}; use std::time::SystemTime;
use minifb::{Key, ScaleMode, Window, WindowOptions, Scale}; use minifb::{Key, ScaleMode, Window, WindowOptions, Scale};
extern crate pirates; extern crate pirates;
use pirates::{WIDTH, HEIGHT}; use pirates::{WIDTH, HEIGHT};
@ -133,6 +132,8 @@ fn main() {
Key::Right => keyboard_input(39), Key::Right => keyboard_input(39),
Key::R => keyboard_input(82), Key::R => keyboard_input(82),
Key::Slash => keyboard_input(191), Key::Slash => keyboard_input(191),
Key::E => keyboard_input(69),
Key::Q => keyboard_input(81),
_ => (), _ => (),
}); });