added intermediate popup after win/loose, refresh level setup, fixes
This commit is contained in:
@@ -5,13 +5,13 @@ Background: background-lila
|
||||
|
||||
|
||||
########
|
||||
#o o #o#
|
||||
# o # #
|
||||
# S # #
|
||||
# #### #
|
||||
|
||||
|
||||
# #### #
|
||||
# #
|
||||
#o o#
|
||||
# #
|
||||
########
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
Description: find the fruit
|
||||
Background: background-orange
|
||||
Background: background-lila
|
||||
|
||||
|
||||
# ############
|
||||
@@ -7,7 +7,7 @@ Background: background-orange
|
||||
############ #
|
||||
# o S #
|
||||
# ######## ###
|
||||
#
|
||||
+ #
|
||||
############ #
|
||||
# o # #
|
||||
# # ######## #
|
||||
|
||||
@@ -28,6 +28,7 @@ type Tile struct {
|
||||
Renderable bool
|
||||
Velocity bool
|
||||
Collectible bool
|
||||
Obstacle bool
|
||||
Particle int // -1=unused, 0-3 = show image of slice
|
||||
Particles []*ebiten.Image
|
||||
}
|
||||
@@ -64,6 +65,17 @@ func NewTileCollectible(class string) *Tile {
|
||||
}
|
||||
}
|
||||
|
||||
func NewTileObstacle(class string) *Tile {
|
||||
return &Tile{
|
||||
Id: '+',
|
||||
Sprite: Assets[class],
|
||||
Class: class,
|
||||
Solid: false,
|
||||
Renderable: true,
|
||||
Obstacle: true,
|
||||
}
|
||||
}
|
||||
|
||||
func NewTileParticle(class []string) *Tile {
|
||||
sprites := []*ebiten.Image{}
|
||||
|
||||
@@ -109,6 +121,7 @@ func InitTiles() TileRegistry {
|
||||
'#': NewTileBlock("block-grey32"),
|
||||
'S': NewTilePlayer(),
|
||||
'o': NewTileCollectible("collectible-orange"),
|
||||
'+': NewTileObstacle("obstacle-star"),
|
||||
'*': NewTileParticle([]string{
|
||||
//"particle-ring-1",
|
||||
"particle-ring-2",
|
||||
|
||||
BIN
assets/sprites/obstacle-star.png
Normal file
BIN
assets/sprites/obstacle-star.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.3 KiB |
Reference in New Issue
Block a user