summaryrefslogtreecommitdiff
path: root/2026/framing/src
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2026-05-29 14:11:30 -0400
committerLLLL Colonq <llll@colonq>2026-05-29 14:11:30 -0400
commit7409691cb134eef99a7d9e53b57a1cba41a7ca09 (patch)
treee8266dee856f98a4d7c45a75f4cf395b003c5fa4 /2026/framing/src
parent6b1414844728328cf091cd942597d72fad2133d7 (diff)
Fix transparency
Diffstat (limited to '2026/framing/src')
-rw-r--r--2026/framing/src/game.rs2
-rw-r--r--2026/framing/src/main.rs9
2 files changed, 1 insertions, 10 deletions
diff --git a/2026/framing/src/game.rs b/2026/framing/src/game.rs
index 59e9697..b704b49 100644
--- a/2026/framing/src/game.rs
+++ b/2026/framing/src/game.rs
@@ -46,7 +46,7 @@ impl teleia::state::Game for Game {
Ok(())
}
fn render(&mut self, ctx: &context::Context, st: &mut state::State) -> Erm<()> {
- ctx.clear_color(glam::Vec4::new(0.0, 0.0, 0.0, 0.0));
+ ctx.clear_color(glam::Vec4::new(1.0, 0.0, 0.0, 0.5));
ctx.clear();
self.assets.font.render_text_at(
ctx, st,
diff --git a/2026/framing/src/main.rs b/2026/framing/src/main.rs
deleted file mode 100644
index 25a240d..0000000
--- a/2026/framing/src/main.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-mod game;
-
-#[cfg(not(target_arch = "wasm32"))]
-pub fn main() -> teleia::Erm<()> {
- teleia::run("game", 240, 160, teleia::Options::empty(), game::Game::new)
-}
-
-#[cfg(target_arch = "wasm32")]
-pub fn main() {} // dummy main, real wasm32 main is lib::main_js