Update image
This commit is contained in:
parent
f3c09f05f9
commit
ee32e77d47
|
@ -3,3 +3,5 @@
|
||||||
Created by [Sergio Vera](https://github.com/svera)
|
Created by [Sergio Vera](https://github.com/svera)
|
||||||
|
|
||||||
This example shows how to implement an infinite side scrolling background.
|
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 |
|
@ -5,7 +5,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
_ "image/jpeg"
|
_ "image/png"
|
||||||
|
|
||||||
"github.com/faiface/pixel"
|
"github.com/faiface/pixel"
|
||||||
"github.com/faiface/pixel/pixelgl"
|
"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 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 {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue