saltwind/
lib.rs

1//! Saltwind: six islands, six charters, and one ship to win back.
2//!
3//! Rules and headless examples live in [`model`]. The native and browser entry
4//! points share the same fixed-tick model through `ferravex-arcade`.
5mod content;
6pub mod model;
7mod view;
8
9use ferravex_arcade::{Color, Conf, Meta, window};
10pub use model::Game;
11
12/// Player-facing rules and controls shown by the shared lifecycle host.
13pub const META: Meta = Meta {
14    id: "saltwind",
15    title: "Saltwind",
16    subtitle: "Merchant sailing",
17    controls: "1-5 Panels | Arrows Select/Steer | Act Buy/Sail | X Sell/Route",
18    help: &[
19        "Seal six charters, then pay 900 crowns by day 42.",
20        "Buy cargo at Market, pick an island, then set sail.",
21        "Open sea is quick; dodge squalls or reef your sails.",
22        "Each day at sea eats one food. Port planning is free.",
23    ],
24    accent: Color::new(0.83, 0.66, 0.35, 1.),
25};
26
27fn conf() -> Conf {
28    window(META.title)
29}
30async fn game() {
31    ferravex_arcade::run::<Game>(META).await;
32}
33ferravex_render::game!(conf, game);