Browse Subversion Repository
Contents of /trunk/freesc/build.scm
Parent Directory
| Revision Log
Revision 30 -
( show annotations)
( download)
Mon Feb 26 13:50:55 2007 UTC
(17 years, 1 month ago)
by tmurakam
File size: 1353 byte(s)
file moved
| 1 |
; 通常のビル (Normal building macro) |
| 2 |
; build.scm Lat Lon Rot Height Width1 Width2 Type Altitude wallflag |
| 3 |
; 1 2 3 4 5 6 7 8 9 |
| 4 |
|
| 5 |
; Type の説明 |
| 6 |
; value from each group. |
| 7 |
; 00 beige with vertical stripes |
| 8 |
; 01 white with vertical stripes |
| 9 |
; 02 dark gray with vertical stripes |
| 10 |
; 03 gray with vertical stripes |
| 11 |
; 04 white with dark vertical stripes |
| 12 |
; 05 white with horizontal stripes |
| 13 |
; 06 beige with horizontal stripes |
| 14 |
; 07 light gray with vertical stripes |
| 15 |
; |
| 16 |
; bits 3 と 4 はビルの形を定義する |
| 17 |
; 00 通常のビル |
| 18 |
; 08 屋根つき,屋根は北を向いているh) |
| 19 |
; 10 斜めの壁.ピラミッド状. |
| 20 |
; 18 8角ビル -> additional wallflags needed. |
| 21 |
; |
| 22 |
; 8000 あらかじめ定義された SIDE#.R8 ビットマップの代わりに |
| 23 |
; ユーザ定義のビットマップを使用する.->bitmap() |
| 24 |
; Bitmap() コマンドを Building() コマンドの直前で使う. |
| 25 |
; Note, ビットマップは特別のデザインを持っていなければ |
| 26 |
; ならない. |
| 27 |
|
| 28 |
Area( 5 %1 %2 10 ) |
| 29 |
PerspectiveCall( :Sub ) |
| 30 |
ShadowCall( :Shadow ) |
| 31 |
Jump( : ) |
| 32 |
|
| 33 |
:Sub |
| 34 |
Perspective |
| 35 |
:Shadow |
| 36 |
mif( %8 ) |
| 37 |
Refpoint( 2 :No_object 1 %1 %2 E= %8 V1= 8000 ) |
| 38 |
melse |
| 39 |
Refpoint( 7 :No_object 1 %1 %2 V1= 8000 ) |
| 40 |
mifend |
| 41 |
|
| 42 |
mif( %3 ) |
| 43 |
RotatedCall( :Object 0 0 %3 ) |
| 44 |
melse |
| 45 |
Call( :Object ) |
| 46 |
mifend |
| 47 |
:No_object |
| 48 |
Return |
| 49 |
|
| 50 |
:Object |
| 51 |
Building( 0 0 0 %4 %5 %6 %7 %9 ) |
| 52 |
Return |
| 53 |
|
| 54 |
EndA |
Properties
| svn:eol-style |
native
|
| svn:keywords |
Author Date Id Revision
|
|