prism_foundry/
lib.rs

1//! Prism Foundry: twelve authored optical logic puzzles and a complete restoration campaign.
2//!
3//! The play screen explains itself with light, color and icons: hovering a
4//! device previews its next beam, locks show their channels as colored arcs,
5//! and the workbench tracks pace as stars against a par meter.
6mod content;
7pub mod model;
8mod view;
9use ferravex_arcade::{Color, Conf, Meta, window};
10pub use model::Game;
11/// Static identity and complete rules for the shared campaign host.
12pub const META: Meta = Meta {
13    id: "prism-foundry",
14    title: "Prism Foundry",
15    subtitle: "Laser puzzles",
16    controls: "Arrows Select | Act Rotate | X Undo | C Reset | 4 Hint | 5 Seal",
17    help: &[
18        "Turn mirrors, splitters and filters to light each lock.",
19        "Locks want exact colors: R+G=Y, R+B=M, G+B=C, RGB=W.",
20        "Splitters fork beams. Filters pass R, then G, then B.",
21        "Three stars: at par, no hint, reset or failed seal.",
22    ],
23    accent: Color::new(0.91, 0.73, 0.39, 1.),
24};
25fn conf() -> Conf {
26    window(META.title)
27}
28async fn game() {
29    ferravex_arcade::run::<Game>(META).await;
30}
31ferravex_render::game!(conf, game);