From 0e13750f7733931ab2fc5129995b33105c74a976 Mon Sep 17 00:00:00 2001 From: Sergio Vera Castellano Date: Fri, 12 Jan 2018 12:43:09 +0100 Subject: [PATCH] Corrected image placement --- community/scrolling-background/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/community/scrolling-background/main.go b/community/scrolling-background/main.go index cc9dfd8..38cb02b 100644 --- a/community/scrolling-background/main.go +++ b/community/scrolling-background/main.go @@ -54,8 +54,8 @@ func run() { // In the beginning, vector1 will put background1 filling the whole window, while vector2 will // put background2 just at the right side of the window, out of view - vector1 := pixel.V(windowWidth/2, (windowHeight/2)+1) - vector2 := pixel.V(windowWidth+(windowWidth/2), (windowHeight/2)+1) + vector1 := pixel.V(windowWidth/2, (windowHeight / 2)) + vector2 := pixel.V(windowWidth+(windowWidth/2), (windowHeight / 2)) i := float64(0) last := time.Now()