summaryrefslogtreecommitdiff
path: root/2026/games/rpc2dot0/src/lib.rs
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2026-08-26 23:47:59 -0400
committerLLLL Colonq <llll@colonq>2026-08-26 23:47:59 -0400
commit0d2d8cd897e94bd94e0b3ae7c6ce9aa580a44a0a (patch)
treee9039d1c3aedca515d6cb499451d4b73aca4f5fd /2026/games/rpc2dot0/src/lib.rs
parent242943e5b023ce40eb3be826c418a478d4672f78 (diff)
Add a_tension_span
Diffstat (limited to '2026/games/rpc2dot0/src/lib.rs')
-rw-r--r--2026/games/rpc2dot0/src/lib.rs40
1 files changed, 0 insertions, 40 deletions
diff --git a/2026/games/rpc2dot0/src/lib.rs b/2026/games/rpc2dot0/src/lib.rs
deleted file mode 100644
index 31e4d1e..0000000
--- a/2026/games/rpc2dot0/src/lib.rs
+++ /dev/null
@@ -1,40 +0,0 @@
-use crate::constants::{HEIGHT, WIDTH};
-use wasm_bindgen::prelude::*;
-mod assets;
-pub(crate) mod collision;
-pub(crate) mod color;
-pub(crate) mod computer;
-pub(crate) mod constants;
-pub(crate) mod disquette;
-pub(crate) mod effects;
-pub(crate) mod entity;
-pub(crate) mod errors;
-mod game;
-pub(crate) mod math;
-pub(crate) mod message;
-pub(crate) mod random;
-pub(crate) mod state;
-
-#[wasm_bindgen]
-pub fn main_js(is_embedded: bool) {
- teleia::run(
- WIDTH,
- HEIGHT,
- teleia::Options::FULLSCREEN_MOUSE,
- move |ctx| {
- let game = game::Game::new(ctx, is_embedded);
- game.send_op("ready", None, None, None, None);
- game
- },
- );
-}
-
-#[wasm_bindgen]
-pub fn set_difficulty_js(difficulty: f32) {
- teleia::contextualize(|_ctx, _st, game: &mut game::Game| game.set_difficulty(difficulty))
-}
-
-#[wasm_bindgen]
-pub fn receive_op_js(op: String) {
- teleia::contextualize(|ctx, st, game: &mut game::Game| game.receive_op(ctx, st, op.clone()))
-}