Add particle effects for pickups, e-switches, and warps.
This commit is contained in:
parent
4d507e472f
commit
76fdb7c6f6
4 changed files with 70 additions and 19 deletions
|
@ -300,15 +300,15 @@
|
|||
($ timer t)
|
||||
(when (= t 0)
|
||||
($ on? #f)
|
||||
($ grid-info 'append-event `(electric-switch-off ,x ,y))
|
||||
(for-each (lambda (obj)
|
||||
($ grid-info 'append-event `(electic-switch-off ,x ,y))
|
||||
($ obj 'deactivate grid-info))
|
||||
(non-player-occupants grid-info target-x target-y))))
|
||||
(when (>= (electron-head-count neighbor-grid) 1)
|
||||
($ on? #t)
|
||||
($ timer 2)
|
||||
($ grid-info 'append-event `(electric-switch-on ,x ,y))
|
||||
(for-each (lambda (obj)
|
||||
($ grid-info 'append-event `(electic-switch-on ,x ,y))
|
||||
($ obj 'activate grid-info))
|
||||
(non-player-occupants grid-info target-x target-y)))))
|
||||
(('alive?) #t)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue