render GetImage and replace Options prefix to Args
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user