Update image

This commit is contained in:
Sergio Vera Castellano 2018-01-12 12:40:02 +01:00
parent f3c09f05f9
commit ee32e77d47
3 changed files with 4 additions and 2 deletions

View File

@ -3,3 +3,5 @@
Created by [Sergio Vera](https://github.com/svera)
This example shows how to implement an infinite side scrolling background.
Credits to [Peter Hellberg](https://github.com/peterhellberg) for the improved background image.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

View File

@ -5,7 +5,7 @@ import (
"os"
"time"
_ "image/jpeg"
_ "image/png"
"github.com/faiface/pixel"
"github.com/faiface/pixel/pixelgl"
@ -43,7 +43,7 @@ func run() {
}
// Pic must have double the width of the window, as it will scroll to the left
pic, err := loadPicture("gamebackground.jpg")
pic, err := loadPicture("gamebackground.png")
if err != nil {
panic(err)
}