Changeset 582 for abuse/trunk/data-abuse/lisp/platform.lsp
- Timestamp:
- May 6, 2011, 12:47:14 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/data-abuse/lisp/platform.lsp
r54 r582 48 48 (let ((speed (plat_speed))) 49 49 (let ((newx (- destx (/ (* (- destx sourcex) (xvel)) speed))) 50 (newy (- desty (/ (* (- desty sourcey) (xvel)) speed)))) 50 (newy (- desty (/ (* (- desty sourcey) (xvel)) speed)))) 51 51 (progn 52 52 (platform_push (- newx (x)) (- newy (y))) … … 57 57 (defun platform_ai () 58 58 (if (or (eq (total_objects) 2) ;; no switch to listen to processed as normal 59 (and (eq (total_objects) 3) 59 (and (eq (total_objects) 3) 60 60 (not (eq (with_object (get_object 2) (aistate)) 0)))) ;; see if switch is active 61 61 (progn … … 78 78 (play_sound PLAT_A_SND 127 (x) (y)) 79 79 (set_aitype (- 1 (aitype))) 80 (set_xvel (plat_speed));; steps to go 80 (set_xvel (plat_speed));; steps to go 81 81 (go_state 3)) 82 82 83 83 (3 ;; go to dest 84 (if (eq (xvel) 6) 84 (if (eq (xvel) 6) 85 85 (play_sound PLAT_D_SND 127 (x) (y))) 86 86 (platform_move (get_object (aitype)) (get_object (- 1 (aitype))))) … … 88 88 (set_state stopped)) 89 89 T) 90 91 90 92 91 … … 120 119 121 120 121
Note: See TracChangeset
for help on using the changeset viewer.