aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs1
-rw-r--r--src/render.rs8
2 files changed, 8 insertions, 1 deletions
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(