Changeset 582 for abuse/trunk/data-abuse/lisp/flyer.lsp
- Timestamp:
- May 6, 2011, 12:47:14 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/data-abuse/lisp/flyer.lsp
r54 r582 27 27 (add_object EXPLODE1 (x) (+ (- (y) (random 20)) -20) 4) 28 28 nil) 29 (progn 29 (progn 30 30 (if (eq (mod (state_time) 5) 0) ;; make flyer noise every 5 ticks 31 31 (play_sound FLYER_SND 127 (x) (y))) … … 66 66 67 67 (if (next_picture) T (set_state running)) ;; reset animation when done 68 68 69 69 (bounce_move '(set_xvel (/ (xvel) 2)) '(set_xvel (/ (xvel) 2)) 70 70 '(set_yvel (/ (yvel) 2)) '(set_yvel (/ (yvel) 2)) nil) 71 71 72 72 (if (> fire_time 0) ;; if we need to wait till next burst 73 73 (progn 74 74 (setq fire_time (- fire_time 1)) 75 75 (if (eq fire_time 0) 76 (progn 76 (progn 77 77 (setq burst_left burst_total) 78 78 (setq burst_wait 0)))) … … 91 91 (setq burst_left (- burst_left 1))) 92 92 (setq burst_wait burst_delay) 93 (fire_object (me) (aitype) firex firey angle (bg)) 93 (fire_object (me) (aitype) firex firey angle (bg)) 94 94 ))))) 95 (setq burst_wait (- burst_wait 1)))) 95 (setq burst_wait (- burst_wait 1)))) 96 96 T)))) 97 97 98 98 99 99 100 (defun flyer_cons () 100 (defun flyer_cons () 101 101 (setq fire_delay 20) 102 102 (setq burst_delay 3) … … 108 108 109 109 (defun flyer_damage (amount from hitx hity push_xvel push_yvel) 110 (if (and from (with_object from (and (> (total_objects) 0) 111 (with_object (get_object 0) 110 (if (and from (with_object from (and (> (total_objects) 0) 111 (with_object (get_object 0) 112 112 (or (eq (otype) FLYER) 113 113 (eq (otype) GREEN_FLYER))
Note: See TracChangeset
for help on using the changeset viewer.