summaryrefslogtreecommitdiff
path: root/pixel-client/src/menu/background.rs
diff options
context:
space:
mode:
Diffstat (limited to 'pixel-client/src/menu/background.rs')
-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(