Map XML Tag Library |
Tadame « Citoyen » 1354950600000
| 0 | ||
To get the XML of a blank map, click 'Copy map to clipboard'. Then, open Notepad or Word and click 'Paste'. Example: <C><P /><Z><S /><D /><O /></Z></C> (1) All codes are enclosed within the opening and closing <C></C> tags. (2) Define the parameters of 'Map settings' with <P />tag. Example: <P F="" P="" C="" A="" N="" G="w,g" Ca="" DS="m;x1,y1,x2,y2" L="n" /> Explanations: F="0" [Input a number to set a particular background; 0-blank, 1-Daylight, 2-Dawn, etc.] P="" [Allow shaman to use portals in the map.] C="" [Turn on Collision mode.] A="" [Turn on Soulmate mode.] N="" [Turn on Night mode.] G="w,g" [Input a number to set the values of wind(w) and gravity(g).] Ca="" [Turn on fullscreen block to hide grounds and objects outside the gameplay area.] DS="m;x1,y1,x2,y2" [Input the x,y coordinates of multiple mice spawns locations.] L="n" [Input the horizontal length of the map; If n is greater than 800, then it’ll be a scrolling map.] (3) Define the parameters of grounds and mouse spawns within the <Z></Z> tag. Grounds related parameters are set within the <S></S> tag whereas mice stuff parameters can be changed within the <D></D> tag. Example: <C><P F="8" /><Z><S><S L="531" X="417" H="71" Y="370" T="0" P="0,0,0.3,0.2,0,0,0,0" /></S><D><F Y="329" X="308" /><T Y="330" X="407" /><DS Y="304" X="474" /><DC Y="305" X="353" /></D><O /></Z></C> Explanations: <S><S L="531" H="71" X="451" Y="333" T="0" P="0,0,0.3,0.2,0,0,0,0" /></S> [Set the length(L), height(H), x,y coordinates(X,Y), type(T) and parameters(P) of the ground.] P="d,m,f,rs,rt,fr,ld,ad" [d=1 for dynamic ground; m=mass; f=friction value; rs=restitution value; rt=rotate the ground at an angle; fr=1 for fixed rotation; ld=value of linear damping; ad=value of angular damping.] <F Y="329" X="308" /> [Input the x,y coordinates of cheese.] <T Y="330" X="407" /> [Input the x,y coordinates of mouse hole.] <DS Y="304" X="474" /> [Input the x,y coordinates of mouse spawn.] <DC Y="305" X="353" />[Input the x,y coordinates of shaman spawn.] (4) Define the motor parameters of dynamic grounds within the <L></L> tag. (a) Rotate a dynamic ground using the <JR /> tag. Example: <JR M1="1" MV="v,s" /> Explanations: M1="z1" or M2="z2" [Input the Z-value of the dynamic ground] MV="v,s" [Input a number to set the values of motor velocity(v) and strength(s); A positive value will turn the motor clockwise and vice versa.] Example: Rotates a ground towards a non-dynamic ground. <C><P /><Z><S><S H="40" P="0,0,0.3,0.2,0,0,0,0" L="268" X="297" Y="375" T="0" /><S P="1,0,0.3,0.2,0,0,0,0" L="50" H="50" X="400" Y="145" T="0" /></S><D /><O /><L><JR M1="1" MV="15000,1" /></L></Z></C> Example: Rotate a ground at a fixed axis. <C><P /><Z><S><S H="40" P="0,0,0.3,0.2,0,0,0,0" L="268" X="297" Y="375" T="0" /><S P="1,0,0.3,0.2,0,0,0,0" L="50" H="50" X="400" Y="145" T="0" /></S><D /><O /><L><JR M2="1" MV="15000,1" /></L></Z></C> (b) Attach grounds to the background using the <JPL /> tag. Example: <JPL M1="z1" M2="z2" P3="x1,y1" P4="x2,y2" /> Explanations: M1="z1" or M2="z2" [Input the Z-value of the dynamic ground.] P3="x1,y1" or P4="x2,y2" [Input the x,y coordinates of the anchor points.] Example: Hang two grounds on a scale. They tend to pull towards each other. <C><P /><Z><S><S P="0,0,0.3,0.2,0,0,0,0" L="268" H="40" X="297" Y="375" T="0" /><S P="1,0,0.3,0.2,0,0,0,0" L="50" H="50" X="400" Y="150" T="0" /><S P="1,0,0.3,0.2,0,0,0,0" L="50" H="50" X="600" Y="150" T="0" /></S><D /><O /><L><JPL M1="1" M2="2" P3="400,70" P4="600,70" /></L></Z></C> (c) Connect two grounds together using the <JP /> tag. Example: <JP M1="z1" M2="z2" AXIS="hm,vm" /> Explanations: M1="z1" or M2="z2" [Input the Z-value of the dynamic ground.] AXIS=”hm,vm’ [Input 1 or 0 to turn on or off either a horizontal(hm) or vertical movment(vm).] Example: Moving platform [Credit to Impuredeath’s map-making video] <C><P /><Z><S><S H="200" P="0,0,0.3,0.2,0,0,0,0" L="80" X="41" Y="305" T="6" /><S H="25" P="1,666,9999,0.2,0,1,0,0" L="80" X="146" Y="217" T="0" /></S><D><DS Y="189" X="46" /></D><O /><L><JP M1="0" M2="1" AXIS="1,0" /></L></Z></C> Explanations: <S H="25" P="1,666,9999,0.2,0,1,0,0" L="80" X="146" Y="217" T="0" /> Set the mass and friction of the dynamic ground to 666 and 9999 respectively. Fixed rotation has to be 1. <JP M1="0" M2="1" AXIS="1,0" /> Connect the two grounds with the <JP /> tag and set AXIS=”1,0” to allow a horizontal movement of the dynamic ground. |
Kingspyy « Citoyen » 1354968780000
| 0 | ||
nice |
Baasbase « Citoyen » 1355000280000
| 0 | ||
Even though this lacks quite some attributes, it's a great initiative. Good job and keep it up. |
Todorovski « Citoyen » 1355009280000
| 0 | ||
This is cool, but who would use XHTML/XML tags to build a map? |
Totalnick « Citoyen » 1355015400000
| 0 | ||
Wow. How long did this take ? Baasbase a dit : This ^ |
Tadame « Citoyen » 1355032020000
| 0 | ||
Todorovski a dit : You start building a map in the Map Editor and you don't have to worry about these tags at all. ;D There're several cool features that you can only manually edit the map XML to include them. Examples: - Map settings, such as night mode, fullscreen block, scrolling and multiple mice spawns. - Motor parameters of dynamic grounds as mentioned in point number (4) above. It'll be easier for users editing their maps if they understand the basic stuff and know where and how to change the values of different parameters. Hope this helps. |
Buggzie « Citoyen » 1355087220000
| 0 | ||
How do u link to ground togwether! |
Sourisplum « Citoyen » 1355088120000
| 0 | ||
Multiple mouse spawns? Cooollll.... |
Tadame « Citoyen » 1355279340000
| 0 | ||
Buggzie a dit : Please read point number four (a)-(c) in the first post and try out some XML examples in the Map Editor. If you're still confused, be specific when you ask a question. ;D |
Tadame « Citoyen » 1355503980000
| 0 | ||
Update - 14 Dec, 2012! Thanks Fxie for sharing the cube XML! It took me some hours to figure out how to set the parameters. e_e (4)(d) Create lines using the <JD /> tag. Example: <JD P1="x1,y1" P2="x2,y2" M1="z" M2="z" c="cc,w,vis,gl" /> Explanations: P1="x1,y1" or P2="x2,y2" [Input the x,y coordinates of the starting(P1) and ending(P2) points of the line.] M1="z1" or M2="z2" [Input the Z-value of the (dynamic) ground; z1=z2.] c="cc,w,vis,gl" [cc=colour code, colour look-up: http://www.colorpicker.com/ ; w=width of the line; v=visibility of line (0=invisible; 1=visible); gl=ground layering (0=background; 1=foreground, it overwrites the background/foreground setting of the original ground.)] Example: Plot a dynamic rectangle. <C><P /><Z><S><S X="400" Y="380" T="6" H="40" P="0,0,0.3,0,0,0,0,0" L="800" /><S X="320" Y="80" T="12" H="40" P="1,0,0.3,0.2,0,0,0,0" L="40" /></S><D></D><O /><L><JD P1="305,60" M1="1" c="7CE3F7,30,1,1" P2="335,60" M2="1" /><JD P1="305,100" M1="1" c="7CE3F7,30,1,1" P2="335,100" M2="1" /><JD P1="305,60" M1="1" c="7CE3F7,30,1,1" P2="305,100" M2="1" /><JD P1="335,60" M1="1" c="7CE3F7,30,1,1" P2="335,100" M2="1" /></L></Z></C> Explanations: <S X="320" Y="80" T="12" H="40" P="1,0,0.3,0.2,0,0,0,0" L="40" /> Create a dynamic ground and remove o=000000 to hide it. This will be the ground where mice can push on it. <JD P1="305,60" M1="1" c="7CE3F7,30,1,1" P2="335,60" M2="1" /><JD P1="305,100" M1="1" c="7CE3F7,30,1,1" P2="335,100" M2="1" /><JD P1="305,60" M1="1" c="7CE3F7,30,1,1" P2="305,100" M2="1" /><JD P1="335,60" M1="1" c="7CE3F7,30,1,1" P2="335,100" M2="1" /> Find the x,y coordinates of the rectangle and connect each line with a <JD /> tag. |