Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/freesc/skytow.scm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30 - (show annotations) (download)
Mon Feb 26 13:50:55 2007 UTC (17 years, 1 month ago) by tmurakam
File size: 3301 byte(s)
file moved

1 ;
2 ; 東山スカイタワー (Higashiyama sky tower)
3 ;
4 Area( 5 N35:09:13.9 E136:58:54.2 25 )
5 PerspectiveCall( :T1 )
6 ShadowCall( :Shadow )
7 Jump( : )
8
9 :T1
10 Perspective
11 :Shadow
12 RefPoint( 7 :No_object 1 N35:09:13.9 E136:58:54.2 V1= 18000 V2= 14000 )
13 RotatedCall( :T11 0 0 355 )
14 :No_object
15 Return
16
17 :T11
18 Points( 0
19 11 0 -11 ; 0
20 11 0 11
21 -11 0 11
22 -11 0 -11
23
24 11 120 -11 ; 4
25 11 120 11
26 -11 120 11
27 -11 120 -11
28
29 0 148 0 ; 8
30 )
31
32 ; LineColor( 00 F0 )
33 ; MoveToPt( 0 )
34 ; DrawToPt( 1 5 4 )
35 ; MoveToPt( 1 )
36 ; DrawToPt( 2 6 5 )
37 ; MoveToPt( 2 )
38 ; DrawToPt( 3 7 6 )
39 ; DrawToPt( 3 )
40 ; DrawToPt( 0 4 7 )
41 ; MoveToPt( 4 )
42 ; DrawToPt( 8 6 )
43 ; MoveToPt( 5 )
44 ; DrawToPt( 8 7 )
45
46 IfVarRange( :in_day 28C 2 4 )
47 SurfaceColor( 12 F0 )
48 Jump( :draw_poly )
49 :in_day
50 SurfaceColor( 07 F0 )
51 Brightness( 100 )
52
53 :draw_poly
54 Bitmap( skytow.bmp 0 0 0 0 )
55 TexPoly( a
56 0 44 0
57 1 86 0
58 5 86 (255 - 46)
59 4 44 (255 - 46))
60 TexPoly( a
61 1 0 0
62 2 43 0
63 6 43 (255 - 43)
64 5 0 (255 - 43) )
65 TexPoly( a
66 2 44 0
67 3 86 0
68 7 86 (255 - 46)
69 6 44 (255 - 46) )
70 TexPoly( a
71 3 0 0
72 0 43 0
73 4 43 (255 - 43)
74 7 0 (255 - 43) )
75 TexPoly( a
76 4 44 (255 - 46)
77 5 86 (255 - 46)
78 8 62 255)
79 TexPoly( a
80 5 0 (255 - 43)
81 6 43 (255 - 43)
82 8 21 255)
83 TexPoly( a
84 6 44 (255 - 46)
85 7 86 (255 - 46)
86 8 62 255)
87 TexPoly( a
88 7 0 (255 - 45)
89 4 43 (255 - 45)
90 8 21 255)
91
92 IfVarRange( :end_draw 28C 2 4 )
93
94 ; draw lights
95 LineColor( 13 F0 )
96 IfVarRange( :sparselight 37E -1500 1500 )
97 IfVarRange( :sparselight 386 -1500 1500 )
98
99 ;;;; dense light
100 VectorJump( :southd m 0 0 32767 0 )
101
102 ;; north
103 Call( :NELightD )
104 Call( :NWLightD )
105
106 VectorJump( :northwestd m 32767 0 0 0 )
107 Call( :SELightD )
108 Jump( :flush )
109
110 :northwestd
111 Call( :SWLightD )
112 Jump( :flush )
113
114 :southd
115 Call( :SELightD )
116 Call( :SWLightD )
117
118 VectorJump( :southwestd m 32767 0 0 0 )
119
120 Call( :NELightD )
121 Jump( :flush )
122
123 :southwestd
124 Call( :NWLightD )
125 Jump( :flush )
126
127 ;;;; sparse light
128 :sparselight
129 LineColor( 13 F0 )
130 VectorJump( :souths m 0 0 32767 0 )
131
132 ;; north
133 Call( :NELightS )
134 Call( :NWLightS )
135
136 VectorJump( :northwests m 32767 0 0 0 )
137 Call( :SELightS )
138 Jump( :flush )
139
140 :northwests
141 Call( :SWLightS )
142 Jump( :flush )
143
144 :souths
145 Call( :SELightS )
146 Call( :SWLightS )
147
148 VectorJump( :southwests m 32767 0 0 0 )
149
150 Call( :NELightS )
151 Jump( :flush )
152
153 :southwests
154 Call( :NWLightS )
155
156 :flush
157 IfVarAnd( :end_draw 282 3333 )
158 LineColor( 15 F0 )
159 Dot( 0 148 0 )
160
161 :end_draw
162 Return
163
164 :NELightD
165 DotLine( 11 0 11 11 120 11 20 )
166 DotLine( 11 120 11 0 148 0 5 )
167 Return
168
169 :NWLightD
170 DotLine( -11 0 11 -11 120 11 20 )
171 DotLine( -11 120 11 0 148 0 5 )
172 Return
173
174
175 :SELightD
176 DotLine( 11 0 -11 11 120 -11 20 )
177 DotLine( 11 120 -11 0 148 0 5 )
178 Return
179
180 :SWLightD
181 DotLine( -11 0 -11 -11 120 -11 20 )
182 DotLine( -11 120 -11 0 148 0 5 )
183 Return
184
185 :NELightS
186 DotLine( 11 0 11 11 120 11 8 )
187 DotLine( 11 120 11 0 148 0 3 )
188 Return
189
190 :NWLightS
191 DotLine( -11 0 11 -11 120 11 8 )
192 DotLine( -11 120 11 0 148 0 3 )
193 Return
194
195
196 :SELightS
197 DotLine( 11 0 -11 11 120 -11 8 )
198 DotLine( 11 120 -11 0 148 0 3 )
199 Return
200
201 :SWLightS
202 DotLine( -11 0 -11 -11 120 -11 8 )
203 DotLine( -11 120 -11 0 148 0 3 )
204 Return
205
206 EndA

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26