Created
November 25, 2012 05:35
-
-
Save kyleconroy/4142509 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<map version="1.0" orientation="orthogonal" width="220" height="18" tilewidth="24" tileheight="24"> | |
<properties> | |
<property name="blue" value="249"/> | |
<property name="floor" value="12"/> | |
<property name="green" value="154"/> | |
<property name="offset" value="2"/> | |
<property name="red" value="125"/> | |
<property name="soundtrack" value="greendale"/> | |
<property name="title" value="Greendale Exterior"/> | |
</properties> | |
<tileset firstgid="1" name="greendale-exterior" tilewidth="24" tileheight="24"> | |
<image source="greendale.png" width="480" height="480"/> | |
</tileset> | |
<layer name="city_little_clouds" width="220" height="18"> | |
<properties> | |
<property name="parallax" value="0.25"/> | |
</properties> | |
<data encoding="base64" compression="zlib"> | |
eJztmAGSgjAMRbmEh7DVO3L0ZdXWEBJoaZF1570ZB9okP0lbHHEYAAAAAAAAoJbL2QUAAAAAAEBm+n0+nl3Df+Qb1vUbauxJS79b77Gta+np99yjXu/iLTp//f+A1vpK4rf29IznsrTvjmdoPErbyddk9/x6rltt/0d955Ta9/jv9fn02rRSm/9e7jfeGnMlHT2ndWuQNZT20qOPLVItvbStNSrt90gtT39NrzZXjX/qzTpna+x5bm4qj9a4TuPwvOb7OH3C3CZ9ku3Xb4wvu+UT3rYcI32uQkdoPK7xnXc2r++3xq9eFjYdI/Np21oOz1/7BqMWS9fS9GIsvTSn4x29vE/R3t/FflnnQI/DMNv/rGXlkPn1nDonXu9mTBiWvUXhL/xcDatWK073GNXayngAAAAAAAAAAACAs/gBVAxqNg== | |
</data> | |
</layer> | |
<layer name="hedge_big_clouds" width="220" height="18"> | |
<properties> | |
<property name="parallax" value="0.4"/> | |
</properties> | |
<data encoding="base64" compression="zlib"> | |
eJzt11sKwjAQRuEouIW6Gvfm0iX0pUIhTWxu9jtw6Nvkz8zkoSEgl2X1LQdyKZnXCHN+rh7OUCNzSc0RepfKUTPjtvYovSghd/8iy+abe++S8/bOj+eeUWuPX+rWyhQZec9GytYiS805p+jR69pn5tYfad+uzGxz6PluZ2e2WQNn4w2glNa7Y1f7c+UZpO7eojf/+K8EAAAAAKjH40ayla9AspV3kiRJkiRJfvkBiXxbxQ== | |
</data> | |
</layer> | |
<layer name="background" width="220" height="18"> | |
<data encoding="base64" compression="zlib"> | |
eJztmF1uEzEQxx0K5QRIgNQcoUfgEGlJ+Sx5ogWJj77wwJfMR16TggSFt6oFjgBSpV6ACqReAMpN+E/sUSbGu5vserNk47/000y8Xu+s6/F4q1RUVJRP5wRRUVFR86wGWLI0Ko4lKqruWnKYB3WV0t0pPetxBrOseVw7RVXVnG2mXLvnoYiobm8hxxyUpCz1QAt8srY12qZLfHSpctdNzLnxFXqusvb0rL2+aL5Rft3CWl4HN00t86Fc0Fetm3uDqa71LSnfGpbVwPzvWgCL1vrga3nHTmID/FHqhPbznvE7RG/4e1f4nb4yez/5PP64+Za0T6TFNwkhxLWMbctpK1MNh5DKqm9J+8tl0AZr1gINX5PFNT2r+1JZ+Za1RinfplHf0s4xFAfOiB3UrE5eGyrfqqxv9A6bllDv49Oyp432Ud5Xee/dBnfAXWGBhq/Zyv503u6b+3SJ4efSWWvPgwvgIrhiuYp4hT+wN5y+44rOXXzmSqtvsoZxfesrb33T22ry+jYr+VZlfasy35L2l2fgubBAw9dsZ6W++fJtw3Id73HNQP6g7aHKl28flfn/Alv65nmkpl/f0tQWrI36uu1cTyOEplHfqv4OWvbUnz2wb63kDXgrLNDwNVu3/75p+2f8qpWWbw8Q730D+YXzrSusC43NZ/S28bXz/Zbo8zOK5pust+65pY7fbxQrn7vIF+e3wW8+o5VV43z17Sv4Zq30P4MvwgINX7NNuE+XFHpu+fLtpeUV4j0ykD9oe63C1Lctp43ybdWexxaMv8tzlwUrRL5hje2SpXPLId790Pjars1BfNvWcl/XhpCsZU/AUxW+vk17D3Hly7fv4Mha6VOeHQh7YPOMbcJ9uqTQc6mpTL6RlTn03rKDeN/BAr1j2z6ocPVNtnG+8RqnfOO5y4LFOfZCFa9vlG/HiOVYDfNtmmuT686KGub9im3vB1pHC2LsMt7pVAZ0nnTbfoHf1kr/B/gpLNDwNduE+0bG52/2pv3dVKPf8s0EZJ+sd0qDxlp0OFGDM1oq6KO5/7jPcp/jg/KN1zjlG89dFu6zLuWcj5Q50PKd8zBpLLcFPCeyrcjfndkTY7vfPy55xj9dc6SqjiUSOVNzpKqOJRKpO1JVxxKJ1B2pqmOJRP4CnzS6TQ== | |
</data> | |
</layer> | |
<layer name="foreground" width="220" height="18"> | |
<data encoding="base64" compression="zlib"> | |
eJztWjtvFDEQHgmQktAE2iQQKYESSKiOJofIHY+QIhI1HKBUUIKACjcBGkQkqABBIqWBPi3cD8iPQDx7ngIaPt/aZOR419477+4l8id9sj3rtWfGHs/u3hFFREREbD80iFamFFFvV61PRPcYIhJDVSsRkQoZa2OsPZbI2hWpUyjOYy/OgefAswkJdZpLrhWKBfhZMq0dCgNE4wMFjOvCRAVzbkdM2WXtsvWwYZA6+0eW4nSPY13FGC3wEngR1HLUCTJqJX2C445fH+Hs5Imq4i3CD1XF28JmKYoY38xltzzmQR8KnfMe+vURAabqoB/iLS3XDSYUrvt9+/UjdI6wUdqEZ0cZXy3dX9YbrG3Dzc0xRBq71TfEWT+kcpluL+UYc4nVW8lYPWGn5reJjGvynWS2gHiZDT1ghRiFf0Y9+slYu+Ho08t6LwZYpwHHeVEmZH5bU/VHTK5ly1RcfpN7/gJKztB7dixF7jpnvoLfwO/gD/An+MtxT4hz6SA43usgClm5zMUR2DLiMYfcy65nrl7iLYRP+yne+iG/7Qo1uAXIc+/kWX2EOmd2py3lPs/ReRHiXDoeQI9Q8I033paNy+AV2vzesJPy24aFecDzG8eyKtcozD6CXsJGeS1UvA2D+8D9hnxEzcP3j885kxeucwl6CegnhjP68XhLsydNHhpmvPF5dWnuZd6W3xtuU7n5zZaXy4g37RvuI9t6l5Hf8r4rdftMOQkeAg8bch1vR8FjSrbqOeYL8KVn31WHndBLQD8x6RlvafakyUOD+8ucV5dZ8cZkK93qkDe/2eIty995kRZv2jfcR7b1Vvltiz76XS5UfisLNaO9l+z5bb2AudcdfjqB6zVHH/N5spbc18E18DolNpl2cjQDfY+yPU/WjHI7xFtZz5N6rXRpW++y39+KxrzRlvvXFm+LBcyt90aDqK7/DzXNKNvQT5hyTqkv/y8Vt+cuJROcUXbeA++DDww9ME49hD22eJs3yqLjjflmvKk+JTVV26S8XmW8mb5RdWHovOKaw9wT84asqX4PRVm3+WHa+OT2BnxL6T+iajs+gZ/BLy4FDbwHP4AfQfk/hFPKZpSdjQiKIuON/2aMujhAW39HnrKcYZY+bV2fAR+DTyixSeIp+Ax8btwn443/B1LT1w7dX/qrYaxdPeF/3fVebiRztrPqHL79tU9njPtfga8tusu15uusddRnoMvmLEq9suLN9I0NPvuu229E2ncblvtPZtyn7fgN/gH/djP5DsNuxoiIiGKxhzEiIqJYxHiLiCgPMd4i+gn/AK+REbA= | |
</data> | |
</layer> | |
<layer name="leaves" width="220" height="18"> | |
<data encoding="base64" compression="zlib"> | |
eJztmbtOwzAUhj2CWApPwFDY23IrA02HqF069A1YeAF4gaxcXqFSN1jYQTBkpxKIywwL8AzAwm8aq5aVOI5r0qQ6n/RLqa9/Tn2cxmWMIAiCIAiCINzjM+bVGBty4TqctR+CmFd4rsWUhfk7IYrIAvZgTd1qfk7Kj6+JJT3r5he+x5p+t5Rv7qil14d5+Cgr/ljBrH1kQf49o+Yc8id0pGHOt1UKdPmGuv2yraW8WSxZfPJ6d6B8i4fvzzyvVFGezSd+fFngep6y5Rv87us8j3L0QthRgZahlVkbUZD3WJ5r8BfAZ1BR8m4T2oK2oZ2Mc6TlmzrXtBQ11oQZV9B1dH0IHVmMUYXWoPUMfR6hJ+gZerGY0wb4C+Az4GcfDcbehHidfO9yXZrS8q3qON9sYl1kLhOus/QzZSmm7By6MGybhXp0vlZ3eM4me2pm7HsMnUCn0NkU8ybFPSleTcfr3/b3ZJI/3Z4n+vBY71qOb4vr8VxyBw2kz+/QB/TJJu/s/H0e++PffxFMKr+BbqN+4r95ft34f9uxDDR1Xem652jMtPYHyBeTWHQTyntRvonnUzumTZuZP+Ns803cQ9+gbT9aG6KPumduaMbnjAz3GNPv2gVxcbflVRnzC/qGfpR2HTY+RPOkeNxDD1IbUd9x6M+WmrS2Wmzs34akNa7DY5M4mcyra8PPDAyGMMI234S/lkUfgccma2NPySnX66UI648gCIIgCIIgCIKYnl8yX4S/ | |
</data> | |
</layer> | |
<objectgroup color="#0007a4" name="nodes" width="220" height="18"> | |
<object name="main" type="door" x="1852" y="265" width="38" height="44"> | |
<properties> | |
<property name="level" value="hallway"/> | |
<property name="to" value="hallway1"/> | |
</properties> | |
</object> | |
<object type="sprite" x="1214" y="166" width="53" height="53"> | |
<properties> | |
<property name="animation" value="1-4,1"/> | |
<property name="height" value="28"/> | |
<property name="sheet" value="images/greendale-flag.png"/> | |
<property name="width" value="34"/> | |
</properties> | |
</object> | |
<object name="admin2" type="door" x="406" y="286" width="27" height="48"> | |
<properties> | |
<property name="level" value="deans-office"/> | |
<property name="to" value="main"/> | |
</properties> | |
</object> | |
<object name="bushes_right" type="door" x="1080" y="288" width="24" height="48"> | |
<properties> | |
<property name="level" value="baseball"/> | |
<property name="to" value="main"/> | |
</properties> | |
</object> | |
<object name="classHallway" type="door" x="2928" y="287" width="25" height="47"> | |
<properties> | |
<property name="level" value="class-hallway"/> | |
<property name="to" value="main"/> | |
</properties> | |
</object> | |
<object name="borchert" type="door" x="3360" y="264" width="47" height="49"> | |
<properties> | |
<property name="level" value="borchert-hallway"/> | |
<property name="to" value="main"/> | |
</properties> | |
</object> | |
<object name="admin1" type="door" x="335" y="286" width="25" height="48"> | |
<properties> | |
<property name="level" value="admin-hallway"/> | |
<property name="to" value="main"/> | |
</properties> | |
</object> | |
<object name="dorm" type="door" x="4176" y="287" width="48" height="50"> | |
<properties> | |
<property name="level" value="dorm-lobby"/> | |
<property name="to" value="main"/> | |
</properties> | |
</object> | |
<object type="info" x="1119" y="316" width="16" height="9"> | |
<properties> | |
<property name="info" value="Luis Guzmán"/> | |
</properties> | |
</object> | |
<object type="info" x="1515" y="292" width="16" height="40"> | |
<properties> | |
<property name="info" value="No talking, the hats speak for themselves"/> | |
</properties> | |
</object> | |
<object type="info" x="77" y="316" width="60" height="18"> | |
<properties> | |
<property name="info" value="Greendale Community College ... | You're Already Accepted, yo"/> | |
</properties> | |
</object> | |
<object type="info" x="4729" y="289" width="46" height="48"> | |
<properties> | |
<property name="info" value="This door is locked"/> | |
</properties> | |
</object> | |
<object type="info" x="2521" y="289" width="46" height="47"> | |
<properties> | |
<property name="info" value="contents under construction"/> | |
</properties> | |
</object> | |
<object name="admin3" type="door" x="672" y="288" width="25" height="49"> | |
<properties> | |
<property name="level" value="gazette-office"/> | |
<property name="to" value="main"/> | |
</properties> | |
</object> | |
<object type="airplane" x="3768" y="72" width="168" height="24"/> | |
<object name="bushes" type="door" x="936" y="288" width="24" height="48"> | |
<properties> | |
<property name="level" value="trampoline"/> | |
<property name="to" value="main"/> | |
</properties> | |
</object> | |
</objectgroup> | |
<objectgroup color="#a40098" name="platform" width="220" height="18"> | |
<object x="226" y="240" width="37" height="15"/> | |
<object x="242" y="313" width="43" height="13"/> | |
<object x="304" y="145" width="505" height="11"/> | |
<object x="289" y="241" width="166" height="12"/> | |
<object x="648" y="241" width="166" height="13"/> | |
<object x="1010" y="313" width="44" height="13"/> | |
<object x="1201" y="313" width="44" height="12"/> | |
<object x="1121" y="275" width="13" height="26"/> | |
<object x="1374" y="278" width="35" height="12"/> | |
<object x="1657" y="183" width="380" height="17"/> | |
<object x="1778" y="135" width="188" height="14"/> | |
<object x="1753" y="145" width="20" height="11"/> | |
<object x="1969" y="145" width="21" height="11"/> | |
<object x="2050" y="240" width="37" height="14"/> | |
<object x="2164" y="312" width="42" height="13"/> | |
<object x="79" y="313" width="58" height="16"/> | |
<object x="4831" y="146" width="131" height="11"/> | |
<object x="4687" y="216" width="299" height="13"/> | |
<object x="5025" y="298" width="29" height="9"/> | |
<object x="848" y="297" width="29" height="9"/> | |
<object x="4447" y="313" width="35" height="14"/> | |
<object x="2499" y="257" width="91" height="13"/> | |
<object x="2497" y="121" width="344" height="21"/> | |
<object x="2977" y="314" width="46" height="14"/> | |
<object x="2791" y="313" width="35" height="13"/> | |
<object x="3264" y="233" width="430" height="12"/> | |
<object x="3175" y="312" width="34" height="13"/> | |
<object x="3335" y="313" width="97" height="10"/> | |
<object x="3274" y="144" width="412" height="11"/> | |
<object x="3871" y="313" width="34" height="14"/> | |
<object x="1775" y="312" width="193" height="10"/> | |
<object x="1466" y="312" width="44" height="10"/> | |
<object x="2702" y="97" width="43" height="11"/> | |
<object x="4764" y="28" width="24" height="8"/> | |
<object x="2471" y="228"> | |
<polygon points="0,0 -192,-53 -191,-43 0,10"/> | |
</object> | |
<object x="2275" y="168"> | |
<polygon points="-4,3 33,-33 220,-33 220,-25 34,-25 5,3"/> | |
</object> | |
<object x="3252" y="124"> | |
<polygon points="0,0 26,0 133,-30 133,-18 27,10 0,10"/> | |
</object> | |
<object x="3385" y="80"> | |
<polygon points="0,0 96,-26 192,0 192,11 0,9"/> | |
</object> | |
<object x="3709" y="124"> | |
<polygon points="0,0 -26,0 -133,-30 -133,-19 -26,8 0,8"/> | |
</object> | |
</objectgroup> | |
<objectgroup name="floor" width="220" height="18"> | |
<object x="0" y="336" width="5279" height="100"/> | |
</objectgroup> | |
</map> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.projecthawkthorne.trampoline; | |
import com.badlogic.gdx.ApplicationListener; | |
import com.badlogic.gdx.Gdx; | |
import com.badlogic.gdx.Input.Keys; | |
import com.badlogic.gdx.assets.AssetManager; | |
import com.badlogic.gdx.assets.loaders.TileMapRendererLoader.TileMapParameter; | |
import com.badlogic.gdx.graphics.GL10; | |
import com.badlogic.gdx.graphics.OrthographicCamera; | |
import com.badlogic.gdx.graphics.g2d.tiled.TileMapRenderer; | |
public class TrampolineGame implements ApplicationListener { | |
private OrthographicCamera camera; | |
private AssetManager assetManager; | |
private TileMapRenderer tileMapRenderer; | |
@Override | |
public void create() { | |
camera = new OrthographicCamera(); | |
camera.setToOrtho(false, 800, 480); | |
assetManager = new AssetManager(); | |
TileMapParameter tileMapParameter = new TileMapParameter("maps", 8, 8); | |
assetManager.load("maps/greendale.tmx", TileMapRenderer.class, tileMapParameter); | |
// Don't care about async right now | |
assetManager.finishLoading(); | |
tileMapRenderer = assetManager.get("maps/greendale.tmx", TileMapRenderer.class); | |
} | |
@Override | |
public void dispose() { | |
} | |
@Override | |
public void render() { | |
Gdx.gl.glClearColor(1, 1, 1, 1); | |
Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT); | |
if(Gdx.input.isKeyPressed(Keys.LEFT)) { | |
camera.translate(-400 * Gdx.graphics.getDeltaTime(), 0); | |
} | |
if(Gdx.input.isKeyPressed(Keys.RIGHT)) { | |
camera.translate(400 * Gdx.graphics.getDeltaTime(), 0); | |
} | |
camera.update(); | |
tileMapRenderer.render(camera); | |
} | |
@Override | |
public void resize(int width, int height) { | |
} | |
@Override | |
public void pause() { | |
} | |
@Override | |
public void resume() { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment