Mercurial > touhou-doc
comparison 07/sht.xhtml @ 13:2925b0e246c6 default tip
Fix a lot of things, and add a TODO.
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
|---|---|
| date | Fri, 17 Feb 2012 12:54:08 +0100 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 12:79dfd9765a67 | 13:2925b0e246c6 |
|---|---|
| 1 <?xml version="1.0" encoding="utf-8"?> | |
| 2 <?xml-stylesheet type="text/css" href="../style.css"?> | |
| 3 <!DOCTYPE html> | |
| 4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | |
| 5 <head> | |
| 6 <title>SHT format</title> | |
| 7 </head> | |
| 8 <body> | |
| 9 <h1>SHT format</h1> | |
| 10 <p>The SHT format defines a character and its shots in PCB.</p> | |
| 11 | |
| 12 | |
| 13 <h2>Header</h2> | |
| 14 <pre> | |
| 15 typedef struct { | |
| 16 uint16_t unknown1; // Seems ignored | |
| 17 uint16_t level_count; | |
| 18 | |
| 19 // All hitboxes have only one value, the same for the width and the height. | |
| 20 float bombs; // Why is it a float? | |
| 21 float unknown2; //TODO | |
| 22 float hitbox; | |
| 23 float graze_hitbox; | |
| 24 float autocollected_item_speed; // Applies to all items going towards us | |
| 25 float item_hitbox; | |
| 26 float percentage_of_cherry_loss_on_die; //TODO: verify the formula | |
| 27 float point_of_collection; | |
| 28 float horizontal_vertical_speed; | |
| 29 float horizontal_vertical_focused_speed; | |
| 30 float diagonal_speed; | |
| 31 float diagonal_focused_speed; | |
| 32 | |
| 33 thsht_offset_t offsets[level_count]; | |
| 34 | |
| 35 thsht_shot_type_t shots[]; | |
| 36 } thsht_header_t; | |
| 37 </pre> | |
| 38 | |
| 39 <pre> | |
| 40 typedef struct { | |
| 41 uint32_t offset; | |
| 42 uint32_t power; | |
| 43 } thsht_offset_t; | |
| 44 </pre> | |
| 45 | |
| 46 <h2>Shot type</h2> | |
| 47 <pre> | |
| 48 typedef struct { | |
| 49 // If these 2 are 0xffff, then end the parsing. | |
| 50 uint16_t interval; | |
| 51 uint16_t unknown1; | |
| 52 | |
| 53 float x; | |
| 54 float y; | |
| 55 float hitbox_x; | |
| 56 float hitbox_y; | |
| 57 float angle; | |
| 58 float speed; | |
| 59 uint16_t damage; | |
| 60 uint8_t orb; // 0 = character, 1 = left orb, 2 = right orb | |
| 61 uint8_t unknown2; | |
| 62 uint16_t sprite; | |
| 63 uint16_t unknown3; | |
| 64 | |
| 65 // These 4 are actually booleans. | |
| 66 uint32_t unknown4; | |
| 67 uint32_t homing; // accelerates too | |
| 68 uint32_t unknown5; | |
| 69 uint32_t unknown6; | |
| 70 } thsht_shot_type_t; | |
| 71 </pre> | |
| 72 </body> | |
| 73 </html> |
