add more cubes
This commit is contained in:
parent
e74ea8de3e
commit
09167208ea
2 changed files with 7 additions and 3 deletions
Binary file not shown.
10
main.go
10
main.go
|
@ -107,13 +107,13 @@ func writeLevel1() {
|
||||||
&engine.Fill{
|
&engine.Fill{
|
||||||
ID: "bg_fill",
|
ID: "bg_fill",
|
||||||
Color: color.Gray{100},
|
Color: color.Gray{100},
|
||||||
ZOrder: 0,
|
ZOrder: -10,
|
||||||
},
|
},
|
||||||
&engine.Parallax{
|
&engine.Parallax{
|
||||||
CameraID: "game_camera",
|
CameraID: "game_camera",
|
||||||
Child: &engine.Billboard{
|
Child: &engine.Billboard{
|
||||||
ID: "bg_image",
|
ID: "bg_image",
|
||||||
ZOrder: 1,
|
ZOrder: -5,
|
||||||
Pos: image.Pt(-160, -120),
|
Pos: image.Pt(-160, -120),
|
||||||
Src: engine.ImageRef{Path: "assets/space.png"},
|
Src: engine.ImageRef{Path: "assets/space.png"},
|
||||||
},
|
},
|
||||||
|
@ -138,11 +138,15 @@ func writeLevel1() {
|
||||||
engine.Pt3(5, 0, 0): {CellBack: 0, CellFront: 1},
|
engine.Pt3(5, 0, 0): {CellBack: 0, CellFront: 1},
|
||||||
engine.Pt3(5, 1, 0): {CellBack: 0, CellFront: 1},
|
engine.Pt3(5, 1, 0): {CellBack: 0, CellFront: 1},
|
||||||
engine.Pt3(5, 2, 0): {CellBack: 0, CellFront: 1},
|
engine.Pt3(5, 2, 0): {CellBack: 0, CellFront: 1},
|
||||||
|
|
||||||
|
engine.Pt3(8, 2, 0): {CellBack: 0, CellFront: 1},
|
||||||
|
engine.Pt3(8, 2, 1): {CellBack: 0, CellFront: 1},
|
||||||
|
engine.Pt3(8, 2, 2): {CellBack: 0, CellFront: 1},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
&engine.Tilemap{
|
&engine.Tilemap{
|
||||||
ID: "terrain",
|
ID: "terrain",
|
||||||
ZOrder: 8,
|
ZOrder: -1,
|
||||||
Map: tiles,
|
Map: tiles,
|
||||||
Sheet: engine.Sheet{
|
Sheet: engine.Sheet{
|
||||||
AnimDefs: map[string]*engine.AnimDef{
|
AnimDefs: map[string]*engine.AnimDef{
|
||||||
|
|
Loading…
Reference in a new issue