aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build.rs2
-rw-r--r--src/main.rs1
-rw-r--r--src/render.rs8
3 files changed, 9 insertions, 2 deletions
diff --git a/build.rs b/build.rs
index 1e0b048..bc8ca69 100644
--- a/build.rs
+++ b/build.rs
@@ -191,7 +191,7 @@ use crate::font::BakedFont;
FontMetadata {
name: "Galmuri",
font: { Font::try_from_vec(fs::read("assets/fonts/Galmuri11.ttf")?).unwrap() },
- charset: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz219053: %,/-.:#@",
+ charset: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz21649053: %,/-.:#@",
scale: Scale::uniform(20.0),
},
FontMetadata {
diff --git a/src/main.rs b/src/main.rs
index 9f4ddc0..7af8586 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -85,6 +85,7 @@ pub fn main() {
.duration_since(start_time)
.expect("Time went back between frames");
let time = f64::from(time.as_millis() as u32) / 1000.0;
+ // let time = time * 2.0;
#[cfg(all(not(feature = "notimeout"), not(feature = "32k")))]
if time > TIMEOUT_DEATH {
diff --git a/src/render.rs b/src/render.rs
index d37545a..3796292 100644
--- a/src/render.rs
+++ b/src/render.rs
@@ -149,7 +149,13 @@ pub fn render(
let mut i = 0.0;
let strlen = 19;
let mut uwuoffset_x = 0.0;
- for c in "Have some scrollers".chars() {
+ for c in {
+ if time_seconds + 0.75 >= (SCENE_GREETINGS - SCENE_MOAR) {
+ "oh look a 64k rust demo".chars()
+ } else {
+ "Have some scrollers".chars()
+ }
+ } {
let char: crate::font::RenderableCharacter = FONT_GALMURI.get_char(c);
canvas
.copy(