Added a rain layer for atmosphere.

This commit is contained in:
diego committed 2024-11-23 01:13:55 -05:00
1 parent 253c708d45
commit 63eafe036a
9 files changed
+284 -1

No files matched your search

+5
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()