Added a rain layer for atmosphere.
This commit is contained in:
1 parent
253c708d45
commit
63eafe036a
9 files changed
+284
-1
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user