added Gamemode Gravitychanges

This commit is contained in:
Armin Benz 2017-08-03 21:42:59 +02:00
parent bf304ffbe6
commit 71fddd2079
3 changed files with 68 additions and 59 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.0" orientation="orthogonal" renderorder="right-down" width="500" height="20" tilewidth="16" tileheight="16" nextobjectid="1">
<tileset firstgid="1" name="Tileset" tilewidth="16" tileheight="16" tilecount="100">
<tileset firstgid="1" name="Tileset" tilewidth="16" tileheight="16" tilecount="100" columns="10">
<image source="../../../data/Tileset.png" width="160" height="160"/>
</tileset>
<layer name="Kachelebene" width="500" height="20">
@ -9037,9 +9037,9 @@
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
@ -9533,50 +9533,50 @@
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="23"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
@ -14023,11 +14023,11 @@
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="16"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="19"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
@ -14523,11 +14523,11 @@
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="16"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="19"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
@ -15023,11 +15023,11 @@
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="16"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="19"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
@ -15523,11 +15523,11 @@
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="16"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="19"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
@ -16023,11 +16023,11 @@
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="16"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="19"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
@ -16523,11 +16523,11 @@
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="16"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="19"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
@ -17023,11 +17023,11 @@
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="16"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="19"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
@ -17523,11 +17523,11 @@
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="16"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="19"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
@ -18023,11 +18023,11 @@
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="16"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="19"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
@ -18523,11 +18523,11 @@
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="16"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="19"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
@ -19023,11 +19023,11 @@
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="16"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="19"/>
<tile gid="0"/>
<tile gid="0"/>
<tile gid="0"/>

View File

@ -104,6 +104,15 @@ public class CRGameRenderer extends AbstractGameRenderer {
shapeRenderer.rect(x*ftw+8, y*ftw+8, ftw-16, ftw-16);
shapeRenderer.rect(x*ftw+12, y*ftw+12, ftw-24, ftw-24);
break;
case GRAVITY:
shapeRenderer.setColor(1, 1, 0, 1f);
shapeRenderer.rect(x*ftw+0, y*ftw+0, ftw-0, ftw-0);
shapeRenderer.rect(x*ftw+4, y*ftw+4, ftw-8, ftw-8);
shapeRenderer.rect(x*ftw+8, y*ftw+8, ftw-16, ftw-16);
shapeRenderer.rect(x*ftw+12, y*ftw+12, ftw-24, ftw-24);
break;
case NOTHING:
break;
}

View File

@ -38,7 +38,7 @@ public class CRMapStorage {
public static final CRTiledMap map_25 = register("map_pieces", "p25.tmx");
public static final CRTiledMap map_26 = register("map_pieces", "p26.tmx");
public static final CRTiledMap lvl_01 = load("levels", "plevel002.tmx");
public static final CRTiledMap lvl_01 = load("levels", "plevel001.tmx");
private static CRTiledMap load(String folder, String path) {
return internalload(folder, path, false);