fix logo bounce, adjust music a bit
This commit is contained in:
parent
17dd2a23a3
commit
272e0bc615
7 changed files with 50 additions and 36 deletions
|
|
@ -76,10 +76,18 @@
|
|||
:logo (do
|
||||
(set logo-x (+ logo-x (* logo-dx dt)))
|
||||
(set logo-y (+ logo-y (* logo-dy dt)))
|
||||
(when (or (< logo-x 0) (> logo-x 512))
|
||||
(set logo-dx (- logo-dx)))
|
||||
(when (or (< logo-y 0) (> logo-y 296))
|
||||
(set logo-dy (- logo-dy))))
|
||||
(when (< logo-x 0)
|
||||
(set logo-x 0)
|
||||
(set logo-dx (math.abs logo-dx)))
|
||||
(when (> logo-x 512)
|
||||
(set logo-x 512)
|
||||
(set logo-dx (- (math.abs logo-dx))))
|
||||
(when (< logo-y 0)
|
||||
(set logo-y 0)
|
||||
(set logo-dy (math.abs logo-dy)))
|
||||
(when (> logo-y 296)
|
||||
(set logo-y 296)
|
||||
(set logo-dy (- (math.abs logo-dy)))))
|
||||
:worldgen (worldgen.update dt))
|
||||
|
||||
(music.update dt)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue