added intermediate popup after win/loose, refresh level setup, fixes

This commit is contained in:
2024-02-19 19:05:48 +01:00
parent e12af87fb7
commit fd570216f0
16 changed files with 322 additions and 20 deletions

View File

@@ -5,13 +5,13 @@ Background: background-lila
########
#o o #o#
# o # #
# S # #
# #### #
# #### #
# #
#o o#
# #
########

View File

@@ -1,5 +1,5 @@
Description: find the fruit
Background: background-orange
Background: background-lila
# ############
@@ -7,7 +7,7 @@ Background: background-orange
############ #
# o S #
# ######## ###
#
+ #
############ #
# o # #
# # ######## #

View File

@@ -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",

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB