1
0
Fork 0

Draw floaters, add more cars, allow different car speeds.

This commit is contained in:
Gonzalo Delgado 2023-08-31 14:52:37 -03:00
parent f4c0dafa31
commit 571849a9ad
4 changed files with 738 additions and 353 deletions

View File

@ -11,16 +11,18 @@ local game = {
PLAYFIELD_OFFSET_TOP=1.5,
PLAYFIELD_WIDTH=20,
PLAYFIELD_HEIGHT=10,
VEHICLE_SPEED=10,
FLOATDEV_SPEED=8,
playFieldTiles={},
map=sti("map.lua"),
entities={
vehicles={},
floatdevs={},
},
default_speeds={
floatdev=8,
vehicle=10,
},
hazards={},
drawGrid=true,
drawGrid=false,
}
function t2p(tileDim)
@ -78,12 +80,10 @@ function love.load()
type=mapObj.type,
gid=mapObj.gid,
}
if mapObj.type == "vehicle" then
local tile = game.map.tiles[mapObj.gid] or game.map:setFlippedGID(mapObj.gid)
if mapObj.type == "vehicle" or mapObj.type == "floatdev" then
local tile = game.map.tiles[mapObj.gid] or game.map.tiles[game.map:setFlippedGID(mapObj.gid)]
entity.collider = tile.objectGroup.objects[1]
end
if entity.type == "floatdev" then
entity.speed = mapObj.properties.speed or game.FLOATDEV_SPEED
entity.speed = mapObj.properties.speed or game.default_speeds[mapObj.type]
end
table.insert(game.entities[typekey], entity)
end
@ -173,21 +173,25 @@ function love.update(dt)
player.turtleHit = true
end
vehicle.y = vehicle.y + game.VEHICLE_SPEED*dt
vehicle.y = vehicle.y + vehicle.speed*dt
if vehicle.y > t2p(game.PLAYFIELD_HEIGHT) then
vehicle.y = -vehicle.h
end
if vehicle.y + vehicle.h < t2p(0) then
vehicle.y = t2p(game.PLAYFIELD_HEIGHT)
end
end
local was_floating = player.float_speed ~= 0
player.float_speed = 0
for i, floatdev in ipairs(game.entities.floatdevs) do
if player.float_speed == 0 and rectanglesIntersect(playerRect, floatdev) then
local colliderRect = {x=floatdev.x + floatdev.collider.x, y=floatdev.y + floatdev.collider.y, w=floatdev.collider.width, h=floatdev.collider.height}
if player.float_speed == 0 and rectanglesIntersect(playerRect, colliderRect) then
if not was_floating then
if math.abs(player.pos.y - floatdev.y) > math.abs(player.pos.y - (floatdev.y + floatdev.h)) then
player.pos.y = floatdev.y
if math.abs(player.pos.y - colliderRect.y) > math.abs(player.pos.y - (colliderRect.y + colliderRect.h)) then
player.pos.y = colliderRect.y
player.turtlePos.y = player.pos.y + game.TILE_SIZE*2
else
player.pos.y = floatdev.y + floatdev.h - game.TILE_SIZE
player.pos.y = colliderRect.y + colliderRect.h - game.TILE_SIZE
player.turtlePos.y = player.pos.y - game.TILE_SIZE
end
end
@ -245,9 +249,13 @@ function love.draw()
love.graphics.setColor(0.9, 0.1, 0)
-- love.graphics.rectangle("line", vehicle.x + vehicle.collider.x, vehicle.y + vehicle.collider.y, vehicle.collider.width, vehicle.collider.height)
end
love.graphics.setColor(0.8, 0.7, 0)
for i, floatdev in ipairs(game.entities.floatdevs) do
love.graphics.rectangle("fill", floatdev.x, floatdev.y, floatdev.w, floatdev.h)
local tile = game.map.tiles[floatdev.gid] or game.map:setFlippedGID(floatdev.gid)
local tileset = game.map.tilesets[tile.tileset]
local image = tileset.image
love.graphics.setColor(1, 1, 1)
love.graphics.draw(image, tile.quad, floatdev.x, floatdev.y)
love.graphics.setColor(0.9, 0.1, 0)
end
if player.dead then
love.graphics.setColor(0.8, 0.1, 0)

