aboutsummaryrefslogtreecommitdiff
path: root/pixel-client/src
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-07-27 13:10:26 +0200
committermetamuffin <metamuffin@disroot.org>2024-07-27 13:10:26 +0200
commit8d1e7ab11e2037da92f37495038e66e980adf7ac (patch)
treee21b2de564d6d2069a01e8e6642c3ac0be35bb18 /pixel-client/src
parent13fb44b129c8bdb263136997300121abbbff4aaf (diff)
downloadhurrycurry-8d1e7ab11e2037da92f37495038e66e980adf7ac.tar
hurrycurry-8d1e7ab11e2037da92f37495038e66e980adf7ac.tar.bz2
hurrycurry-8d1e7ab11e2037da92f37495038e66e980adf7ac.tar.zst
pc: wrap background position
Diffstat (limited to 'pixel-client/src')
-rw-r--r--pixel-client/src/menu/background.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/pixel-client/src/menu/background.rs b/pixel-client/src/menu/background.rs
index dd5ab97c..9f385d38 100644
--- a/pixel-client/src/menu/background.rs
+++ b/pixel-client/src/menu/background.rs
@@ -67,6 +67,7 @@ impl MenuBackground {
pub fn tick(&mut self, dt: f32) {
self.background += Vec2::new(2., 3.) * dt;
+ self.background %= 256.;
}
pub fn draw(&self, ctx: &mut Renderer) {
ctx.set_world_view(