Level 1 Change
Misc
This commit is contained in:
parent
f580e72ad3
commit
1672f9c6c9
3 changed files with 27 additions and 5 deletions
|
@ -1,17 +1,22 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<map version="1.0" orientation="orthogonal" renderorder="right-down" width="40" height="8" tilewidth="64" tileheight="64" nextobjectid="21">
|
||||
<map version="1.0" orientation="orthogonal" renderorder="right-down" width="50" height="8" tilewidth="64" tileheight="64" nextobjectid="23">
|
||||
<tileset firstgid="1" name="platformSet" tilewidth="64" tileheight="64" tilecount="3" columns="3">
|
||||
<image source="../spritesheets/platformSet.png" width="192" height="64"/>
|
||||
</tileset>
|
||||
<layer name="PLATFORM" width="40" height="8">
|
||||
<layer name="PLATFORM" width="50" height="8">
|
||||
<data encoding="base64" compression="zlib">
|
||||
eJxjYBgF+AATEh4sgBGKRwpgxoPx6UEGjAz4w41Y85mwYHyAEQtGtg+fPmSaWPNpAXD5daikQXzpBwC0fABt
|
||||
eJxjYBgF1ABMSJgYwAjEzGj0QAHGAbZ/qANmPBifHmTAyIA/Hkg1nxBgwoLxAUYsGNld+PQh06S4DZvZ2NxAbYArTCi1j5TygR6AnHSLDgAqVwCE
|
||||
</data>
|
||||
</layer>
|
||||
<objectgroup name="BOUNDARY">
|
||||
<object id="17" x="-64" y="0" width="2624" height="704"/>
|
||||
<object id="17" x="-64" y="-192" width="3328" height="896"/>
|
||||
</objectgroup>
|
||||
<objectgroup name="PLAYER">
|
||||
<object id="19" gid="3" x="64" y="320" width="64" height="64"/>
|
||||
</objectgroup>
|
||||
<objectgroup name="test">
|
||||
<object id="22" x="0" y="512">
|
||||
<polyline points="0,0 1664,-512 3200,0 1664,0 0,0"/>
|
||||
</object>
|
||||
</objectgroup>
|
||||
</map>
|
||||
|
|
17
core/assets/levels/level2.tmx
Normal file
17
core/assets/levels/level2.tmx
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<map version="1.0" orientation="orthogonal" renderorder="right-down" width="50" height="8" tilewidth="64" tileheight="64" nextobjectid="21">
|
||||
<tileset firstgid="1" name="platformSet" tilewidth="64" tileheight="64" tilecount="3" columns="3">
|
||||
<image source="../spritesheets/platformSet.png" width="192" height="64"/>
|
||||
</tileset>
|
||||
<layer name="PLATFORM" width="50" height="8">
|
||||
<data encoding="base64" compression="zlib">
|
||||
eJxjYBgFo2B4ACY62MGIhAmpo5Z91ABMaBgZMEMxslpS3IXNvMEMBrv7hhIAAE/AACE=
|
||||
</data>
|
||||
</layer>
|
||||
<objectgroup name="BOUNDARY">
|
||||
<object id="17" x="-64" y="-192" width="3328" height="896"/>
|
||||
</objectgroup>
|
||||
<objectgroup name="PLAYER">
|
||||
<object id="19" gid="3" x="64" y="320" width="64" height="64"/>
|
||||
</objectgroup>
|
||||
</map>
|
|
@ -64,7 +64,7 @@ public class Player extends Base {
|
|||
{
|
||||
if(curAction == Action.JUMPING)
|
||||
{
|
||||
body.applyForceToCenter(new Vector2(0, 100), true);
|
||||
body.applyForceToCenter(new Vector2(0, 65), true);
|
||||
curAction = Action.FALLING;
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue