ENTITY/obj,obj1(1500),obj2(1500),obj3(1500),ena(1500),enb(1500),enc(1500)) ?" ^! `% d8 f/ k% Y
number/mat(12)# w: Y* i" r0 C0 ^* H8 M+ p |8 p* T F
INEXTE/ALL $$所有
o5 w ~- g* k7 G3 T; \( gj=08 Y' i* X6 j4 Q! L5 o: k
ixa=0
2 l" z8 ~5 V$ I7 f8 f6 ^* Mixb=0
* v7 _2 K2 `3 X. vixc=09 [ K. [, [) X S
" D/ l, \. l# h, lLOOP:( d, F0 x$ U, O$ x4 [ E0 F- S
j=j+1
: A* Q! [0 k$ `# _* Oobj=NEXTE/IFEND,END: $$ 循环得到所有 实体
- w0 {9 Q0 C2 Q$ Z4 g( j: fch=&layer(obj) $$ 获得 对象的所属层
4 J3 ]3 m- ?, K6 h; M4 m: ?' R
* P. s7 b6 }! ?IF/CH==9,JUMP/L00:* J) r L* U4 s8 J. ?8 L2 `
IF/CH==1 OR CH==2 OR CH==3 OR CH==4 OR CH==5 OR CH==11 OR CH==12,JUMP/L10:- u& ?$ g% T; c) C8 @
IF/CH==15 OR CH==16 OR CH==18 OR CH==21,JUMP/L10:, O! v( ~, Q& J
IF/CH==22 OR CH==23 OR CH==24 OR CH==25,JUMP/L10:0 e; F! B; d2 F6 w. y% X
IF/CH==6 OR CH==7 OR CH==8 OR CH==10 OR CH==13 OR CH==14 OR CH==17,JUMP/L20:# a! F0 {7 c. h
IF/CH==19 OR CH==20 OR CH==26 OR CH==27 OR CH==28,JUMP/L20:
: E7 k: Q+ g3 [6 D$ Wjump/LOOP:3 p* E6 W+ ?0 q) R0 _9 R/ N- Z& l
2 Q E! o- _+ f% v0 |! ?' HL00:
; f# D$ T8 ?, Z% N4 {0 S% q' a- G9 ^, C, f
ixa=ixa+1
2 t4 ^, c4 f4 K! q9 h2 Jena(ixa)=obj& Z; W7 ~5 d8 z, W9 W: C
jump/LOOP:& z& a6 U2 U. Q9 k# c
- P8 M7 U0 h! Q( vL10:( O* w$ z9 c- j) x6 \# l, |
ixb=ixb+19 ^( t) N9 k, @2 M0 K
enb(ixb)=obj5 y& L8 N& X/ p! ?6 _
jump/LOOP:/ Q& y* D7 S0 ^$ [& k9 F
2 i/ M$ J' |+ BL20: c; o: H# s" W
ixc=ixc+1
; T+ v7 q) d" ~* J Benc(ixc)=obj) i, ], ]# t. N3 @0 R* `: K1 M- m
jump/LOOP:
8 \: y$ a4 w( \/ b. S$ m R# F( W+ F) J8 _( {* n. Y/ S; M) ^6 R1 D' b: S
END:
e. Y! [4 J% f7 F mat=matrix/transl,0,0,504 f" ]5 Z9 S! e: r# a1 |" X% P
obj1=transf/mat,ena(1..ixa),move
H8 a6 R. I; K* s3 g1 ]- b5 {2 B5 |$ x2 o0 K
HALT |