852
map.lua
View File

@ -9,7 +9,7 @@ return {
tilewidth = 16,
tileheight = 16,
nextlayerid = 6,
nextobjectid = 35,
nextobjectid = 67,
properties = {},
tilesets = {
{
@ -49,7 +49,7 @@ return {
columns = 10,
image = "sprites.png",
imagewidth = 160,
imageheight = 32,
imageheight = 128,
transparentcolor = "#ff00ff",
objectalignment = "unspecified",
tileoffset = {
@ -63,7 +63,7 @@ return {
},
properties = {},
wangsets = {},
tilecount = 10,
tilecount = 40,
tiles = {
{
id = 0,
@ -157,6 +157,161 @@ return {
}
}
}
},
{
id = 3,
objectGroup = {
type = "objectgroup",
draworder = "index",
id = 2,
name = "",
visible = true,
opacity = 1,
offsetx = 0,
offsety = 0,
parallaxx = 1,
parallaxy = 1,
properties = {},
objects = {
{
id = 1,
name = "",
type = "",
shape = "rectangle",
x = 0,
y = 0,
width = 16,
height = 32,
rotation = 0,
visible = true,
properties = {}
}
}
}
},
{
id = 4,
objectGroup = {
type = "objectgroup",
draworder = "index",
id = 2,
name = "",
visible = true,
opacity = 1,
offsetx = 0,
offsety = 0,
parallaxx = 1,
parallaxy = 1,
properties = {},
objects = {
{
id = 1,
name = "",
type = "",
shape = "rectangle",
x = 0,
y = 0,
width = 16,
height = 32,
rotation = 0,
visible = true,
properties = {}
}
}
}
},
{
id = 5,
objectGroup = {
type = "objectgroup",
draworder = "index",
id = 2,
name = "",
visible = true,
opacity = 1,
offsetx = 0,
offsety = 0,
parallaxx = 1,
parallaxy = 1,
properties = {},
objects = {
{
id = 1,
name = "",
type = "",
shape = "rectangle",
x = 1,
y = 1,
width = 14,
height = 24,
rotation = 0,
visible = true,
properties = {}
}
}
}
},
{
id = 6,
objectGroup = {
type = "objectgroup",
draworder = "index",
id = 2,
name = "",
visible = true,
opacity = 1,
offsetx = 0,
offsety = 0,
parallaxx = 1,
parallaxy = 1,
properties = {},
objects = {
{
id = 1,
name = "",
type = "",
shape = "rectangle",
x = 1,
y = 1,
width = 14,
height = 22,
rotation = 0,
visible = true,
properties = {}
}
}
}
},
{
id = 7,
objectGroup = {
type = "objectgroup",
draworder = "index",
id = 2,
name = "",
visible = true,
opacity = 1,
offsetx = 0,
offsety = 0,
parallaxx = 1,
parallaxy = 1,
properties = {},
objects = {
{
id = 1,
name = "",
type = "",
shape = "rectangle",
x = 1,
y = 1,
width = 14,
height = 26,
rotation = 0,
visible = true,
properties = {}
}
}
}
}
}
}
@ -245,279 +400,6 @@ return {
parallaxy = 1,
properties = {},
objects = {
{
id = 8,
name = "",
type = "floatdev",
shape = "rectangle",
x = 82,
y = -8,
width = 12,
height = 32,
rotation = 0,
visible = true,
properties = {}
},
{
id = 22,
name = "",
type = "floatdev",
shape = "rectangle",
x = 146,
y = -8,
width = 12,
height = 32,
rotation = 0,
visible = true,
properties = {}
},
{
id = 25,
name = "",
type = "floatdev",
shape = "rectangle",
x = 194,
y = -8,
width = 12,
height = 32,
rotation = 0,
visible = true,
properties = {
["speed"] = 18
}
},
{
id = 11,
name = "",
type = "floatdev",
shape = "rectangle",
x = 98,
y = 16,
width = 12,
height = 32,
rotation = 0,
visible = true,
properties = {
["speed"] = 12
}
},
{
id = 21,
name = "",
type = "floatdev",
shape = "rectangle",
x = 162,
y = 16,
width = 12,
height = 32,
rotation = 0,
visible = true,
properties = {
["speed"] = -10
}
},
{
id = 12,
name = "",
type = "floatdev",
shape = "rectangle",
x = 114,
y = 16,
width = 12,
height = 48,
rotation = 0,
visible = true,
properties = {
["speed"] = -16
}
},
{
id = 20,
name = "",
type = "floatdev",
shape = "rectangle",
x = 178,
y = 16,
width = 12,
height = 48,
rotation = 0,
visible = true,
properties = {
["speed"] = -18
}
},
{
id = 7,
name = "",
type = "floatdev",
shape = "rectangle",
x = 82,
y = 56,
width = 12,
height = 32,
rotation = 0,
visible = true,
properties = {}
},
{
id = 19,
name = "",
type = "floatdev",
shape = "rectangle",
x = 146,
y = 56,
width = 12,
height = 32,
rotation = 0,
visible = true,
properties = {}
},
{
id = 24,
name = "",
type = "floatdev",
shape = "rectangle",
x = 194,
y = 56,
width = 12,
height = 32,
rotation = 0,
visible = true,
properties = {
["speed"] = 18
}
},
{
id = 10,
name = "",
type = "floatdev",
shape = "rectangle",
x = 98,
y = 80,
width = 12,
height = 32,
rotation = 0,
visible = true,
properties = {
["speed"] = 12
}
},
{
id = 18,
name = "",
type = "floatdev",
shape = "rectangle",
x = 162,
y = 80,
width = 12,
height = 32,
rotation = 0,
visible = true,
properties = {
["speed"] = -10
}
},
{
id = 13,
name = "",
type = "floatdev",
shape = "rectangle",
x = 114,
y = 128,
width = 12,
height = 48,
rotation = 0,
visible = true,
properties = {
["speed"] = -16
}
},
{
id = 16,
name = "",
type = "floatdev",
shape = "rectangle",
x = 178,
y = 128,
width = 12,
height = 48,
rotation = 0,
visible = true,
properties = {
["speed"] = -18
}
},
{
id = 6,
name = "",
type = "floatdev",
shape = "rectangle",
x = 82,
y = 120,
width = 12,
height = 32,
rotation = 0,
visible = true,
properties = {}
},
{
id = 17,
name = "",
type = "floatdev",
shape = "rectangle",
x = 146,
y = 120,
width = 12,
height = 32,
rotation = 0,
visible = true,
properties = {}
},
{
id = 23,
name = "",
type = "floatdev",
shape = "rectangle",
x = 194,
y = 120,
width = 12,
height = 32,
rotation = 0,
visible = true,
properties = {
["speed"] = 18
}
},
{
id = 9,
name = "",
type = "floatdev",
shape = "rectangle",
x = 98,
y = 144,
width = 12,
height = 32,
rotation = 0,
visible = true,
properties = {
["speed"] = 12
}
},
{
id = 15,
name = "",
type = "floatdev",
shape = "rectangle",
x = 162,
y = 144,
width = 12,
height = 32,
rotation = 0,
visible = true,
properties = {
["speed"] = -10
}
},
{
id = 30,
name = "",
@ -530,7 +412,25 @@ return {
rotation = 0,
gid = 11,
visible = true,
properties = {}
properties = {
["speed"] = 18
}
},
{
id = 55,
name = "",
type = "vehicle",
shape = "rectangle",
x = 256,
y = 152,
width = 16,
height = 32,
rotation = 0,
gid = 11,
visible = true,
properties = {
["speed"] = 12
}
},
{
id = 31,
@ -544,7 +444,25 @@ return {
rotation = 0,
gid = 13,
visible = true,
properties = {}
properties = {
["speed"] = 18
}
},
{
id = 57,
name = "",
type = "vehicle",
shape = "rectangle",
x = 256,
y = 64,
width = 16,
height = 32,
rotation = 0,
gid = 13,
visible = true,
properties = {
["speed"] = 12
}
},
{
id = 32,
@ -587,6 +505,384 @@ return {
gid = 11,
visible = true,
properties = {}
},
{
id = 35,
name = "",
type = "floatdev",
shape = "rectangle",
x = 80.25,
y = 86.25,
width = 16,
height = 32,
rotation = 0,
gid = 14,
visible = true,
properties = {}
},
{
id = 44,
name = "",
type = "floatdev",
shape = "rectangle",
x = 144,
y = 16,
width = 16,
height = 32,
rotation = 0,
gid = 14,
visible = true,
properties = {
["speed"] = 10
}
},
{
id = 48,
name = "",
type = "floatdev",
shape = "rectangle",
x = 160,
y = 112,
width = 16,
height = 32,
rotation = 0,
gid = 14,
visible = true,
properties = {
["speed"] = -10
}
},
{
id = 36,
name = "",
type = "floatdev",
shape = "rectangle",
x = 112,
y = 48,
width = 16,
height = 32,
rotation = 0,
gid = 14,
visible = true,
properties = {
["speed"] = -16
}
},
{
id = 37,
name = "",
type = "floatdev",
shape = "rectangle",
x = 112,
y = 144,
width = 16,
height = 32,
rotation = 0,
gid = 14,
visible = true,
properties = {
["speed"] = -16
}
},
{
id = 38,
name = "",
type = "floatdev",
shape = "rectangle",
x = 95.75,
y = 48.5,
width = 16,
height = 32,
rotation = 0,
gid = 15,
visible = true,
properties = {
["speed"] = 12
}
},
{
id = 39,
name = "",
type = "floatdev",
shape = "rectangle",
x = 80.75,
y = 24.75,
width = 16,
height = 32,
rotation = 0,
gid = 15,
visible = true,
properties = {}
},
{
id = 45,
name = "",
type = "floatdev",
shape = "rectangle",
x = 144,
y = 88,
width = 16,
height = 32,
rotation = 0,
gid = 15,
visible = true,
properties = {
["speed"] = 10
}
},
{
id = 47,
name = "",
type = "floatdev",
shape = "rectangle",
x = 160,
y = 48,
width = 16,
height = 32,
rotation = 0,
gid = 15,
visible = true,
properties = {
["speed"] = -10
}
},
{
id = 40,
name = "",
type = "floatdev",
shape = "rectangle",
x = 80,
y = 150.75,
width = 16,
height = 32,
rotation = 0,
gid = 15,
visible = true,
properties = {}
},
{
id = 43,
name = "",
type = "floatdev",
shape = "rectangle",
x = 144,
y = 152,
width = 16,
height = 32,
rotation = 0,
gid = 15,
visible = true,
properties = {
["speed"] = 10
}
},
{
id = 46,
name = "",
type = "floatdev",
shape = "rectangle",
x = 160,
y = 172,
width = 16,
height = 32,
rotation = 0,
gid = 15,
visible = true,
properties = {
["speed"] = -10
}
},
{
id = 41,
name = "",
type = "floatdev",
shape = "rectangle",
x = 96.75,
y = 176.75,
width = 16,
height = 32,
rotation = 0,
gid = 15,
visible = true,
properties = {
["speed"] = 12
}
},
{
id = 42,
name = "",
type = "floatdev",
shape = "rectangle",
x = 96,
y = 111.25,
width = 16,
height = 32,
rotation = 0,
gid = 14,
visible = true,
properties = {
["speed"] = 12
}
},
{
id = 49,
name = "",
type = "floatdev",
shape = "rectangle",
x = 176,
y = 48,
width = 16,
height = 32,
rotation = 0,
gid = 14,
visible = true,
properties = {
["speed"] = -18
}
},
{
id = 50,
name = "",
type = "floatdev",
shape = "rectangle",
x = 176,
y = 128,
width = 16,
height = 32,
rotation = 0,
gid = 14,
visible = true,
properties = {
["speed"] = -18
}
},
{
id = 51,
name = "",
type = "floatdev",
shape = "rectangle",
x = 192,
y = 24,
width = 16,
height = 32,
rotation = 0,
gid = 15,
visible = true,
properties = {
["speed"] = 20
}
},
{
id = 52,
name = "",
type = "floatdev",
shape = "rectangle",
x = 192,
y = 96,
width = 16,
height = 32,
rotation = 0,
gid = 15,
visible = true,
properties = {
["speed"] = 20
}
},
{
id = 53,
name = "",
type = "floatdev",
shape = "rectangle",
x = 192,
y = 152,
width = 16,
height = 32,
rotation = 0,
gid = 15,
visible = true,
properties = {
["speed"] = 20
}
},
{
id = 62,
name = "",
type = "vehicle",
shape = "rectangle",
x = 284,
y = 32,
width = 16,
height = 32,
rotation = 0,
gid = 18,
visible = true,
properties = {
["speed"] = -12
}
},
{
id = 65,
name = "",
type = "vehicle",
shape = "rectangle",
x = 228,
y = 32.75,
width = 16,
height = 32,
rotation = 0,
gid = 18,
visible = true,
properties = {
["speed"] = -20
}
},
{
id = 63,
name = "",
type = "vehicle",
shape = "rectangle",
x = 284,
y = 120,
width = 16,
height = 32,
rotation = 0,
gid = 17,
visible = true,
properties = {
["speed"] = -12
}
},
{
id = 64,
name = "",
type = "vehicle",
shape = "rectangle",
x = 228,
y = 88,
width = 16,
height = 32,
rotation = 0,
gid = 17,
visible = true,
properties = {
["speed"] = -20
}
},
{
id = 66,
name = "",
type = "vehicle",
shape = "rectangle",
x = 228,
y = 152,
width = 16,
height = 32,
rotation = 0,
gid = 16,
visible = true,
properties = {
["speed"] = -20
}
}
}
}

201
map.tmx
View File

@ -1,13 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.8" tiledversion="1.8.6" orientation="orthogonal" renderorder="right-down" width="20" height="10" tilewidth="16" tileheight="16" infinite="0" nextlayerid="6" nextobjectid="35">
<map version="1.8" tiledversion="1.8.6" orientation="orthogonal" renderorder="right-down" width="20" height="10" tilewidth="16" tileheight="16" infinite="0" nextlayerid="6" nextobjectid="67">
<editorsettings>
<export target="map.lua" format="lua"/>
</editorsettings>
<tileset firstgid="1" name="tiles" tilewidth="16" tileheight="16" tilecount="10" columns="10">
<image source="tiles.png" trans="ff00ff" width="160" height="16"/>
</tileset>
<tileset firstgid="11" name="sprites" tilewidth="16" tileheight="32" tilecount="10" columns="10">
<image source="sprites.png" trans="ff00ff" width="160" height="32"/>
<tileset firstgid="11" name="sprites" tilewidth="16" tileheight="32" tilecount="40" columns="10">
<transformations hflip="0" vflip="1" rotate="0" preferuntransformed="0"/>
<image source="sprites.png" trans="ff00ff" width="160" height="128"/>
<tile id="0">
<objectgroup draworder="index" id="2">
<object id="1" x="1" y="1" width="14" height="24"/>
@ -23,6 +24,31 @@
<object id="1" x="1" y="1" width="14" height="24"/>
</objectgroup>
</tile>
<tile id="3">
<objectgroup draworder="index" id="2">
<object id="1" x="0" y="0" width="16" height="32"/>
</objectgroup>
</tile>
<tile id="4">
<objectgroup draworder="index" id="2">
<object id="1" x="0" y="0" width="16" height="32"/>
</objectgroup>
</tile>
<tile id="5">
<objectgroup draworder="index" id="2">
<object id="1" x="1" y="1" width="14" height="24"/>
</objectgroup>
</tile>
<tile id="6">
<objectgroup draworder="index" id="2">
<object id="1" x="1" y="1" width="14" height="22"/>
</objectgroup>
</tile>
<tile id="7">
<objectgroup draworder="index" id="2">
<object id="1" x="1" y="1" width="14" height="26"/>
</objectgroup>
</tile>
</tileset>
<layer id="1" name="Capa de patrones 1" width="20" height="10">
<data encoding="csv">
@ -43,81 +69,136 @@
<object id="5" type="water" x="144" y="0" width="64" height="160"/>
</objectgroup>
<objectgroup id="2" name="entities">
<object id="8" type="floatdev" x="82" y="-8" width="12" height="32"/>
<object id="22" type="floatdev" x="146" y="-8" width="12" height="32"/>
<object id="25" type="floatdev" x="194" y="-8" width="12" height="32">
<object id="30" type="vehicle" gid="11" x="44" y="152" width="16" height="32">
<properties>
<property name="speed" type="int" value="18"/>
</properties>
</object>
<object id="11" type="floatdev" x="98" y="16" width="12" height="32">
<object id="55" type="vehicle" gid="11" x="256" y="152" width="16" height="32">
<properties>
<property name="speed" type="int" value="12"/>
</properties>
</object>
<object id="21" type="floatdev" x="162" y="16" width="12" height="32">
<properties>
<property name="speed" type="int" value="-10"/>
</properties>
</object>
<object id="12" type="floatdev" x="114" y="16" width="12" height="48">
<properties>
<property name="speed" type="int" value="-16"/>
</properties>
</object>
<object id="20" type="floatdev" x="178" y="16" width="12" height="48">
<properties>
<property name="speed" type="int" value="-18"/>
</properties>
</object>
<object id="7" type="floatdev" x="82" y="56" width="12" height="32"/>
<object id="19" type="floatdev" x="146" y="56" width="12" height="32"/>
<object id="24" type="floatdev" x="194" y="56" width="12" height="32">
<object id="31" type="vehicle" gid="13" x="44" y="64" width="16" height="32">
<properties>
<property name="speed" type="int" value="18"/>
</properties>
</object>
<object id="10" type="floatdev" x="98" y="80" width="12" height="32">
<object id="57" type="vehicle" gid="13" x="256" y="64" width="16" height="32">
<properties>
<property name="speed" type="int" value="12"/>
</properties>
</object>
<object id="18" type="floatdev" x="162" y="80" width="12" height="32">
<properties>
<property name="speed" type="int" value="-10"/>
</properties>
</object>
<object id="13" type="floatdev" x="114" y="128" width="12" height="48">
<properties>
<property name="speed" type="int" value="-16"/>
</properties>
</object>
<object id="16" type="floatdev" x="178" y="128" width="12" height="48">
<properties>
<property name="speed" type="int" value="-18"/>
</properties>
</object>
<object id="6" type="floatdev" x="82" y="120" width="12" height="32"/>
<object id="17" type="floatdev" x="146" y="120" width="12" height="32"/>
<object id="23" type="floatdev" x="194" y="120" width="12" height="32">
<properties>
<property name="speed" type="int" value="18"/>
</properties>
</object>
<object id="9" type="floatdev" x="98" y="144" width="12" height="32">
<properties>
<property name="speed" type="int" value="12"/>
</properties>
</object>
<object id="15" type="floatdev" x="162" y="144" width="12" height="32">
<properties>
<property name="speed" type="int" value="-10"/>
</properties>
</object>
<object id="30" type="vehicle" gid="11" x="44" y="152" width="16" height="32"/>
<object id="31" type="vehicle" gid="13" x="44" y="64" width="16" height="32"/>
<object id="32" type="vehicle" gid="13" x="16" y="32" width="16" height="32"/>
<object id="33" type="vehicle" gid="12" x="16" y="88" width="16" height="32"/>
<object id="34" type="vehicle" gid="11" x="16" y="152" width="16" height="32"/>
<object id="35" type="floatdev" gid="14" x="80.25" y="86.25" width="16" height="32"/>
<object id="44" type="floatdev" gid="14" x="144" y="16" width="16" height="32">
<properties>
<property name="speed" type="int" value="10"/>
</properties>
</object>
<object id="48" type="floatdev" gid="14" x="160" y="112" width="16" height="32">
<properties>
<property name="speed" type="int" value="-10"/>
</properties>
</object>
<object id="36" type="floatdev" gid="14" x="112" y="48" width="16" height="32">
<properties>
<property name="speed" type="int" value="-16"/>
</properties>
</object>
<object id="37" type="floatdev" gid="14" x="112" y="144" width="16" height="32">
<properties>
<property name="speed" type="int" value="-16"/>
</properties>
</object>
<object id="38" type="floatdev" gid="15" x="95.75" y="48.5" width="16" height="32">
<properties>
<property name="speed" type="int" value="12"/>
</properties>
</object>
<object id="39" type="floatdev" gid="15" x="80.75" y="24.75" width="16" height="32"/>
<object id="45" type="floatdev" gid="15" x="144" y="88" width="16" height="32">
<properties>
<property name="speed" type="int" value="10"/>
</properties>
</object>
<object id="47" type="floatdev" gid="15" x="160" y="48" width="16" height="32">
<properties>
<property name="speed" type="int" value="-10"/>
</properties>
</object>
<object id="40" type="floatdev" gid="15" x="80" y="150.75" width="16" height="32"/>
<object id="43" type="floatdev" gid="15" x="144" y="152" width="16" height="32">
<properties>
<property name="speed" type="int" value="10"/>
</properties>
</object>
<object id="46" type="floatdev" gid="15" x="160" y="172" width="16" height="32">
<properties>
<property name="speed" type="int" value="-10"/>
</properties>
</object>
<object id="41" type="floatdev" gid="15" x="96.75" y="176.75" width="16" height="32">
<properties>
<property name="speed" type="int" value="12"/>
</properties>
</object>
<object id="42" type="floatdev" gid="14" x="96" y="111.25" width="16" height="32">
<properties>
<property name="speed" type="int" value="12"/>
</properties>
</object>
<object id="49" type="floatdev" gid="14" x="176" y="48" width="16" height="32">
<properties>
<property name="speed" type="int" value="-18"/>
</properties>
</object>
<object id="50" type="floatdev" gid="14" x="176" y="128" width="16" height="32">
<properties>
<property name="speed" type="int" value="-18"/>
</properties>
</object>
<object id="51" type="floatdev" gid="15" x="192" y="24" width="16" height="32">
<properties>
<property name="speed" type="int" value="20"/>
</properties>
</object>
<object id="52" type="floatdev" gid="15" x="192" y="96" width="16" height="32">
<properties>
<property name="speed" type="int" value="20"/>
</properties>
</object>
<object id="53" type="floatdev" gid="15" x="192" y="152" width="16" height="32">
<properties>
<property name="speed" type="int" value="20"/>
</properties>
</object>
<object id="62" type="vehicle" gid="18" x="284" y="32" width="16" height="32">
<properties>
<property name="speed" type="int" value="-12"/>
</properties>
</object>
<object id="65" type="vehicle" gid="18" x="228" y="32.75" width="16" height="32">
<properties>
<property name="speed" type="int" value="-20"/>
</properties>
</object>
<object id="63" type="vehicle" gid="17" x="284" y="120" width="16" height="32">
<properties>
<property name="speed" type="int" value="-12"/>
</properties>
</object>
<object id="64" type="vehicle" gid="17" x="228" y="88" width="16" height="32">
<properties>
<property name="speed" type="int" value="-20"/>
</properties>
</object>
<object id="66" type="vehicle" gid="16" x="228" y="152" width="16" height="32">
<properties>
<property name="speed" type="int" value="-20"/>
</properties>
</object>
</objectgroup>
</map>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB