-
Notifications
You must be signed in to change notification settings - Fork 0
/
images.go
54 lines (39 loc) · 1.35 KB
/
images.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package main
import "github.com/hajimehoshi/ebiten"
var (
// i prefix is for images
iplayerSpritesheet *ebiten.Image
itileSpritesheet *ebiten.Image
iUISpritesheet *ebiten.Image
iitemsSpritesheet *ebiten.Image
ienemiesSpritesheet *ebiten.Image
ibloodSpritesheet *ebiten.Image
icorruptionSpritesheet *ebiten.Image
iwalkSmokeSpritesheet *ebiten.Image
ilightingSpritesheet *ebiten.Image
ilightingBackground *ebiten.Image
)
func loadPlayerImages() {
iplayerSpritesheet, _ = loadImage("./Assets/Art/Player/spritesheet.png")
}
func loadUIImages() {
iUISpritesheet, _ = loadImage("./Assets/Art/UI/spritesheet.png")
}
func loadTileImages() {
itileSpritesheet, _ = loadImage("./Assets/Art/Tiles/spritesheet.png")
}
func loadItemsImages() {
iitemsSpritesheet, _ = loadImage("./Assets/Art/Items/spritesheet.png")
}
func loadEnemiesImages() {
ienemiesSpritesheet, _ = loadImage("./Assets/Art/Enemies/spritesheet.png")
}
func loadParticlesImages() {
ibloodSpritesheet, _ = loadImage("./Assets/Art/Particles/blood.png")
icorruptionSpritesheet, _ = loadImage("./Assets/Art/Particles/corruption.png")
iwalkSmokeSpritesheet, _ = loadImage("./Assets/Art/Particles/walkSmoke.png")
}
func loadLightingImages() {
ilightingSpritesheet, _ = loadImage("./Assets/Art/Lighting/spritesheet.png")
ilightingBackground, _ = loadImage("./Assets/Art/Lighting/bg.png")
}