Refactor to use better interfaces and event callbacks.
This commit is contained in:
@@ -23,7 +23,8 @@ const (
|
||||
TileSet ImgAssetName = "TileSet"
|
||||
Altar ImgAssetName = "Altar"
|
||||
Weapon ImgAssetName = "Weapon"
|
||||
Worm ImgAssetName = "Worm"
|
||||
WormDamaged ImgAssetName = "WormDamaged"
|
||||
Worm ImgAssetName = "WormDefault"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -51,6 +52,8 @@ var (
|
||||
weapon_img []byte
|
||||
//go:embed worm.png
|
||||
worm_img []byte
|
||||
//go:embed wormdefault.png
|
||||
wormdefault_img []byte
|
||||
)
|
||||
|
||||
func LoadImages() {
|
||||
@@ -66,7 +69,8 @@ func LoadImages() {
|
||||
ImageBank[TileSet] = LoadImagesFatal(tileset_img)
|
||||
ImageBank[Altar] = LoadImagesFatal(altar_img)
|
||||
ImageBank[Weapon] = LoadImagesFatal(weapon_img)
|
||||
ImageBank[Worm] = LoadImagesFatal(worm_img)
|
||||
ImageBank[WormDamaged] = LoadImagesFatal(worm_img)
|
||||
ImageBank[Worm] = LoadImagesFatal(wormdefault_img)
|
||||
|
||||
}
|
||||
|
||||
|
||||
BIN
assets/worm.png
Normal file
BIN
assets/worm.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.2 KiB |
BIN
assets/wormdefault.png
Normal file
BIN
assets/wormdefault.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.8 KiB |
Reference in New Issue
Block a user