1mod content;
7pub mod model;
8mod view;
9
10use ferravex_arcade::{Color, Conf, Meta, window};
11pub use model::Game;
12
13pub const META: Meta = Meta {
15 id: "signalbox",
16 title: "Signalbox",
17 subtitle: "Train routing",
18 controls: "Left/Right Select | Act Operate | X Run/Pause | C Retry",
19 help: &[
20 "Send each train to the platform matching its colored letter.",
21 "Click points to pick a branch; dashes show the route.",
22 "Click a lamp: green admits one train. Meeting trains crash.",
23 "X stops the clock to plan. Late trains cost stars.",
24 ],
25 accent: Color::new(0.92, 0.73, 0.40, 1.),
26};
27
28fn conf() -> Conf {
29 window(META.title)
30}
31async fn game() {
32 ferravex_arcade::run::<Game>(META).await;
33}
34ferravex_render::game!(conf, game);