1# $Header: /umi/home/pub/fsw/kiss/RCS/kissgs.doc 1.9 1998/02/26 15:50:44 yav Exp $ 2# This document is english (ASCII) and japanese (Shift-JIS) mixed text. 3# to english 4# % sed -f english.sed kissgs.doc 5# to japanese 6# % sed -f japanese.sed kissgs.doc 7# 8 9KISS/GS ( KISS General Specification ) Manual by K.O.S. 10�ˣɣӣӡ��ǣ� ( KISS General Specification ) Manual by K.O.S. 11 12 13<<<<<<<< KISS/GS (v1.00) $Date: 1998/02/26 15:50:44 $ >>>>>>>> 14����� ��������(v1.00) $Date: 1998/02/26 15:50:44 $ ������ 15 16 *********************************************************** 17 18 This is an abridged translation of the official document about KISS data format. 19 �����������˻��ͤǤ��������������ѹ�����뤳�Ȥ⤢��ޤ��� 20 However parts of it are undefined and will be updated gradually. 21 ����̤����ʹ��ܤ�ޤߤޤ����ޤ����缡��ĥ�����ͽ��Ǥ��� 22 23 *********************************************************** 24 25 26 271. Introduction 28�� �Ϥ���� 29 30 KISS - a paper doll program has been developped for computers 31 �夻�ؤ��ץ����ˣɣӣӤ�����ΣţäΣУáݣ��������֣ͣ��ʹ� 32 based on NEC PC-9801VM2 architecture since March 1991. 33 �Υ������ƥ�����˰�¸�����Ȥ����饹�����Ȥ��ޤ�������¿������ 34 Many people have enjoyed and implemented KISS for other computers. 35 �Τ��ٻ��ˤ�ꡢ¾�Υޥ���ˤ⥤��ץ���Ȥ����褦�ˤʤ�ޤ� 36 Now KISS is running on many platforms. 37 ���� 38 39 Now we make a reference manual about new KISS data format, that is, 40 �����ǡ��ˣɣӣӤ˴ؤ��뿷�������ͤ������ 41 42 KISS General Specification : KISS/GS 43 �ˣɣӣӰ��̻��� 44 ( KISS General Specification : �ˣɣӣӡ��ǣ� ) 45 46 and release this. 47 �Ȥ��ơ������˸������ޤ��� 48 49 ����ˤ�ꡢ�����������ƥ������¸���֤���æ�Ѥ������٥�� 50 ɽ����ǽ�ˤ��б���ǽ�ʡ��������Τ���ե����ޥåȤˤʤäƤ���� 51 �פ��ޤ��� 52 53 542. Abstract of new specification 55�� �����ͤγ��� 56 57 New style KISS data is upper compatible with the old style. 58 ���ޤǤΥǡ����ηѾ�������⤢��ޤ��Τǡ�����Ū�ˤϾ�̸ߴ� 59 �η�����Ȥ�ޤ��� 60 61 �ʲ�����Ū���ڥå�����������ޤ��� 62 63 * color (cel) 16 colors -> 16 or 256 colors 64 �������ʥ���� 16 �� �� 16 / 256 �� 65 * color (palette) 4096 colors -> 4096 or 16,777,216 colors 66 �������ʥѥ�åȡ� 4096 �� �� 4096 / 1677�� �� 67 * screen size 640 x 400 -> 768 x 480 or more 68 ��������� 640 x 400 �� 768 x 480 (�ʾ�) 69 * cel and object max 128 -> 256 or more 70 �����롿���֥������ȿ� 128 �� �� 256 �İʾ� 71 72 Multiple palette files available. 73 �ޤ���ʣ���Υѥ�åȡ��ե������¸�������������ޤ��� 74 (-> 4-1 multipalette) 75 �ʢ� ���ݣ����ޥ�����ѥ�åȵ�ǽ�� 76 77 A header is added to cel/palette files to store additional information. 78 �����ȼ�������롦�ե����롢�ѥ�åȡ��ե�����ˤϥإå�����ʬ�� 79 ��������ƾ���Ǽ����ޤ��� 80 81 At implemention some limitations may exist about hardware and software resources. 82 ���ͤȤ��Ƥ������˳�ĥ����ޤ��������ºݤΥ���ץ���ơ������� 83 So implementation level is indicated in the following form: 84 �����ƤϤ���������¤�����Ȼפ��Τǡ�������ꤷ�ޤ��� 85 86 KISS/GSn ( n = 1,2,3,... ) 87 88 �η�����ɽ�����ޤ��� 89 (-> 7 KISS/GS Ranks) 90 �ʢ� �� KISS/GS �����ɽ�� 91 92 ����ʤ��ĥ�ʥȥ��롼���顼���Ȥ��ˤ�ǡ����ե����ޥåȤȤ��Ƥϡ� 93 ͽ����ߤ���ʤɤ��ƹ�θ���Ƥ���ޤ��� 94 ������ɬ�פ�ʤ������ˡ��ܺ٤���ꤷ�Ƥ��ޤ�ʤ����������ȹͤ��ޤ��� 95 �������褿�顢��Ƥ���ޤ��� 96 �ʤ��κ��ޤǡ��ˣɣӣӤ������ĤäƤ���Ф��äǤ������� 97 98 99 1003. Basic concepts 101�� �ˣɣӣӤδ��ܳ�ǰ 102 103 �ˣɣӣӤˤĤ��ư����μ���̵�����Τ���ˡ��������������ޤ��� 104 �ۺ� KISS.EXE (PC9801) v2.24c ��ư��ˤĤ��Ƥϡ��ۤ��İ����Ƥ��� 105 �Ȥ������ϡ��ɤ����Ф���Ƥ�빽�Ǥ��� 106 107 3-1 KISS functions 108 ���ݣ� �ˣɣӣӤε�ǽ 109 110 KISS is a image viewer program with transparency processing. 111 ���ˣɣӣӤϡ�����Ū�ˤϡ�Ʃ����������ǽ�ΤĤ�������ե��å��� 112 It is able to display overlapped pictures 113 �����Ǥ���ʣ���γ���Ť�碌�뤳�Ȥ�����ޤ��� 114 and allow the user to manipulate them with real-time mouse operation. 115 ����ˡ��夻�ؤ��Ȥ��Ƥλ��Ѥ��θ���ơ��ޥ������ˤ��ꥢ�� 116 �������ư�ν������ղä��Ƥ��ޤ��� 117 118 119 3-2 Files 120 ���ݣ� �ǡ������ե����� 121 122 KISS needs the following files. 123 �ˣɣӣӤ������ǡ����ե�����ϰʲ����̤�Ǥ��� 124 125 * Cel file 126 ������ե����� 127 128 Image data to be moved. 129 �夻�ؤ��Υѡ��ĤȤʤ�٤����ե���ȡ��ǡ����Ǥ��� 130 An array of pixels. 131 ���ԥ����뤴�Ȥο������ɤ��¤���ե�����Ǥ��� 132 Pixel code 0 is transparent pixel. 133 0 �֤�Ʃ�����Ȥ��ư����ޤ��� 134 135 * Palette file 136 ���ѥ�åȥե����� 137 138 Defines actual colors of pixels. 139 ����ο������ɤ�ɽ�������б������ե�����Ǥ��� 140 ���� 10 ����ʬ���Ƥޤ��� 141 142 * Configuration file 143 ������ե����ե����� 144 145 Describes the overlapping order and positions of cels, etc. 146 �嵭�Υե�����νŤͤ��碌�����������ꤹ��ǡ����Ǥ��� 147 KISS reads this first and refers it to read other files. 148 �ˣɣӣӤϤ��Υե�����ˤ�äơ��夻�ؤ���¹Ԥ��ޤ��� 149 This file is a text file created with a text editor. 150 �ƥ����ȥե�����ʤΤǡ����ǥ����ˤ���Խ��Ǻ������ޤ��� 151 Some parts of it may be changed by KISS program's save function. 152 ������Save ��ǽ�ǡ� �ˣɣӣӤ�ľ�ܽ�����ʬ�⤢��ޤ��� 153 154 155 156 3-3 Technical terms 157 ���ݣ� �Ѹ�β��� 158 159 * Cel A minimum element of pictures. 160 ������ �ˣɣӣӤǰ������κǾ�ñ�̡� 161 162 * Object A unit of pictures for moving; 163 �����֥������� ���Ĥޤ���ʣ���Υ���ǹ�������볨���ޥ����Ǥΰ�ư�� 164 composed of one or more cels. 165 ���ܤȤʤ롣 166 167 * Palette group Color information of one screen. 168 ���ѥ�å��� ������ʬ�Υѥ�åȾ��� 169 170 * Set Data composed of a palette group and object positions. 171 �����å� �ѥ�å��Ȥȥ��֥������Ȥ����֤���ʤ�ǡ����� 172 173 174 175 176 1774. GS-KISS new feature 178�� �ǣӡݣˣɣӣӤο���ǰ 179 180 4-1 Multipalette 181 ���ݣ� �ޥ�����ѥ�åȵ�ǽ 182 183 Before KISS/GS, all cels are drawn according to 184 ����Ū�˸����ȡ����ޤǣ��������ä��ѥ�åȡ��ե������ 185 a single palette table in the palette file. 186 ʣ���Ȥ����ͤˤ���ȸ������ȤǤ��� 187 Now, cels can be drawn with individual palette tables. 188 ��������ȡ��㤨��������°ʪ�ΤߤΥǡ�������¸�ߤǤ��� 189 �Ȥ������ȤǤ�������ˡ����ΤΥǡ������̤˺��������Ȥ� 190 ��碌������Ǥ��ޤ����ʵդǤ⤤���ΤǤ����� 191 ���줾��Υѥ�åȤ���Ω�ʤΤǡ�ʣ���οͤ�Ʊ���˺����� 192 ��Τ⤫�ޤ�ʤ����Ǥ��� 193 194 The total number of colors must be less than or equal to 256. 195 �����������Τǻ��Ѥ��뿧���� 256 ������Ǥʤ��ƤϤ��� 196 �ޤ��� 197 198 Each cel requires information about which palette it uses. 199 �ޤ�������ˤɤΥѥ�åȤ���Ѥ��뤫�λ��꤬ɬ�פˤʤ� 200 �ޤ��� 201 202 203 2045. Details of the configuration file 205�� ����ե������ե�����λ��� 206 207 Each line must be shorter than 256 bytes. 208 ����ե������ե�����Σ��Ԥ� 255 ʸ������Ȥ��ޤ������åȾ���ʳ� 209 �Ϥ���Ǽ��ޤ�Ϥ��Ǥ��� 210 211 Palette/cel filenames are composed of the basename (max 8 bytes) + 212 �ޤ����ե�����̾�ʥѥ�åȡ�����ˤϡ�̾�� 8 ʸ���ܳ�ĥ�� 3 ʸ�� 213 the suffix (max 3 bytes). Upper and lower cases are identical. 214 �������ʸ������ʸ��Ʊ���Ǥ����ʣͣӡݣģϣӸߴ��� 215 The character set used in filenames is [_0-9a-z]. 216 ���Ѳ�ǽ��ʸ�����åȤϡ�[_0-9a-z] �Ǥ��� 217 218 A character at the top of line mean that: 219 ��Ƭ�Σ�ʸ������ǽʸ���Ȥʤ�ޤ��� 220 221 * '=' Memory size 222 ��'=' ���ꥵ���� 223 224 Description: =<memory>K 225 �� =<����>K 226 227 For KISS v1.0 compatibility. 228 �ˣɣӣӤ���ư���ˡ��ǡ����ΰ�Ȥ���ɬ�פʥ����̤� 229 �ؼ����ޤ������ˣɣӣӣ֣�Ȥθߴ����Τ���ˤ���ޤ��� 230 KISS v2.0 or later ignores it. 231 �ˣɣӣӣ֣�ʹߤǤ�̵�뤷�ޤ��� 232 Its use is discouraged. 233 ���ꤷ�ʤ������褤�Ǥ��礦�� 234 235 Example: 236 ��� 237 | 238 |=260K 239 | 240 241 242 * '(' Screen size 243 ��'(' ���̥��������� 244 245 Description: (<horizontal size>,<vertical size>) 246 �� (<�������Υ�����>,<�������Υ�����>) 247 248 Defines the screen size. 249 ɽ�����̤��礭������ꤷ�ޤ�����ά�������� v2.18 �ߴ��� 250 If omitted, (448,320) is assumed for KISS v2.18 compatibility. 251 (448,320) �����Ѥ���ޤ��� 252 Maximum size of screen is (640,400) on KISS/GS2. 253 KISS/GS2�ξ�硤����Ǥ�������(640,400)�Ǥ��� 254 (-> 7 KISS/GS Ranks) 255 �ʢ� �� KISS/GS �����ɽ�� 256 257 Example: 258 ��� 259 | 260 |(640,400) 261 | 262 263 264 * '%' Palette file 265 ��'%' �ѥ�åȥե�������� 266 267 Description: %<Palette filename> 268 �� %<�ѥ�åȥե�����̾> 269 270 Describes a palette file. 271 �ѥ�åȥե��������ꤷ�ޤ��� 272 Palette files are numbered as 0,1,2... in the order of appearance. 273 ʣ�����ꤹ�뤳�Ȥ�����ޤ����и���� 0, 1, 2 .... �ȡ� 274 All colors in the palette file #0 are used. 275 �ֹ椬�Ĥ����ޤ��� 0 �֤ο��������ƻ��Ѥ���ޤ����� 276 But the first (transparent) color in the other palette files is ignored. 277 1 �ְʹߤ�Ʃ������̵�뤵�죱�����ʤ�������Ѥ��ޤ��� 278 Total number of colors must be less than or equal to 256. 279 ���ΤǤ����¤� 256 ������Ǥʤ��ƤϤʤ�ޤ��� 280 281 All palette files must be described 282 ����ե�������꤬������ˡ����٤ƤΥѥ�åȥե����뤬 283 before description about cel files. 284 ���ꤵ��Ƥʤ��ƤϤ����ޤ��� 285 286 Example: 287 ��� 288 | 289 |%COL.KCF 290 |%COL2.KCF 291 | 292 293 294 * '[' Border color 295 ��'[' �dz��������� 296 297 Description: [<Border color's pixel code> 298 �� [<�dz�����������> 299 300 Outside of the screen is filled with this pixel code. 301 �夻�ؤ��ϰϤγ��ο������ɤ���ꤷ�ޤ��� 302 303 Example: 304 ��� 305 | 306 |[12 307 | 308 309 310 * '#' Cel file 311 ��'#' ����ե���������ʣ���Ļ����ǽ�� 312 313 Description: #<Mark>[.<Fix>] <Cel filename> 314 ��#<�ޡ���>[.<������>] <����ե�����̾> 315 [*<Palette number>] [:<Set number>...] 316 [*<�ѥ�åȥե������ֹ�>] [:<���å��ֹ�> ...] 317 318 <Mark> : Identification number to specify object. 319 <�ޡ���> : ���֥������Ȼ���Τ���μ����ֹ�Ǥ���¾��Ʊ�� 320 Cels of the same Mark are unified 321 �ֹ�Υ��뤬���ä���硢Ʊ�����֥������ȤȤ��� 322 and make an object. 323 ��礵��ޤ��� 324 Object number is from 0 to 255 on KISS/GS2. 325 KISS/GS2�ξ�硤�ϰϤ� 0 - 255 �Ǥ��� 326 (-> 7 KISS/GS Ranks) 327 �ʢ� �� KISS/GS �����ɽ�� 328 329 <Fix> : Fixed value. Specify this for fixed objects 330 <������> : ���֥������ȸ���°������ꤷ�ޤ���ư���������� 331 such as the doll's body. 332 �����֥������ȡ����ΤʤɡˤΤȤ��˻��ꤷ�ޤ��� 333 An object with a big value is hard to move. 334 �礭���ͤۤ�ư����������������¿���ʤ롣 335 Value is a number from 0 to 32767. 336 0 - 32767 �������ǽ�� 337 If omitted, treated as 0 (not fixed). 338 ��ά�������� 0 �������ˡ� 339 340 <Cel filename> : Describes the filename with suffix. 341 <����ե�����̾> : ��ĥ�Ҥ�ޤ�ƻ��ꤷ�Ƥ��������� 342 343 <Palette number> : 344 <�ѥ�åȥե������ֹ�> : 345 Indicates which palette file this cel uses. 346 �ѥ�åȥե����뤬ʣ����������ɤΥѥ�å� 347 �ե��������Ѥ��뤫����ꤷ�ޤ��� 348 If omitted, treated as 0. 349 ��ά���� 0 �Ǥ��� 350 351 <Set number> : The cel is drawn only in the sets specified here. 352 <���å��ֹ�> : ����Υ��åȤǤΤ��Ѥ����������ꤷ�ޤ��� 353 0 - 9 is available. 354 0 - 9 �ޤǤ��ֹ��ʣ���Ļ���Ǥ��ޤ��� 355 If omitted, this cel is drawn in all sets. 356 ��ά�������������åȤǻ��Ѳ�ǽ�Ǥ��� 357 358 The order of cel file descriptions determines 359 ����ե������ʣ���ġʣ��ĤǤ��夻�ؤ��Ǥ��ʤ��Τǡ����̤� 360 the priority in drawing cels. 361 ʣ���Ĥ���˻��ꤹ��ȡ����줬�Ťʤ��ͥ���̤Ȥʤ�ޤ��� 362 The number of cels is max 256. 363 KISS/GS2�ξ�硤���� 256 �ĤΥ�������Ǥ��ޤ��� 364 (-> 7 KISS/GS Ranks) 365 �ʢ� �� KISS/GS �����ɽ�� 366 367 368 Example: 369 ��� 370 | 371 |#2 data1.cel ; forward (near) 372 |#2 data1.cel ; ���� 373 |#3 data2.cel :2 3 4 ; 374 |#4.255 data3.cel ; fixed 375 |#4.255 data3.cel ; ���� 376 |#5 data4.cel *1 :5 ; 377 |#2 data1_.cel ; backward (far) 378 |#2 data1_.cel ; ���� 379 | 380 381 data1.cel and data1_.cel make one object. 382 ���ξ�� data1.cel �� data1_.cel �ϣ��ĤΥ��֥������Ȥ� 383 �ʤ�ޤ������Σ��Ĥδ֤ˤ� data2.cel �� data3.cel �� 384 �������ޤ��� 385 386 387 * '$' Set information 388 ��'$' ���åȾ����ʣ���Ļ����ǽ�� 389 390 Description: $<Palette group> [<xpos,ypos> ...] 391 �� $<�ѥ�å���> [<x��ɸ,y��ɸ> ...] 392 393 Palette group and positions of object for each set. 394 ���åȤ��ȤΥѥ�å��Ȥȳƥ��֥������Ȥΰ��֤���ꤷ�ޤ��� 395 There are max 10 sets. 396 �ǽ�λ��꤬ 0 �� 9 �ޤǡ�����10�ĤΥ��åȾ�������Ǥ��ޤ��� 397 This section can be overwritten by KISS save function. 398 ���Υǡ����ϣˣɣӣӤ� Save ��ǽ�Ǽ�ưŪ����������ޤ��Τǡ� 399 �桼������ľ�ܽ���ɬ�פϡ��ۤȤ�ɤʤ��Ǥ��礦�� 400 401 A long description is folded, and the following lines start with a ' ' (blank) character 402 ���Ԥ˼��ޤ�ʤ���硢��³�ԤȤʤ�ޤ������ξ�硢���ιԤ� 403 to indicate that the lines are continued from the previous line. 404 ��Ƭ�� ' ' �ʥ��ڡ����ˤǤ��� 405 406 <Palette group> : Palette group number. 0 ... 9. 407 <�ѥ�å���> : �ѥ�åȥ��롼�פ���ꤷ�ޤ���0 - 9 �ޤǡ� 408 <xpos,ypos> : Position of object (from object mark 0). 409 <��ɸ(x,y)> : ���֥������ȡʥޡ�����ˤκ�ɸ�Ǥ��� 410 Max 256 positions are described on KISS/GS2. 411 KISS/GS2�ξ�硤���� 256 �Ĥ��¤ӤǤ��� 412 (-> 7 KISS/GS Ranks) 413 �ʢ� �� KISS/GS �����ɽ�� 414 '*' means a non-existent object. 415 ���꤬�ʤ����� * �Ǥ��� 416 417 Example: 418 ��� 419 | 420 |$2 192,11 * 56,176 55,21 259,62 15,24 375,63 421 |$3 43,115 154,62 372,108 253,156 * * * 165,207 422 | * 162,198 * 119,56 152,44 * * * 423 | 16,355 394,362 108,355 * * * 125,261 424 |$0 192,11 * 56,176 55,21 259,62 15,24 375,63 425 | 426 427 428 * ';' Comment 429 ��';' ��� 430 431 Description: ;<Comment> 432 �� ;<���ʸ> 433 434 This line is ignored. 435 ���ιԤ�̵�뤵��ޤ��� 436 437 Future extension may determine how to include various 438 �ޤ������Ԥ�����귿����������ꤷ���ǡ���̾�����̾���� 439 information of the data (title, author etc.) as comments. 440 ��ưŪ�˼��Ф���褦�ˤ��ޤ����ʾܺ٤ϸ�Ƥ��� 441 442 * Others 443 ���嵭�ʳ� 444 445 Reserved for extention. 446 �����ƥ��ĥ�Τ��ᡢͽ��Ƥ��ޤ��� 447 448 449 4505. Details of cel files 451�� ����ե�����ι�¤ 452 453 Cel files have a 32-byte header. 454 ��Ƭ�� 32 �Х��ȤΥإå���������ޤ��� 455 456 offset size contents 457 +0 4B Identifier 'KiSS' ( 4Bh 69h 53h 53h ) 458 +0 4B ����ʸ�� 'KiSS' ( 4Bh 69h 53h 53h ) 459 +4 B Cel file mark ( 20h ) 460 +4 B ����ե����롦�ޡ��� ( 20h ) 461 +5 B bits per pixel ( 4 or 8 ) 462 +5 B ���ԥ�����������Υӥåȿ� ( 4 / 8 ) 463 +6 W Reserved 464 +6 W ͽ�� 465 +8 W(L,H) Width ( 1 ... XMAX ) 466 +8 W(L,H) ���������礭��( 1 ~ XMAX ) 467 +10 W(L,H) Height ( 1 ... YMAX ) 468 +10 W(L,H) ���������礭��( 1 ~ YMAX ) 469 +12 W(L,H) x-offset ( 0 ... XMAX-1 ) 470 +12 W(L,H) ��������ɽ�����֥��ե��å�( 0 ~ XMAX-1 ) 471 +14 W(L,H) y-offset ( 0 ... YMAX-1 ) 472 +14 W(L,H) ��������ɽ�����֥��ե��å�( 0 ~ YMAX-1 ) 473 +16 16B Reserved 474 +16 16B ͽ�� 475 476 Caution: the reserved field must be filled with 0. 477 ���ͽ��ե�����ɤ����� 0 �����Ƥ������� 478 479 Cels of the same object are aligned at the top left corner. 480 ɽ�����֥��ե��åȤϡ�ɽ�����֤餷�����Ȥ��˻��ꤷ�ޤ��� 481 X,y-offsets are the offsets from this alignment point. 482 ʬΥ����ξ��ˡ��ǡ������̵�̤ʣ��ǡ�����̵�������Ȥ� 483 �Ǥ��ޤ��� 484 485 +32... Pixel data 486 +32�� �ԥ����롦�ǡ��� 487 488 489 * Pixel data order (4 bits/pixel) 490 �����ԥ����������� 4 �ӥåȡ�16���ˤξ��Υԥ����롦�ǡ����ι��� 491 492 One raster: 493 ���������饤��ʬ 494 495 |<- byte ->| |<- byte ->| |<- byte ->| 496 |<- �Х��� ->| |<- �Х��� ->| |<- �Х��� ->| 497 MSB LSB MSB LSB MSB LSB 498 499 | pix0 | pix1 | | pix2 | pix3 | | pix4 | pix5 | ......... | pixN | 500 501 If the width is odd, add a padding pixel of color 0. 502 ��������������ΤȤ��ϺǸ�ˣ��ԥ�����ʬ�������ɲä���ޤ��� 503 504 The number of rasters is indicated in the height field. 505 ���줬���Τǣ�������ʬ�������֤���ޤ��� 506 507 508 509 * Pixel data order (8 bits/pixel) 510 �����ԥ����������� 8 �ӥåȡ�256���ˤξ��Υԥ����롦�ǡ����ι��� 511 512 One raster: 513 ���������饤��ʬ 514 515 |<- byte ->| |<- byte ->| |<- byte ->| 516 |<- �Х��� ->| |<- �Х��� ->| |<- �Х��� ->| 517 MSB LSB MSB LSB MSB LSB 518 519 | pix0 | | pix1 | | pix2 | ... | pixN | 520 521 The number of rasters is indicated in the height field. 522 ���줬���Τǣ�������ʬ�������֤���ޤ��� 523 524 525 If the top 4-byte identifier is not 'KiSS', the file format is as follows: 526 ��Ƭ 4 �Х��Ȥ� 'KiSS' ��̵���ä����ϡ� 527 528 +0 W(L,H) Width 529 +0 W(L,H) ���������礭�� 530 +2 W(L,H) Height 531 +2 W(L,H) ���������礭�� 532 533 +4... Pixel data 534 +4�� �ԥ����롦�ǡ��� 535 536 4 bits/pixel. 537 �� ���ӥåȡ��ԥ�����Ȥ��ư����ޤ��� 538 X and y-offset are 0. 539 �ޤ� ������������ɽ�����֥��ե��åȤ� 0 �Ȥ��ޤ��� 540 This is the conventional format. 541 �פ���ˡ���ե����ޥåȤǤ��� 542 543 544 545 5466. Palette file detail 547�� �ѥ�åȥե�����ι�¤ 548 549 Palette files have a 32-byte header. 550 ��Ƭ�� 32 �Х��ȤΥإå���������ޤ��� 551 552 offset size contents 553 +0 4B Identifier 'KiSS' ( 4Bh 69h 53h 53h ) 554 +0 4B ����ʸ�� 'KiSS' ( 4Bh 69h 53h 53h ) 555 +4 B Palette file mark ( 10h ) 556 +4 B �ѥ�åȥե����롦�ޡ��� ( 10h ) 557 +5 B bits per color ( 12 or 24 ) 558 +5 B ����������Υӥåȿ� ( 12 / 24 ) 559 +6 W Reserved 560 +6 W ͽ�� 561 +8 W(L,H) number of colors in one palette group ( 1 ... 256 ) 562 +8 W(L,H) ���ѥ�å�����ο��� ( 1 ... 256 ) 563 +10 W(L,H) number of palette groups ( 1 ... 10 ) 564 +10 W(L,H) ���ѥ�å��ȿ� ( 1 ~ 10 ) 565 +12 W Reserved 566 +12 W ͽ�� 567 +14 W Reserved 568 +14 W ͽ�� 569 +16 16B Reserved 570 +16 16B ͽ�� 571 572 Caution: the reserved fields must be filled with 0. 573 ���ͽ��ե�����ɤ����� 0 �����Ƥ������� 574 575 +32... Palette data 576 +32�� �ѥ�åȡ��ǡ��� 577 578 579 * Palette data order (12 bits = 4096 colors) 580 ������������ 12 �ӥåȡ�4096���ˤξ��Υѥ�åȡ��ǡ����ι��� 581 582 A color consists of 2 bytes. 4 bits each for red, green, blue. 583 ���ĤΥѥ�åȡ��ǡ����� 2 �Х��ȡ��ңǣ³� 4 �ӥåȤ� 4096 ���� 584 585 |<- byte ->| |<- byte ->| 586 |<- �Х��� ->| |<- �Х��� ->| 587 MSB LSB MSB LSB 588 589 | rrrr | bbbb | | 0000 | gggg | .... 590 591 ���ѥ�å�����ο��� �� ���ѥ�å��ȿ� ʬ�¤Ӥޤ��� 592 593 594 * Palette data order (24 bit = 16,777,216 colors) 595 ������������ 24 �ӥåȡ�1677�����ˤξ��Υѥ�åȡ��ǡ����ι��� 596 597 598 A color consists of 3 bytes. 8 bits each for red, green, blue. 599 ���ĤΥѥ�åȡ��ǡ����� 3 �Х��ȡ��ңǣ³� 8 �ӥåȤ� 16777216 ���� 600 601 |<- byte ->| |<- byte ->| |<- byte ->| 602 |<- �Х��� ->| |<- �Х��� ->| |<- �Х��� ->| 603 MSB LSB MSB LSB MSB LSB 604 605 | rrrrrrrr | | gggggggg | | bbbbbbbb | ... 606 607 ���ѥ�å�����ο��� �� ���ѥ�å��ȿ� ʬ�¤Ӥޤ��� 608 609 610 If the number of palette groups is less than 10, 611 ���ѥ�å��ȿ��� 10 �������ʤ���硢����ʬ�� 0 �֤Υѥ�å� 612 colors of the remaining palette groups will be copied from Group 0. 613 �ȤΥǡ���������ޤ��� 614 615 If the top 4-byte identifier is not 'KiSS', the file format is as follows: 616 ��Ƭ 4 �Х��Ȥ� 'KiSS' ��̵���ä����ϡ� 617 618 +0... palette data 619 +0�� �ѥ�åȡ��ǡ��� 620 621 12 bits/color, 16 colors in a palette group, 10 groups. 622 �� 12 �ӥåȡ������ѥ�å���������ο��� 16 �����ѥ�å��ȿ� 10 623 This is the conventional format. 624 �Ȥ��ư����ޤ����פ���ˡ���ե����ޥåȤǤ��� 625 626 627 628��� �إå����� 'KiSS' ����ʸ������ʸ�������äƤ�Τϡ��虜�ȤǤ��� 629 ����������¾�Τȥޥå����뤳�Ȥ����ʤ��Ȼפä�����Ǥ��� 630 631 632 633 6347. KISS/GS Ranks 635�� KISS/GS �����ɽ 636 637 Rank size colors max cels 638 ��� ���̥����� ���� ���祻��� 639 --------------- ---------- ---- ---------- 640 KISS/GS1 640 x 400 16 128 ; KISS v2.24c 641 KISS/GS1 640 x 400 16 128 ; (��) KISS v2.24c 642 KISS/GS2 640 x 400 256 256 ; KISS v2.37 643 KISS/GS2 640 x 400 256 256 ; (��) KISS v2.37 644 KISS/GS3 768 x 480 256 256 ; draft 645 KISS/GS3 768 x 480 256 256 ; ������ 646 KISS/GS4 768 x 480 256 512 ; draft 647 KISS/GS4 768 x 480 256 512 ; ������ 648 --------------- ---------- ---- ---------- 649 650 651 ���ͤΰ��̲���ȼ���ǡ����μ�ͳ�٤��礭���ʤ�ޤ����������Ƥޤ��� 652 �ϡ��ɤ����ꤹ��ɬ�פ�̵���ΤǤ������ޥ���ˤ��ư��β��ݤˤĤ��� 653 �Ϻ��������붲�줬ͭ��ޤ��� 654 �����ǡ��Ƶ���ؤΥ���ץ���ơ��������θ�����ǡ����κ������� 655 �����ɥ饤��Ȥ��뤿����Ū���ڥå��ˤĤ��ơ��嵭�Τ褦�ʥ�� 656 ���ꤷ�ޤ����ʰ��β��ۥޥ������Ф��ޤ����� 657 658 These are just standards. When you implement a KISS program on your system, 659 ����ϡ������ޤǥ����ɥ饤��ʤΤǡ�����ץ���ơ������˺ݤ��Ƥ� 660 you should support the maximum ability of the hardware. 661 �ϡ��ɤκ��祹�ڥå�����Ѥ��٤��Ǥ��� 662 When you create KISS data you are encouraged to consider these ranks. 663 �ǡ��������ˤĤ��Ƥ�����Ū�����¤��ߤ��ޤ�������θ�������� 664 The lower rank the data conforms to, the more users can play with it. 665 ���¿���Υޥ����ư����ǽ�����ǤƤ��ޤ��� 666 However, you don't have to conform it to unnecessarily low ranks. 667 KISS/GS2 �Ǥ�����̵���ʥǡ������� GS2 �Ǻ�뤳�ȤϤ���ޤ��� 668 GS4 ������äȤι��פ� GS3 �˼��ޤ�Τʤ� GS3 �Ǻ�ä������褤�� 669 �������ȤǤ��� 670 671 ���� KISS/GS4 �ޤ����ꤵ��Ƥ��ޤ����ϡ��ɤ���ڤ˹�碌�ơ��缡 672 ��ĥ���Ƥ����ޤ��� 673 674 675 676* Appendix 677�� �����Ť� 678 679 This document is in public domain. 680 ���Υɥ�����Ȥ� public domain�Ǥ��� 681 Send bug reports, questions, comments and problems to 682 ���Υɥ�����Ȥ˴ؤ�����䡤���ɥХ����� 683 ����ץ���ơ���������������ʤɤ���ޤ����顤 684 685 yav <yav@bigfoot.com> 686 687 Thank you. 688 �ޤǥ�뤯�������ޤ��� 689 690# End of file 691