Changeset 57


Ignore:
Timestamp:
Jul 4, 2010, 10:33:29 AM (10 years ago)
Author:
sam
Message:

Various fixes.

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/maps/testmap-coll.tmx

    r36 r57  
    11<?xml version="1.0" encoding="UTF-8"?>
    2 <map version="1.0" orientation="orthogonal" width="32" height="32" tilewidth="32" tileheight="32">
     2<map version="1.0" orientation="orthogonal" width="20" height="11" tilewidth="32" tileheight="32">
    33 <tileset firstgid="1" name="Road" tilewidth="32" tileheight="32">
    44  <image source="../art/test/groundtest.png"/>
    55 </tileset>
    6  <layer name="Layer 0" width="32" height="32">
     6 <layer name="Layer 0" width="20" height="11">
    77  <data encoding="base64" compression="gzip">
    8    H4sIAAAAAAAAA+3DAQkAAAwEocv2/UOtx1Bw1VRVVdXXD/3ApwYAEAAA
     8   H4sIAAAAAAAAA3NiYGBwGsWjeBTTBQMAOaZl33ADAAA=
    99  </data>
    1010 </layer>
    11  <layer name="Props" width="32" height="32">
     11 <layer name="Props" width="20" height="11">
    1212  <data encoding="base64" compression="gzip">
    13    H4sIAAAAAAAAA2NgGHjQRCQ9GEACGl8KiLmAmJMCM0nxfwGUVoTS7EBsBcTiFNg/0ICS+G9CwvQAtEijo+kfO40NDMf0PwpGwSgYBaNgFIyCUTAKRgG9AADTn/sEABAAAA==
     13   H4sIAAAAAAAAA2NgoD5oIpKmBUhA40sBMRcQcyKJkeK+AiitCKXZgdgKiMUpdSgeQEn4NSFhWthNqfsoBQlofFLiFxugd/wCAAKxUp5wAwAA
    1414  </data>
    1515 </layer>
    16  <layer name="Layer 1" width="32" height="32">
     16 <layer name="Layer 1" width="20" height="11">
    1717  <data encoding="base64" compression="gzip">
    18    H4sIAAAAAAAAA+3SSwtAQBSG4ZnC//9r7raue9e15JuikIU5lO/ZvKnB6TRKva9Ac9TTayM8D8LzSPPREm3QGB1lxxEXoh2aoRXq6PN3l90Fm2/YZmZxUXN3i8PT9/Souf8JWqv9v77oif23aIpOF2dt7J+IiIiI6C9mu1t86AAQAAA=
     18   H4sIAAAAAAAAA73RSQuAIBCGYYXq//+19q7Zcm89R/QKRgsJ5nd5EJzRYYRwH4U1RvIw4zz/8KZNYmywxxwXv9+5JMURK2wxkM+1+2yJ0cM2uneIepfKuDOh3m+BnTjX+sjdvAOWuL7Uf5nXZTbp20PJcAMAAA==
    1919  </data>
    2020 </layer>
  • trunk/maps/testmap-grass.tmx

    r47 r57  
    11<?xml version="1.0" encoding="UTF-8"?>
    2 <map version="1.0" orientation="orthogonal" width="32" height="32" tilewidth="32" tileheight="32">
     2<map version="1.0" orientation="orthogonal" width="20" height="15" tilewidth="32" tileheight="32">
    33 <tileset firstgid="1" name="Road" tilewidth="32" tileheight="32">
    44  <image source="../art/test/groundtest.png"/>
    55 </tileset>
    6  <layer name="Ground 0" width="32" height="32">
     6 <layer name="Ground 0" width="20" height="15">
    77  <data encoding="base64" compression="gzip">
    8    H4sIAAAAAAAAA+3QyQ2AMAxEUSuQAsJWQCD0XyITyWnBIPQPT5ZPY08xs/IBSSaZJfueA/MXWWWTKofsgTdU//3yzL43uV/oYMzkPUTl959P72DMFpgPAAAAAH/2ACvSWwAAEAAA
     8   H4sIAAAAAAAAAxNkYGAQHMWjeBSP4iGAAXa2kMCwBAAA
    99  </data>
    1010 </layer>
    11  <layer name="Layer 1" width="32" height="32">
     11 <layer name="Ground Decal 0" width="20" height="15">
    1212  <data encoding="base64" compression="gzip">
    13    H4sIAAAAAAAAA2NgGAUw4DjQDiAAYO5TpKEdpJhNLXcYUckcWthPjzRhhOYGWsYvPvsHMh6McLAHyv6BDouBtn+kA0YkPApGwSgYBaNgFIyCUTCcAABQE1isABAAAA==
     13   H4sIAAAAAAAAA2NgoA1gAmJmIGYBYlYon5UC84SAWBiIRYBYCYjFgFiUAjOVoG5TgZoB4qsCsRoV3AijmaDuJBeA3KQMdSOMVqXAvFEwCoY6AAA8w2LgsAQAAA==
    1414  </data>
    1515 </layer>
    16  <layer name="Wall 0" width="32" height="32">
     16 <layer name="Object 0" width="20" height="15">
    1717  <data encoding="base64" compression="gzip">
    18    H4sIAAAAAAAAA2NgGAWjYBQQAiZomF724XMHPewnBtMCsAOxFRCrI9mDzh+ouIDxQW4Rp6P9tPQ3PnPpYT8svmHhyYiEQXLqUAxLA7QOd2T7R8EoGAWjYBSMglEwCoYTAACc6uxXABAAAA==
     18   H4sIAAAAAAAAA2NgGDrAcYDsU6SR+bjMNaKyPfjMIydMjdDMpDR8jBgwzaQUGOFgU8s8aruVVn4frIARCZMCAAtPgriwBAAA
    1919  </data>
    2020 </layer>
    21  <layer name="Ground 1" width="32" height="32">
     21 <layer name="Wall 0" width="20" height="15">
    2222  <data encoding="base64" compression="gzip">
    23    H4sIAAAAAAAAA+2SwQnAIAwA7bMdoRNEF2jdf7FGUAih35jPHdwnCBfFUgDAc6tnYr+rol5T+Tkz5lE7PmqdyrS69pi1oL6lu856m7HPm9TfcW/b839hZ9/+hWX0ux/GDDLbAAAAAJF8EOMQKwAQAAA=
     23   H4sIAAAAAAAAA2NgGAWjgIHBBA2Tqx+fuZS4Bx8mBrADsRUQqyPpQ+dTy+8wPshscQrMI8Vd+NSRYx4svGDuZ0TCIDl1KIaFIan+RDaPFAAAATWdT7AEAAA=
    2424  </data>
    2525 </layer>
    26  <layer name="Object 1" width="32" height="32">
     26 <layer name="Ground 1" width="20" height="15">
    2727  <data encoding="base64" compression="gzip">
    28    H4sIAAAAAAAAA+3QsQ0AIAwDQa/CCLD/cGko6CjtwJ9kpX1FyjHdARfpfS/i59mGO+ATa0/HdTQAAACgtwJ8x6WQABAAAA==
     28   H4sIAAAAAAAAA2NgGAUjEUgBMScVzbMEYg0g5oJiDSxquEiw0xyINaFYA4o10cwCiWmR6VYtND7MfAsqmUeOu9DdgxyWlJiHHJYwTKo/GZEwNQC5ZgEAj7AOJ7AEAAA=
    2929  </data>
    3030 </layer>
    31  <layer name="Wall 1" width="32" height="32">
     31 <layer name="Object 1" width="20" height="15">
    3232  <data encoding="base64" compression="gzip">
    33    H4sIAAAAAAAAA+3RsQkAIAxE0XS6gTiBC1jp/nt5tjZ2ich/8OsLxAzATT/yllQLvmGraqgStP+rF/46VQ7aBwAAgI8FOcHtzAAQAAA=
     33   H4sIAAAAAAAAA2NgoB0wpKHZg8G+gQAjwY+kAMWBdgCNgBEUMyDR1DBzqAMAjCH/frAEAAA=
    3434  </data>
    3535 </layer>
    36  <layer name="Ground 2" width="32" height="32">
     36 <layer name="Wall 1" width="20" height="15">
    3737  <data encoding="base64" compression="gzip">
    38    H4sIAAAAAAAAA+3OsQ0AIAwDwbQwAhPABGT/yXCRgg0M0p/0tR0BvG+oXjXD/lZLzcrx4f6Rpn0AAAAA/zpR9K8YABAAAA==
     38   H4sIAAAAAAAAA2NgGAWjgIHBBA1TCtiBWJ3KZoKAJBBbAbE4lcwbKECLcLEGYg4qmTdYAQCub7nWsAQAAA==
    3939  </data>
    4040 </layer>
    41  <layer name="Object 2" width="32" height="32">
     41 <layer name="Ground 2" width="20" height="15">
    4242  <data encoding="base64" compression="gzip">
    43    H4sIAAAAAAAAA+3OQQkAAAgEQTPZwP6l/NhBDmZg/1sFGfqa7xEAAIBAC7dEfuMAEAAA
     43   H4sIAAAAAAAAA2NgGAVDEUgBMRcUc1LBPHMg1gRiDSimhpnI5lpQybxRMLIBANElvy+wBAAA
    4444  </data>
    4545 </layer>
    46  <layer name="Wall 2" width="32" height="32">
     46 <layer name="Object 2" width="20" height="15">
    4747  <data encoding="base64" compression="gzip">
    48    H4sIAAAAAAAAA+3NoREAMAgAMSQrdI869t+ryG6AILl7/REAu92vCaerLof+AADs8ABYXepiABAAAA==
     48   H4sIAAAAAAAAA2NgGAVDFRhBseNAO2QUjAI6AQDJ5AfJsAQAAA==
    4949  </data>
    5050 </layer>
    51  <layer name="Ground 3" width="32" height="32">
     51 <layer name="Wall 2" width="20" height="15">
    5252  <data encoding="base64" compression="gzip">
    53    H4sIAAAAAAAAA+3NMREAIBAEsW9BAg5QAP6VcSr4JpnZeqsAeq0002j6n7TTbfoDAMAPD4e462AAEAAA
     53   H4sIAAAAAAAAA2NgGAWjYBQQAiZImBpAEoitgZiDSuaNFAAAEtPDprAEAAA=
    5454  </data>
    5555 </layer>
    56  <layer name="Object 3" width="32" height="32">
     56 <layer name="Ground 3" width="20" height="15">
    5757  <data encoding="base64" compression="gzip">
    58    H4sIAAAAAAAAA+3OMQEAAAwCICutf7ll8PKBBCTQuXUAAACA2gPEOzOTABAAAA==
     58   H4sIAAAAAAAAA2NgGAWjYPgBKSDmAmJOKplnDsSaQGxBJfNGAXkAACtdiWSwBAAA
     59  </data>
     60 </layer>
     61 <layer name="Object 3" width="20" height="15">
     62  <data encoding="base64" compression="gzip">
     63   H4sIAAAAAAAAA2NgGAX0BoYD7YBRMAqGKAAAeZc2/bAEAAA=
    5964  </data>
    6065 </layer>
  • trunk/maps/testmap.tmx

    r54 r57  
    66 <layer name="Layer 0" width="32" height="32">
    77  <data encoding="base64" compression="gzip">
    8    H4sIAAAAAAAAA+2UOQ6DMBREHUg4ACIHoEubK+UMXIA1ZAUpF864QKLx8pEwFDPS67715PGiFDOlWMhNAP30008/Y84lICZ/AuIA2Py/aH1cflNv+cG/T2l8/Ned+NcI/f7+EjMVqEEDWtCBO+jBAzzBC7zBB3zBAEbL/c/Utu/vrGT/yFE4rzlZ+pfuf0lfmcWfOs5/jp5z3RfTGvr352fC5Q/tYutaABAAAA==
     8   H4sIAAAAAAAAA+3UOwqEMBhF4ehO7GxnS67BDajz8K3ghj2NYBP4HTBkmHvh6yQHAsY57Vj5peIC9dVXX33NvzwgX39Lw4i977u3LLHf59VZ+o9I+ndMfXu/4psaDZ544Y0PWnToMWDEhBkL1h/4//69b3nDz+dZ33314+1r4bYDtL0ryQAQAAA=
    99  </data>
    1010 </layer>
    1111 <layer name="Layer 1" width="32" height="32">
    1212  <data encoding="base64" compression="gzip">
    13    H4sIAAAAAAAAA+3VV1KDUBiG4RPLAszonXXU2EtU7L333mvsvcSusd27J5fgBlyCm/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X8Mza7lmo9XoMxZv9BVvqN9pCuP1UC0nwf3b8ecS6j/cuP7Xb852vzCqxLzPcAEAAA
    1414  </data>
    1515 </layer>
    1616 <layer name="Layer 2" width="32" height="32">
    1717  <data encoding="base64" compression="gzip">
    18    H4sIAAAAAAAAA2NgGAUwEAjEQUAcQiQOh+JQPNiWEUI/gPJpAQqJUPOBRnaPgsEL7g+0A0bBKBgFo2AUjAIygOFAO2AUjIJRMAqGMQAAIGS6LQAQAAA=
     18   H4sIAAAAAAAAA2NgGAUwEAjEQUAcQiQOh+JQPNiWEUI/gPJpAQqJUPOBRnaPgsEL7g+0A0bBKBgFo2AUjAIygOEA2+84wPaPglEwCkYBLQEAVGjjeQAQAAA=
    1919  </data>
    2020 </layer>
  • trunk/src/layer.cpp

    r47 r57  
    1313        ;
    1414    else if (sscanf(name, "Object %d", &z) == 1)
    15         ;
     15        z++;
    1616    else if (sscanf(name, "Wall %d", &z) == 1)
    1717        z++;
Note: See TracChangeset for help on using the changeset viewer.