| | | Tricks & Glitches |
Code Translation Lists: Intro
Edit
Original research by Superyoshi. Updated by Doram
Now this is the REALLY boring stuff. Tons of information put into lists for people to be able to look up. Showing how to use this information is the task of the other pages in the guide, so I'll just keep the intro short. This is just a mass of raw data (and there's so much of it that it kinda needed its own page).
The only really universal info I can add at this point is that in every case except Tiles, putting numbers not listed here or even non-numbers in the code will not necessarily break the level, and in some cases is actually useful (such as disabling items). Otherwise, every option available in the Level Designer is listed and detailed here. At any rate, here we go...
Specific Code Translation Lists
Edit
TileID Info
Edit
This is the number you put in to specify which tile you want.
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
SpriteID Info
Edit
This is the number you put at the beginning of an item entry to specify which item you want. Don't forget that putting a zero (0) in front of any item disables it.
|
|
MusicID List
Edit
This is the number you put in to select the music for the level.
| MUSICID | Music Name |
|---|---|
| 1 | Mushroom Kingdom |
| 2 | Bob-Omb Battlefield |
| 3 | Secret Course #1 |
| 4 | Secret Course #2 |
| 5 | Rainbow Ride |
| 6 | Boo’s Mansion |
| 7 | Hazy Maze Cave |
| 8 | Snowman’s Land |
| 9 | Lethal Lava Land |
| 10 | Shifting Sand Land |
| 11 | Bowser’s Castle |
| 12 | Boss Fight 1 |
| 13 | Boss Fight 2 |
| 14 | Floater Land |
| 15 | Terror Theme |
| 16 | The Final Battle |
| 17 | The Meteor |
| 18 | Inside the Castle |
| 19+ | No Music |
BGID List
Edit
This is the number you put in to select the background graphics for the level.
| BGID | Background Name |
|---|---|
| 1 | Hills and Clouds |
| 2 | Hills and Ocean |
| 3 | Secret Course |
| 4 | Sky |
| 5 | Underground |
| 6 | Snow |
| 7 | Fire Field |
| 8 | Volcano |
| 9 | Desert and Hills |
| 10 | Desert |
| 11 | Fire Castle |
| 12 | Fire Castle (Outside) |
| 13 | Space |
| 14 | Bowser's Castle |
| 15 | Black |
| Less than 1, Bigger than 16, & non-number | Black (in older versions, it was a blue gradient - light-blue to blue) |
ASCII Codes
Edit
| Level text is stored as 0-9, A-Z, and a-z as expected, but anything outside this range requires the ASCII code for the character. This includes both HTML code in signs as well as regular punctuation. These are the ASCII codes you need for signs and other text. They are all in Hexadecimal. For more info, go to Ascii Table. | ||
| ASCII | Character Name | Printed |
|---|---|---|
| %0D | Carriage Return | Hit the Enter key |
| %20 | Space | " " |
| %2C | Comma | , |
| %2E | Period | . |
| %21 | Exclamation Point | ! |
| %3F | Question Mark | ? |
| %27 | Single Quote | ' |
| %22 | Double Quote | " |
| %2F | Slash | / |
| %5C | Backslash | \ |
| %3A | Colon | : |
| %3B | Semi-Colon | ; |
| %3C | Less Than | < |
| %3D | Equals | = |
| %3E | Greater Than | > |
| %40 | At Symbol | @ |
| %5F | Underscore | _ |
| %7E | Tilde | ~ |
| %23 | Pound | # |
| %24 | Dollar | $ |
| %25 | Percent | % |
| %26 | Ampersand | & |
| %28 | Open Parentheses | ( |
| %29 | Close Parentheses | ) |
| %2A | Asterisk | * |
| %2B | Plus | + |
| %2D | Dash | - |
Sprite Code Specifications
Edit
Individual Sprite Syntax List
Edit
This is a list of the specific syntax for each item, so you know what order to put the parameters in, when writing your code. Don't forget that putting a zero (0) in front of any item disables it.
| Main Items | ||
|---|---|---|
| Item Name | Syntax | Sample Default |
| 1 Start Position | SPRITEID,XPOS,YPOS,XSPEED,YSPEED,DIRECTION | 1,64,832,0,0,Right |
| 2 Yellow Coin | SPRITEID,XPOS,YPOS | 2,64,832 |
| 3 Red Coin | SPRITEID,XPOS,YPOS | 3,64,832 |
| 4 Blue Coin | SPRITEID,XPOS,YPOS | 4,64,832 |
| 5 Silver Star | SPRITEID,XPOS,YPOS | 5,64,832 |
| 6 Shine Sprite | SPRITEID,XPOS,YPOS | 6,64,832 |
| 7 Moving Green Platform | SPRITEID,XPOS,YPOS,XSPEED,YSPEED,XLENGTH,YLENGTH, XOFFSET,YOFFSET,XDIRECTION,YDIRECTION,ACCELERATION, SIZE,TOUCHNGO,COUNT | 7,64,832,3,0,30,0,0,0,Right,none,0.5,1,0,25 |
| 8 Circle Platform | SPRITEID,XPOS,YPOS,SPEED,PLATFORMCOUNT,RADIUS, OFFSET,SIZE | 8,64,832,2,2,50,0,1 |
| 9 Rotating Block | SPRITEID,XPOS,YPOS,XSPEED,YSPEED,XLENGTH,YLENGTH, XOFFSET,YOFFSET,XDIRECTION,YDIRECTION,ACCELERATION, SIZE,BLOCK_TYPE,ROTATION_DIRECTION,ROTATION_SPEED, WAIT_TIME,UNKNOWN | 9,64,832,0,0,0,0,0,0,Right,none, 0.5,80,1,Left,3,72,1 |
| 10 Log | SPRITEID,XPOS,YPOS | 10,64,832 |
| 11 Falling Log | SPRITEID,XPOS,YPOS | 11,64,832 |
| 12 Tipping Log Small | SPRITEID,XPOS,YPOS | 12,64,832 |
| 13 Tipping Log Medium | SPRITEID,XPOS,YPOS | 13,64,832 |
| 14 Tipping Log Large | SPRITEID,XPOS,YPOS | 14,64,832 |
| 15 Tipping Log Extra Large | SPRITEID,XPOS,YPOS | 15,64,832 |
| 16 Floating Platform | SPRITEID,XPOS,YPOS | 16,64,832 |
| 17 Floating Platform Large | SPRITEID,XPOS,YPOS | 17,64,832 |
| 18 Flipping Platform | SPRITEID,XPOS,YPOS,SPEED,ANGLE | 18,64,832,2,0 |
| 19 Flipping Platform Large | SPRITEID,XPOS,YPOS,SPEED,ANGLE | 19,64,832,2,0 |
| 20 clock (ball swinging starts left) | SPRITEID,XPOS,YPOS | 20,64,832 |
| 21 clock (ball swinging starts right) | SPRITEID,XPOS,YPOS | 21,64,832 |
| 22 clock (triangle rotating clockwise) | SPRITEID,XPOS,YPOS | 22,64,832 |
| 23 clock (triangle rotating counter-clockwise) | SPRITEID,XPOS,YPOS | 23,64,832 |
| 24 triangle (rotating counter-clockwise with pause) | SPRITEID,XPOS,YPOS | 24,64,832 |
| 25 triangle (rotating clockwise with pause) | SPRITEID,XPOS,YPOS | 25,64,832 |
| 26 triangle (rotating counter-clockwise continuously) | SPRITEID,XPOS,YPOS | 26,64,832 |
| 27 triangle (rotating clockwise continuously) | SPRITEID,XPOS,YPOS | 27,64,832 |
| 28 Bone Platform | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 28,64,832,1,0 |
| 29 Metal Platform | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 29,64,832,1,0 |
| 30 Metal Platform Large | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 30,64,832,1,0 |
| 31 Cloud Small | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 31,64,832,1,0 |
| 32 Cloud Medium | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 32,64,832,1,0 |
| 33 Cloud Large | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 33,64,832,1,0 |
| 34 Cloud Extra Large | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 34,64,832,1,0 |
| 35 Bridge | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 35,64,832,1,0 |
| 36 Snowy Platform* | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 36,64,832,1,0 |
| 37 Sling Star | SPRITEID,XPOS,YPOS,SPEED,ANGLE | 37,64,832,15,0 |
| 38 Water | SPRITEID,XPOS,YPOS,ANGLE,LENGTH,DEPTH | 38,64,832,0,500,400 |
| 39 Door | SPRITEID,XPOS,YPOS,TARGETXPOS,TARGETYPOS,FRAME | 39,64,832,128,832,1 |
| 40 Warp Pipe Top | SPRITEID,XPOS,YPOS,TARGETXPOS,TARGETYPOS | 40,64,832,128,832 |
| 41 Warp Pipe Base | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 41,64,832,1,0 |
| 42 Warp Pipe Top (no warp) | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 42,64,832,1,0 |
| 43 Horizontal Level Transition | SPRITEID,XPOS,YPOS | 43,64,832 |
| 44 Thwomp | SPRITEID,XPOS,YPOS,OFFSET,WAITTIME,GROUNDWAITTIME, FALLSPEED,FALLACCEL,RISEACCEL,RISESPEED,RANGE,CHASE | 44,64,832,0,12,16,7,1,0.1,3,30,1 |
| 45 Flame Tower | SPRITEID,XPOS,YPOS,ANGLE,XSCALE,YSCALE,ONWAIT, OFFWAIT,DISABLED,OFFSET,STARTOFF | 45,64,832,0,100,100,64,92,0,0,0 |
| Enemies and Powerups | ||
|---|---|---|
| Item Name | Syntax | Sample Default |
| 1 Goomba* | SPRITEID,XPOS,YPOS,MIRROR | 51,64,832,1 |
| 2 Huge Goomba | SPRITEID,XPOS,YPOS,MIRROR | 52,64,832,1 |
| 3 Mini Goomba | SPRITEID,XPOS,YPOS,MIRROR | 53,64,832,1 |
| 4 Shy-guy | SPRITEID,XPOS,YPOS,MIRROR | 54,64,832,1 |
| 5 Flying Shy-guy | SPRITEID,XPOS,YPOS,MIRROR | 55,64,832,1 |
| 6 Koopa | SPRITEID,XPOS,YPOS,MIRROR | 56,64,832,1 |
| 7 Flying Koopa | SPRITEID,XPOS,YPOS,MIRROR | 57,64,832,1 |
| 8 Koopa Shell | SPRITEID,XPOS,YPOS,MIRROR | 58,64,832,1 |
| 9 Bob-omb | SPRITEID,XPOS,YPOS,MIRROR | 59,64,832,1 |
| 10 Bully | SPRITEID,XPOS,YPOS,MIRROR | 60,64,832,1 |
| 11 Big Bully | SPRITEID,XPOS,YPOS,MIRROR | 61,64,832,1 |
| 12 Cheep Cheep | SPRITEID,XPOS,YPOS,MIRROR | 62,64,832,1 |
| 13 Mega Cheep Cheep | SPRITEID,XPOS,YPOS,MIRROR | 63,64,832,1 |
| 14 Boo | SPRITEID,XPOS,YPOS,MIRROR | 64,64,832,1 |
| 15 Big Boo | SPRITEID,XPOS,YPOS,MIRROR | 65,64,832,1 |
| 16 Penguin** | SPRITEID,XPOS,YPOS,MIRROR | 66,64,832,1 |
| 17 Flying Penguin** | SPRITEID,XPOS,YPOS,MIRROR | 67,64,832,1 |
| 18 Goonie | SPRITEID,XPOS,YPOS,MIRROR | 68,64,832,1 |
| 19 Skelegoonie* | SPRITEID,XPOS,YPOS,MIRROR | 69,64,832,1 |
| 20 Wingless Skelgoonie | SPRITEID,XPOS,YPOS,MIRROR | 70,64,832,1 |
| 21 Bullet Bill Base | SPRITEID,XPOS,YPOS,DIRECTION,ANGLE,SPEED,WAIT, OFFSET,COLOR,CHASE | 71,64,832,Both,0,3,100,0,1,0 |
| 22 Butterfly | SPRITEID,XPOS,YPOS,MIRROR | 72,64,832,1 |
| 23 Sign | SPRITEID,XPOS,YPOS,TEXT | 73,64,832,This is a sign... |
| 24 Orange Block Switch | SPRITEID,XPOS,YPOS,DURATION | 74,64,832,20 |
| 25 Water Bottle | SPRITEID,XPOS,YPOS | 75,64,832 |
| 26 Mega Water Bottle | SPRITEID,XPOS,YPOS | 76,64,832 |
| 27 1-up Mushroom | SPRITEID,XPOS,YPOS | 77,64,832 |
| 28 Wing Cap | SPRITEID,XPOS,YPOS,DURATION | 78,64,832,30 |
| 29 Invisibility Cap | SPRITEID,XPOS,YPOS,DURATION | 79,64,832,30 |
| 30 Metal Power-up | SPRITEID,XPOS,YPOS,DURATION | 80,64,832,30 |
| 31 Invincibility Power-up | SPRITEID,XPOS,YPOS,DURATION | 81,64,832,30 |
| 32 Hover Fludd | SPRITEID,XPOS,YPOS | 82,64,832 |
| 33 Rocket Fludd | SPRITEID,XPOS,YPOS | 83,64,832 |
| 34 Turbo Fludd | SPRITEID,XPOS,YPOS | 84,64,832 |
| Decorations | ||
|---|---|---|
| Item Name | Syntax | Sample Default |
| 1 Tree 64 | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 101,128,384,1,0 |
| 2 Mega Tree 64 | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 102,128,384,1,0 |
| 3 Cactus Tree | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 103,128,384,1,0 |
| 4 Bushy Tree Tall | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 104,128,384,1,0 |
| 5 Bushy Tree | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 105,128,384,1,0 |
| 6 Bushes | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 106,128,384,1,0 |
| 7 Mega Bushes | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 107,128,384,1,0 |
| 8 Tree | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 108,128,384,1,0 |
| 9 Small Tree | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 109,136,384,1,0 |
| 10 Flowery Tree | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 110,136,384,1,0 |
| 11 Tall Leafy Tree | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 111,136,392,1,0 |
| 12 Moss Log | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 112,136,384,1,0 |
| 13 Mushroom Top | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 113,136,384,1,0 |
| 14 Mushroom Body | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 114,128,384,1,0 |
| 15 Mushroom Curve* | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 115,128,384,1,0 |
| 16 Twisted Tree Top | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 116,128,384,1,0 |
| 17 Twisted Tree Body | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 117,128,384,1,0 |
| 18 Twisted Tree Base | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 118,136,384,1,0 |
| 19 Vine End | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 119,136,384,1,0 |
| 20 Vine Body | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 120,128,392,1,0 |
| 21 Cave Spore | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 121,128,392,1,0 |
| 22 Cave Spore Mini | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 122,128,384,1,0 |
| 23 Cave Plant | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 123,128,384,1,0 |
| 24 Tall Cave Tree | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 124,128,384,1,0 |
| 25 Cave Tree | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 125,128,384,1,0 |
| 26 Unblossomed | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 126,128,384,1,0 |
| 27 Snowy Tree | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 127,136,384,1,0 |
| 28 Large Snowy Tree | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 128,136,384,1,0 |
| 29 Large Grey Rock | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 129,128,392,1,0 |
| 30 Grey Rock | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 130,128,384,1,0 |
| 31 Flat Grey Rock | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 131,128,384,1,0 |
| 32 Square Grey Rock | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 132,128,384,1,0 |
| 33 Small Square Rock | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 133,128,384,1,0 |
| 34 Flat Brown Rock | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 134,128,384,1,0 |
| 35 Brown Rock | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 135,128,376,1,0 |
| 36 Large Brown Rock | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 136,128,384,1,0 |
| 37 Mossy Rock | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 137,128,384,1,0 |
| 38 Tall Mountain Rock | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 138,128,384,1,0 |
| 39 Wide Mountain Rock | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 139,128,384,1,0 |
| 40 Arrow | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 140,128,384,1,0 |
| 41 Moving Arrow | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 141,128,384,1,0 |
| 42 Invisibility Arrow | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 142,128,384,1,0 |
| 43 Metal Arrow | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 143,128,384,1,0 |
| 44 Fence | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 144,128,384,1,0 |
| 45 Long Fence | SPRITEID,XPOS,YPOS,MIRROR,ANGLE | 145,128,384,1,0 |
*LD Mistakes
| ||
**Other Notes
| ||
Sprite Parameter Glossary
Edit
Descriptions for Sprite Parameters
| Parameter | Info |
| SPRITEID | All Items are specified by their SpriteID first. It is a unique number identifying each item. |
| XPOS, YPOS | All items will have an X and Y Position identifying where in the level the item is to be placed. |
| XSPEED, YSPEED | Some items that move will have a simple X and Y Speed amount set. |
| DIRECTION | Used in the case of Bullet Bills to identify which direction the Bills will emerge. Similar to MIRROR. |
| XLENGTH, YLENGTH | |
| XOFFSET, YOFFSET | |
| XDIRECTION, YDIRECTION | |
| ACCELERATION | |
| SIZE | |
| TOUCHNGO | |
| COUNT | |
| BLOCK_TYPE | |
| ROTATION_DIRECTION | |
| ROTATION_SPEED | |
| WAIT_TIME | |
| UNKNOWN | |
| SPEED | |
| PLATFORMCOUNT | |
| RADIUS | |
| OFFSET | |
| SIZE | |
| MIRROR | |
| ANGLE | |
| LENGTH, DEPTH | |
| TARGETXPOS, TARGETYPOS | |
| FRAME | |
| WAITTIME | |
| GROUNDWAITTIME | |
| FALLSPEED | |
| FALLACCEL | |
| RISEACCEL | |
| RISESPEED | |
| RANGE | |
| CHASE | |
| XSCALE, YSCALE | |
| ONWAIT | |
| OFFWAIT | |
| DISABLED | |
| STARTOFF | |
| WAIT | |
| COLOR | |
| CHASE | |
| TEXT | |
| DURATION |
| | | Tricks & Glitches |