item and npc rendering

This commit is contained in:
2023-07-07 09:14:37 +02:00
parent 8d2fcabc4b
commit fa3e43299c
13 changed files with 83 additions and 6 deletions

View File

@@ -20,7 +20,7 @@ func (d *Domain) InitLevel() {
Y: 10,
Z: 0,
},
Type: d.GetObjectType("TestObjectType"),
Type: d.GetObjectType(TestObjectType),
},
{
ID: "test_object2",
@@ -29,7 +29,29 @@ func (d *Domain) InitLevel() {
Y: 50,
Z: 0,
},
Type: d.GetObjectType("TestObjectType"),
Type: d.GetObjectType(TestObjectType),
},
},
Items: []konstructor.Item{
{
ID: "sword_1",
Position: konstructor.Position{
X: 100,
Y: 100,
Z: 0,
},
Type: d.GetItemType(SwordItemType),
},
},
NPCs: []konstructor.NPC{
{
ID: "test_npc_1",
Position: konstructor.Position{
X: 220,
Y: 180,
Z: 0,
},
Type: d.GetNPCType(TestNPCType),
},
},
},