image path helper functions

This commit is contained in:
2023-07-07 14:00:56 +02:00
parent cb9175cef3
commit 7ef126f02b
10 changed files with 61 additions and 10 deletions

View File

@@ -3,14 +3,14 @@ package domain
import "game/konstructor"
const (
TestNPCType konstructor.NPCTypeMapKey = "test"
TestNPCType konstructor.NPCTypeMapKey = "test_npc"
)
func (d *Domain) InitNPCType() {
d.NPCTypeMap = konstructor.NPCTypeMap{
TestNPCType: {
Render: konstructor.Render{
Image: "assets/images/npcs/test_npc.png",
Image: konstructor.GetNPCTypeImagePath(TestNPCType),
},
},
}