Added a rain layer for atmosphere.

This commit is contained in:
2024-11-23 01:13:55 -05:00
parent 253c708d45
commit 63eafe036a
9 changed files with 284 additions and 1 deletions

View File

@@ -50,6 +50,11 @@ func NewPrimary() *Primary {
canvas.RegisterEvents(gamedata.GameEventFireball, p.EventHandlerFireball)
p.elements = append(p.elements, canvas)
//rainlayer
rain := gameelement.NewRainLayer(gamearea)
rain.Initialize()
p.elements = append(p.elements, rain)
//create foreground cloud layer
clouds := gameelement.NewCloudLayer(gamearea)
clouds.Initialize()