aboutsummaryrefslogtreecommitdiffstats
path: root/src/render.rs
diff options
context:
space:
mode:
authorLibravatarLarge Libravatar /dev/urandom <johnfkennedymaili2p>2025-02-15 07:01:33 +0100
committerLibravatarLarge Libravatar /dev/urandom <johnfkennedymaili2p>2025-02-15 07:01:33 +0100
commit25fa98871f4a5653111f66de44939cc5aa36c929 (patch)
tree9cca2efe2c39aae5642b78709bbcad889bdf7c93 /src/render.rs
parent58b0d5e534e0ad064de6ecf215c4e256d3dbe90b (diff)
downloadcosin25-invite-mountainbytes-25fa98871f4a5653111f66de44939cc5aa36c929.tar.gz
cosin25-invite-mountainbytes-25fa98871f4a5653111f66de44939cc5aa36c929.tar.bz2
cosin25-invite-mountainbytes-25fa98871f4a5653111f66de44939cc5aa36c929.tar.lz
cosin25-invite-mountainbytes-25fa98871f4a5653111f66de44939cc5aa36c929.zip

feat: easter egg

Diffstat (limited to 'src/render.rs')
-rw-r--r--src/render.rs8
1 files changed, 7 insertions, 1 deletions
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(