render GetImage and replace Options prefix to Args

This commit is contained in:
2023-07-06 01:20:23 +02:00
parent 731548ef86
commit 701205ac82
17 changed files with 61 additions and 52 deletions

View File

@@ -9,7 +9,9 @@ func (d *Domain) InitLevel() {
Name: "Level I.",
Playgrounds: []entity.Playground{
{
Background: "assets/images/playgrounds/level_1_playground_1.png",
Render: entity.Render{
Image: "assets/images/playgrounds/level_1_playground_1.png",
},
Objects: []entity.Object{
{
ID: "test_object",
@@ -20,7 +22,7 @@ func (d *Domain) InitLevel() {
},
Type: entity.ObjectType{
ID: "test_object_type",
RenderOptions: entity.RenderOptions{
Render: entity.Render{
Image: "assets/images/objects/test_object.png",
Width: 30,
Height: 30,