moved images to res, changed code accordingly
This commit is contained in:
parent
f07d741077
commit
67af93b83c
4
main.go
4
main.go
@ -39,13 +39,13 @@ func run() {
|
|||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
spritesheet, err := loadPicture("sprites.png")
|
spritesheet, err := loadPicture("res/sprites.png")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
//batch := pixel.NewBatch(&pixel.TrianglesData{}, spritesheet)
|
//batch := pixel.NewBatch(&pixel.TrianglesData{}, spritesheet)
|
||||||
|
|
||||||
background, err := loadPicture("background.png")
|
background, err := loadPicture("res/background.png")
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 62 KiB |
Loading…
x
Reference in New Issue
Block a user