feat: add support for tile collision and overlay
This commit is contained in:
parent
78d50eaf94
commit
3ab7771352
12 changed files with 1205 additions and 6 deletions
13
CREDITS.md
13
CREDITS.md
|
@ -20,7 +20,16 @@ You can find all of them in this
|
||||||
|
|
||||||
## Visuals
|
## Visuals
|
||||||
|
|
||||||
Some elements have been modified from the sources used. If you use some elements directly from the game, don't forget to search who was the original creator of the asset used. Crediting work is important folks !
|
Some elements have been modified from the sources used. If you use some elements directly from Radiance, don't forget to search who was the original creator of the asset used. Crediting work is important folks !
|
||||||
|
|
||||||
|
### Character Set
|
||||||
|
|
||||||
|
- Character set are from Zach Zin Furr
|
||||||
|
|
||||||
|
### Tileset
|
||||||
|
|
||||||
|
- [Revamped Tiles](https://www.deviantart.com/magiscarf/art/Revamped-Tiles-829482346) by Magiscarf
|
||||||
|
- [Alienor Tileset v1](https://www.deviantart.com/anarlaurendil/art/Alienor-Tileset-v1-Pokemon-Sacred-Phoenix-834634422) by Amras Anárion, Magiscarf, Chaoticcherrycake, Pixame, Carchagui, Kyle-Dove, Chimcharsfireworkd, princess-phoenix, aveontrainer, Alistair and WesleyFG.
|
||||||
|
|
||||||
### Backgrounds
|
### Backgrounds
|
||||||
|
|
||||||
|
@ -32,6 +41,8 @@ Some elements have been modified from the sources used. If you use some elements
|
||||||
|
|
||||||
- Tails Lab Background based on [City Escape Advance](https://www.spriters-resource.com/custom_edited/sonicthehedgehogcustoms/sheet/18187/) by Bold the Hedgehog, Blaze, Dan Sidney and Flare.
|
- Tails Lab Background based on [City Escape Advance](https://www.spriters-resource.com/custom_edited/sonicthehedgehogcustoms/sheet/18187/) by Bold the Hedgehog, Blaze, Dan Sidney and Flare.
|
||||||
|
|
||||||
|
###
|
||||||
|
|
||||||
### HUD elements used
|
### HUD elements used
|
||||||
|
|
||||||
- [Sonic Heroes HUD](https://www.spriters-resource.com/custom_edited/sonicthehedgehogcustoms/sheet/104761/), [Sonic Adventure 2](https://www.spriters-resource.com/custom_edited/sonicthehedgehogcustoms/sheet/104763/) pixel versions by [FieryExplosion](https://www.spriters-resource.com/submitter/FieryExplosion/)
|
- [Sonic Heroes HUD](https://www.spriters-resource.com/custom_edited/sonicthehedgehogcustoms/sheet/104761/), [Sonic Adventure 2](https://www.spriters-resource.com/custom_edited/sonicthehedgehogcustoms/sheet/104763/) pixel versions by [FieryExplosion](https://www.spriters-resource.com/submitter/FieryExplosion/)
|
||||||
|
|
|
@ -103,13 +103,23 @@ end
|
||||||
function Hitbox2D:checkCollision(dx, dy, filter)
|
function Hitbox2D:checkCollision(dx, dy, filter)
|
||||||
self:updatePosition()
|
self:updatePosition()
|
||||||
|
|
||||||
local dx, dy = self.ox + dx, self.oy + dy
|
local nx, ny = self.ox + dx, self.oy + dy
|
||||||
local x, y, cols, colNumber = self.world:checkCollision(self, dx, dy, filter)
|
if (self:checkTileCollision(nx, self.y)) then
|
||||||
|
nx = self.x
|
||||||
|
end
|
||||||
|
if (self:checkTileCollision(self.x, ny)) then
|
||||||
|
ny = self.y
|
||||||
|
end
|
||||||
|
local x, y, cols, colNumber = self.world:checkCollision(self, nx, ny, filter)
|
||||||
local newx, newy = self:getNewOwnerPosition(x, y)
|
local newx, newy = self:getNewOwnerPosition(x, y)
|
||||||
|
|
||||||
return newx, newy, cols, colNumber
|
return newx, newy, cols, colNumber
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function Hitbox2D:checkTileCollision(dx, dy)
|
||||||
|
return self.world:haveTileTypeInRect(dx, dy, self.w, self.h, "solid")
|
||||||
|
end
|
||||||
|
|
||||||
-- DRAW FUNCTIONS
|
-- DRAW FUNCTIONS
|
||||||
-- Just some debug function to draw hitbox
|
-- Just some debug function to draw hitbox
|
||||||
|
|
||||||
|
|
|
@ -371,6 +371,19 @@ function BaseWorld:updateMap(dt)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function BaseWorld:getTileTypeAtPoint(x, y)
|
||||||
|
if (self.map.getTileTypeAtPoint ~= nil) then
|
||||||
|
return self.map:getTileTypeAtPoint(x, y)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function BaseWorld:haveTileTypeInRect(x, y, x2, y2, type)
|
||||||
|
if (self.map.haveTileTypeInRect ~= nil) then
|
||||||
|
return self.map:haveTileTypeInRect(x, y, x2, y2, type)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
-- DRAW FUNCTIONS
|
-- DRAW FUNCTIONS
|
||||||
-- All function to draw the map, world and actors
|
-- All function to draw the map, world and actors
|
||||||
|
|
||||||
|
@ -385,7 +398,6 @@ function BaseWorld:draw(dt)
|
||||||
for i=1, camNumber do
|
for i=1, camNumber do
|
||||||
self.cameras:attachView(i)
|
self.cameras:attachView(i)
|
||||||
self:drawMap(i)
|
self:drawMap(i)
|
||||||
self:drawActors(i)
|
|
||||||
self.cameras:detachView(i)
|
self.cameras:detachView(i)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -58,6 +58,10 @@ function ParentMap:loadActors()
|
||||||
-- Empty Placeholder function
|
-- Empty Placeholder function
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function ParentMap:getTileTypeAtPoint()
|
||||||
|
return nil
|
||||||
|
end
|
||||||
|
|
||||||
function ParentMap:setBackgroundColor(r, g, b)
|
function ParentMap:setBackgroundColor(r, g, b)
|
||||||
local r = r or 128
|
local r = r or 128
|
||||||
local g = g or 128
|
local g = g or 128
|
||||||
|
|
|
@ -123,6 +123,84 @@ function StiMap:newCollision(objectlayer, object)
|
||||||
self.world:newCollision(objectlayer.name, object.x, y, z, object.width, object.height, d)
|
self.world:newCollision(objectlayer.name, object.x, y, z, object.width, object.height, d)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function StiMap:haveTileTypeInRect(x, y, w, h, type)
|
||||||
|
local x1, y1, x2, y2 = self:getTileRectangle(x, y, x + w, y + h)
|
||||||
|
local isSolid = false
|
||||||
|
for i = x1, x2, 1 do
|
||||||
|
for j = y1, y2, 1 do
|
||||||
|
if (self:getTileTypeAtCoord(i, j) == type) then
|
||||||
|
isSolid = true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return isSolid
|
||||||
|
end
|
||||||
|
|
||||||
|
function StiMap:getTileRectangle(x, y, x2, y2)
|
||||||
|
local xx, yy = self:convertPixelToTile (x, y)
|
||||||
|
local xx2, yy2 = self:convertPixelToTile (x2, y2)
|
||||||
|
return xx, yy, xx2, yy2
|
||||||
|
end
|
||||||
|
|
||||||
|
function StiMap:getTileTypeAtPoint(x, y)
|
||||||
|
local xx, yy = self:convertPixelToTile (x, y)
|
||||||
|
return self:getTileTypeAtCoord(xx, yy)
|
||||||
|
end
|
||||||
|
|
||||||
|
function StiMap:getTileTypeAtCoord(x, y)
|
||||||
|
local canSearch = true
|
||||||
|
local currentType = nil
|
||||||
|
for _, layer in ipairs(self.sti.layers) do
|
||||||
|
if (canSearch) then
|
||||||
|
if (layer.type == "tilelayer") then
|
||||||
|
local tileset, tileid = self:getTileId(layer.name, x, y)
|
||||||
|
local type = self:getTileType(tileset, tileid)
|
||||||
|
if (type ~= nil) then
|
||||||
|
currentType = type
|
||||||
|
end
|
||||||
|
else
|
||||||
|
if (layer.name=="objects") then
|
||||||
|
canSearch = false
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return currentType
|
||||||
|
end
|
||||||
|
|
||||||
|
function StiMap:convertPixelToTile(x, y)
|
||||||
|
local xx, yy = self.sti:convertPixelToTile (x, y)
|
||||||
|
return math.ceil(xx), math.ceil(yy)
|
||||||
|
end
|
||||||
|
|
||||||
|
function StiMap:getTileType(tileset, id)
|
||||||
|
local tilesetData = self.sti.tilesets[tileset]
|
||||||
|
if ((tileset == -1) or (id == -1)) then
|
||||||
|
return nil
|
||||||
|
end
|
||||||
|
|
||||||
|
if (tilesetData ~= nil) then
|
||||||
|
for i, tile in ipairs(tilesetData.tiles) do
|
||||||
|
if (tile.id == id) and (tile.type ~= nil) then
|
||||||
|
return tile.type
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return "non-solid"
|
||||||
|
end
|
||||||
|
|
||||||
|
function StiMap:getTileId(layer, x, y)
|
||||||
|
local line = self.sti.layers[layer].data[y]
|
||||||
|
if (line ~= nil) then
|
||||||
|
local tile = line[x]
|
||||||
|
if not tile then
|
||||||
|
return -1, -1
|
||||||
|
end
|
||||||
|
return tile.tileset, tile.id
|
||||||
|
end
|
||||||
|
return -1, -1
|
||||||
|
end
|
||||||
|
|
||||||
function StiMap:newPlayer(object, i)
|
function StiMap:newPlayer(object, i)
|
||||||
local z = object.properties.z or 0
|
local z = object.properties.z or 0
|
||||||
local adaptPosition = object.properties.adaptPosition or false
|
local adaptPosition = object.properties.adaptPosition or false
|
||||||
|
@ -139,12 +217,21 @@ end
|
||||||
-- DRAW FUNCTIONS
|
-- DRAW FUNCTIONS
|
||||||
-- Draw the map
|
-- Draw the map
|
||||||
|
|
||||||
function StiMap:draw()
|
function StiMap:draw(i)
|
||||||
|
local haveDrawnObjects = false
|
||||||
for _, layer in ipairs(self.sti.layers) do
|
for _, layer in ipairs(self.sti.layers) do
|
||||||
if layer.visible and layer.opacity > 0 and (layer.type == "tilelayer") then
|
if layer.visible and layer.opacity > 0 and (layer.type == "tilelayer") then
|
||||||
self.sti:drawLayer(layer)
|
self.sti:drawLayer(layer)
|
||||||
|
else
|
||||||
|
if (layer.name == "objects") then
|
||||||
|
haveDrawnObjects = true
|
||||||
|
self.world:drawActors(i)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
if (not haveDrawnObjects) then
|
||||||
|
self.world:drawActors(i)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
return StiMap
|
return StiMap
|
||||||
|
|
307
sonic-radiance.love/datas/gamedata/maps/sti/plain/plain1.lua
Normal file
307
sonic-radiance.love/datas/gamedata/maps/sti/plain/plain1.lua
Normal file
|
@ -0,0 +1,307 @@
|
||||||
|
return {
|
||||||
|
version = "1.4",
|
||||||
|
luaversion = "5.1",
|
||||||
|
tiledversion = "1.4.3",
|
||||||
|
name = "plain1",
|
||||||
|
tilewidth = 16,
|
||||||
|
tileheight = 16,
|
||||||
|
spacing = 0,
|
||||||
|
margin = 0,
|
||||||
|
columns = 8,
|
||||||
|
image = "plain1.png",
|
||||||
|
imagewidth = 128,
|
||||||
|
imageheight = 480,
|
||||||
|
objectalignment = "unspecified",
|
||||||
|
tileoffset = {
|
||||||
|
x = 0,
|
||||||
|
y = 0
|
||||||
|
},
|
||||||
|
grid = {
|
||||||
|
orientation = "orthogonal",
|
||||||
|
width = 16,
|
||||||
|
height = 16
|
||||||
|
},
|
||||||
|
properties = {},
|
||||||
|
terrains = {},
|
||||||
|
tilecount = 240,
|
||||||
|
tiles = {
|
||||||
|
{
|
||||||
|
id = 8,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 9,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 10,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 11,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 16,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 17,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 18,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 19,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 20,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 21,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 22,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 23,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 24,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 26,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 30,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 31,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 32,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 33,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 34,
|
||||||
|
type = "solid",
|
||||||
|
objectGroup = {
|
||||||
|
type = "objectgroup",
|
||||||
|
draworder = "index",
|
||||||
|
id = 2,
|
||||||
|
name = "",
|
||||||
|
visible = true,
|
||||||
|
opacity = 1,
|
||||||
|
offsetx = 0,
|
||||||
|
offsety = 0,
|
||||||
|
properties = {},
|
||||||
|
objects = {
|
||||||
|
{
|
||||||
|
id = 1,
|
||||||
|
name = "",
|
||||||
|
type = "",
|
||||||
|
shape = "rectangle",
|
||||||
|
x = 0,
|
||||||
|
y = 0,
|
||||||
|
width = 16,
|
||||||
|
height = 16,
|
||||||
|
rotation = 0,
|
||||||
|
visible = true,
|
||||||
|
properties = {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 38,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 40,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 41,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 42,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 43,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 44,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 48,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 50,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 51,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 52,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 53,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 54,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 56,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 57,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 58,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 61,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 62,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 64,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 65,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 66,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 69,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 70,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 72,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 73,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 74,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 75,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 76,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 77,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 80,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 82,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 83,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 84,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 85,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 86,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 88,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 89,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 90,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 93,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 94,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 96,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 97,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 98,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 101,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 102,
|
||||||
|
type = "solid"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
BIN
sonic-radiance.love/datas/gamedata/maps/sti/plain/plain1.png
Normal file
BIN
sonic-radiance.love/datas/gamedata/maps/sti/plain/plain1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
76
sonic-radiance.love/datas/gamedata/maps/sti/plain/plain1.tsx
Normal file
76
sonic-radiance.love/datas/gamedata/maps/sti/plain/plain1.tsx
Normal file
|
@ -0,0 +1,76 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<tileset version="1.4" tiledversion="1.4.3" name="plain1" tilewidth="16" tileheight="16" tilecount="240" columns="8">
|
||||||
|
<editorsettings>
|
||||||
|
<export target="plain1.lua" format="lua"/>
|
||||||
|
</editorsettings>
|
||||||
|
<image source="plain1.png" width="128" height="480"/>
|
||||||
|
<tile id="8" type="solid"/>
|
||||||
|
<tile id="9" type="solid"/>
|
||||||
|
<tile id="10" type="solid"/>
|
||||||
|
<tile id="11" type="solid"/>
|
||||||
|
<tile id="16" type="solid"/>
|
||||||
|
<tile id="17" type="solid"/>
|
||||||
|
<tile id="18" type="solid"/>
|
||||||
|
<tile id="19" type="solid"/>
|
||||||
|
<tile id="20" type="solid"/>
|
||||||
|
<tile id="21" type="solid"/>
|
||||||
|
<tile id="22" type="solid"/>
|
||||||
|
<tile id="23" type="solid"/>
|
||||||
|
<tile id="24" type="solid"/>
|
||||||
|
<tile id="26" type="solid"/>
|
||||||
|
<tile id="30" type="solid"/>
|
||||||
|
<tile id="31" type="solid"/>
|
||||||
|
<tile id="32" type="solid"/>
|
||||||
|
<tile id="33" type="solid"/>
|
||||||
|
<tile id="34" type="solid">
|
||||||
|
<objectgroup draworder="index" id="2">
|
||||||
|
<object id="1" x="0" y="0" width="16" height="16"/>
|
||||||
|
</objectgroup>
|
||||||
|
</tile>
|
||||||
|
<tile id="38" type="solid"/>
|
||||||
|
<tile id="40" type="solid"/>
|
||||||
|
<tile id="41" type="solid"/>
|
||||||
|
<tile id="42" type="solid"/>
|
||||||
|
<tile id="43" type="solid"/>
|
||||||
|
<tile id="44" type="solid"/>
|
||||||
|
<tile id="48" type="solid"/>
|
||||||
|
<tile id="50" type="solid"/>
|
||||||
|
<tile id="51" type="solid"/>
|
||||||
|
<tile id="52" type="solid"/>
|
||||||
|
<tile id="53" type="solid"/>
|
||||||
|
<tile id="54" type="solid"/>
|
||||||
|
<tile id="56" type="solid"/>
|
||||||
|
<tile id="57" type="solid"/>
|
||||||
|
<tile id="58" type="solid"/>
|
||||||
|
<tile id="61" type="solid"/>
|
||||||
|
<tile id="62" type="solid"/>
|
||||||
|
<tile id="64" type="solid"/>
|
||||||
|
<tile id="65" type="solid"/>
|
||||||
|
<tile id="66" type="solid"/>
|
||||||
|
<tile id="69" type="solid"/>
|
||||||
|
<tile id="70" type="solid"/>
|
||||||
|
<tile id="72" type="solid"/>
|
||||||
|
<tile id="73" type="solid"/>
|
||||||
|
<tile id="74" type="solid"/>
|
||||||
|
<tile id="75" type="solid"/>
|
||||||
|
<tile id="76" type="solid"/>
|
||||||
|
<tile id="77" type="solid"/>
|
||||||
|
<tile id="80" type="solid"/>
|
||||||
|
<tile id="82" type="solid"/>
|
||||||
|
<tile id="83" type="solid"/>
|
||||||
|
<tile id="84" type="solid"/>
|
||||||
|
<tile id="85" type="solid"/>
|
||||||
|
<tile id="86" type="solid"/>
|
||||||
|
<tile id="88" type="solid"/>
|
||||||
|
<tile id="89" type="solid"/>
|
||||||
|
<tile id="90" type="solid"/>
|
||||||
|
<tile id="93" type="solid"/>
|
||||||
|
<tile id="94" type="solid"/>
|
||||||
|
<tile id="96" type="solid"/>
|
||||||
|
<tile id="97" type="solid"/>
|
||||||
|
<tile id="98" type="solid"/>
|
||||||
|
<tile id="101" type="solid"/>
|
||||||
|
<tile id="102" type="solid"/>
|
||||||
|
<tile id="129" type="solid"/>
|
||||||
|
<tile id="130" type="solid"/>
|
||||||
|
</tileset>
|
543
sonic-radiance.love/datas/gamedata/maps/sti/plain/test.lua
Normal file
543
sonic-radiance.love/datas/gamedata/maps/sti/plain/test.lua
Normal file
|
@ -0,0 +1,543 @@
|
||||||
|
return {
|
||||||
|
version = "1.4",
|
||||||
|
luaversion = "5.1",
|
||||||
|
tiledversion = "1.4.3",
|
||||||
|
orientation = "orthogonal",
|
||||||
|
renderorder = "right-down",
|
||||||
|
width = 30,
|
||||||
|
height = 40,
|
||||||
|
tilewidth = 16,
|
||||||
|
tileheight = 16,
|
||||||
|
nextlayerid = 6,
|
||||||
|
nextobjectid = 4,
|
||||||
|
properties = {},
|
||||||
|
tilesets = {
|
||||||
|
{
|
||||||
|
name = "plain1",
|
||||||
|
firstgid = 1,
|
||||||
|
filename = "plain1.tsx",
|
||||||
|
tilewidth = 16,
|
||||||
|
tileheight = 16,
|
||||||
|
spacing = 0,
|
||||||
|
margin = 0,
|
||||||
|
columns = 8,
|
||||||
|
image = "plain1.png",
|
||||||
|
imagewidth = 128,
|
||||||
|
imageheight = 480,
|
||||||
|
objectalignment = "unspecified",
|
||||||
|
tileoffset = {
|
||||||
|
x = 0,
|
||||||
|
y = 0
|
||||||
|
},
|
||||||
|
grid = {
|
||||||
|
orientation = "orthogonal",
|
||||||
|
width = 16,
|
||||||
|
height = 16
|
||||||
|
},
|
||||||
|
properties = {},
|
||||||
|
terrains = {},
|
||||||
|
tilecount = 240,
|
||||||
|
tiles = {
|
||||||
|
{
|
||||||
|
id = 8,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 9,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 10,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 11,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 16,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 17,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 18,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 19,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 20,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 21,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 22,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 23,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 24,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 26,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 30,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 31,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 32,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 33,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 34,
|
||||||
|
type = "solid",
|
||||||
|
objectGroup = {
|
||||||
|
type = "objectgroup",
|
||||||
|
draworder = "index",
|
||||||
|
id = 2,
|
||||||
|
name = "",
|
||||||
|
visible = true,
|
||||||
|
opacity = 1,
|
||||||
|
offsetx = 0,
|
||||||
|
offsety = 0,
|
||||||
|
properties = {},
|
||||||
|
objects = {
|
||||||
|
{
|
||||||
|
id = 1,
|
||||||
|
name = "",
|
||||||
|
type = "",
|
||||||
|
shape = "rectangle",
|
||||||
|
x = 0,
|
||||||
|
y = 0,
|
||||||
|
width = 16,
|
||||||
|
height = 16,
|
||||||
|
rotation = 0,
|
||||||
|
visible = true,
|
||||||
|
properties = {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 38,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 40,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 41,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 42,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 43,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 44,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 48,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 50,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 51,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 52,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 53,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 54,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 56,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 57,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 58,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 61,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 62,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 64,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 65,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 66,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 69,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 70,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 72,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 73,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 74,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 75,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 76,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 77,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 80,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 82,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 83,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 84,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 85,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 86,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 88,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 89,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 90,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 93,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 94,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 96,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 97,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 98,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 101,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 102,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 129,
|
||||||
|
type = "solid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = 130,
|
||||||
|
type = "solid"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
layers = {
|
||||||
|
{
|
||||||
|
type = "tilelayer",
|
||||||
|
x = 0,
|
||||||
|
y = 0,
|
||||||
|
width = 30,
|
||||||
|
height = 40,
|
||||||
|
id = 1,
|
||||||
|
name = "Calque 2",
|
||||||
|
visible = true,
|
||||||
|
opacity = 1,
|
||||||
|
offsetx = 0,
|
||||||
|
offsety = 0,
|
||||||
|
properties = {},
|
||||||
|
encoding = "lua",
|
||||||
|
data = {
|
||||||
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||||
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||||
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||||
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||||
|
90, 87, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||||
|
98, 95, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||||
|
29, 81, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||||
|
29, 81, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||||
|
29, 81, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||||
|
29, 29, 81, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||||
|
29, 29, 81, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||||
|
29, 29, 89, 87, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||||
|
29, 29, 97, 95, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||||
|
29, 29, 29, 81, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||||
|
29, 29, 29, 89, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 87, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 86, 90,
|
||||||
|
29, 29, 29, 97, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 95, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 94, 98,
|
||||||
|
29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 81, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 83, 29,
|
||||||
|
29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 89, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 91, 29,
|
||||||
|
29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 97, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 99, 29
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type = "tilelayer",
|
||||||
|
x = 0,
|
||||||
|
y = 0,
|
||||||
|
width = 30,
|
||||||
|
height = 40,
|
||||||
|
id = 2,
|
||||||
|
name = "Calque 1",
|
||||||
|
visible = true,
|
||||||
|
opacity = 1,
|
||||||
|
offsetx = 0,
|
||||||
|
offsety = 0,
|
||||||
|
properties = {},
|
||||||
|
encoding = "lua",
|
||||||
|
data = {
|
||||||
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
|
58, 58, 58, 58, 58, 58, 58, 55, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
|
66, 66, 66, 66, 66, 66, 66, 63, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
|
0, 0, 0, 0, 0, 0, 0, 49, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
|
||||||
|
0, 0, 0, 0, 0, 0, 0, 57, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58,
|
||||||
|
0, 0, 0, 0, 0, 0, 0, 65, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66,
|
||||||
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 23, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type = "objectgroup",
|
||||||
|
draworder = "topdown",
|
||||||
|
id = 3,
|
||||||
|
name = "player",
|
||||||
|
visible = true,
|
||||||
|
opacity = 1,
|
||||||
|
offsetx = 0,
|
||||||
|
offsety = 0,
|
||||||
|
properties = {},
|
||||||
|
objects = {
|
||||||
|
{
|
||||||
|
id = 1,
|
||||||
|
name = "",
|
||||||
|
type = "",
|
||||||
|
shape = "rectangle",
|
||||||
|
x = 160,
|
||||||
|
y = 176,
|
||||||
|
width = 16,
|
||||||
|
height = 16,
|
||||||
|
rotation = 0,
|
||||||
|
visible = true,
|
||||||
|
properties = {
|
||||||
|
["id"] = 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type = "objectgroup",
|
||||||
|
draworder = "topdown",
|
||||||
|
id = 5,
|
||||||
|
name = "objects",
|
||||||
|
visible = true,
|
||||||
|
opacity = 1,
|
||||||
|
offsetx = 0,
|
||||||
|
offsety = 0,
|
||||||
|
properties = {},
|
||||||
|
objects = {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type = "tilelayer",
|
||||||
|
x = 0,
|
||||||
|
y = 0,
|
||||||
|
width = 30,
|
||||||
|
height = 40,
|
||||||
|
id = 4,
|
||||||
|
name = "Calque 0",
|
||||||
|
visible = true,
|
||||||
|
opacity = 1,
|
||||||
|
offsetx = 0,
|
||||||
|
offsety = 0,
|
||||||
|
properties = {},
|
||||||
|
encoding = "lua",
|
||||||
|
data = {
|
||||||
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0,
|
||||||
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
147
sonic-radiance.love/datas/gamedata/maps/sti/plain/test.tmx
Normal file
147
sonic-radiance.love/datas/gamedata/maps/sti/plain/test.tmx
Normal file
|
@ -0,0 +1,147 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<map version="1.4" tiledversion="1.4.3" orientation="orthogonal" renderorder="right-down" width="30" height="40" tilewidth="16" tileheight="16" infinite="0" nextlayerid="6" nextobjectid="4">
|
||||||
|
<editorsettings>
|
||||||
|
<export target="test.lua" format="lua"/>
|
||||||
|
</editorsettings>
|
||||||
|
<tileset firstgid="1" source="plain1.tsx"/>
|
||||||
|
<layer id="1" name="Calque 2" width="30" height="40">
|
||||||
|
<data encoding="csv">
|
||||||
|
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
|
||||||
|
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
|
||||||
|
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
|
||||||
|
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
|
||||||
|
90,87,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
|
||||||
|
98,95,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
|
||||||
|
29,81,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
|
||||||
|
29,81,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
|
||||||
|
29,81,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
|
||||||
|
29,81,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
|
||||||
|
29,81,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
|
||||||
|
29,81,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
|
||||||
|
29,81,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
|
||||||
|
29,81,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,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,1,1,1,1,1,1,1,1,1,1,1,1,
|
||||||
|
29,29,81,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
|
||||||
|
29,29,81,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
|
||||||
|
29,29,81,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
|
||||||
|
29,29,89,87,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
|
||||||
|
29,29,97,95,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
|
||||||
|
29,29,29,81,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
|
||||||
|
29,29,29,89,90,90,90,90,90,90,90,90,90,90,90,87,1,1,1,1,1,1,1,1,1,1,1,1,86,90,
|
||||||
|
29,29,29,97,98,98,98,98,98,98,98,98,98,98,98,95,1,1,1,1,1,1,1,1,1,1,1,1,94,98,
|
||||||
|
29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,81,1,1,1,1,1,1,1,1,1,1,1,1,83,29,
|
||||||
|
29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,89,90,90,90,90,90,90,90,90,90,90,90,90,91,29,
|
||||||
|
29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,97,98,98,98,98,98,98,98,98,98,98,98,98,99,29
|
||||||
|
</data>
|
||||||
|
</layer>
|
||||||
|
<layer id="2" name="Calque 1" width="30" height="40">
|
||||||
|
<data encoding="csv">
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
58,58,58,58,58,58,58,55,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
66,66,66,66,66,66,66,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,49,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,
|
||||||
|
0,0,0,0,0,0,0,57,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,
|
||||||
|
0,0,0,0,0,0,0,65,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,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
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,23,24,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,31,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,23,24,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||||
|
</data>
|
||||||
|
</layer>
|
||||||
|
<objectgroup id="3" name="player">
|
||||||
|
<object id="1" x="160" y="176" width="16" height="16">
|
||||||
|
<properties>
|
||||||
|
<property name="id" type="int" value="1"/>
|
||||||
|
</properties>
|
||||||
|
</object>
|
||||||
|
</objectgroup>
|
||||||
|
<objectgroup id="5" name="objects"/>
|
||||||
|
<layer id="4" name="Calque 0" width="30" height="40">
|
||||||
|
<data encoding="csv">
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0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0,0,0,0,0,0,0,0,0,0,0,0,0,105,106,107,108,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,113,114,115,116,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,105,106,107,108,0,0,0,0,0,0,121,122,123,124,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,113,114,115,116,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,121,122,123,124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,105,106,107,108,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,105,106,107,108,0,0,0,0,0,0,0,0,113,114,115,116,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,113,114,115,116,0,0,0,0,0,0,0,0,121,122,123,124,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,121,122,123,124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||||
|
</data>
|
||||||
|
</layer>
|
||||||
|
</map>
|
|
@ -55,6 +55,8 @@ function Player:updateStart(dt)
|
||||||
end
|
end
|
||||||
|
|
||||||
self.tweens:update(dt)
|
self.tweens:update(dt)
|
||||||
|
|
||||||
|
self.world:getTileTypeAtPoint(self.x, self.y)
|
||||||
end
|
end
|
||||||
|
|
||||||
function Player:timerResponse(response)
|
function Player:timerResponse(response)
|
||||||
|
|
|
@ -41,7 +41,7 @@ function MovePlayer:new()
|
||||||
self.tweens = TweenManager(self)
|
self.tweens = TweenManager(self)
|
||||||
self.screens = screens
|
self.screens = screens
|
||||||
|
|
||||||
World(self, "test", "map")
|
World(self, "plain", "test")
|
||||||
self.world:setPlayerNumber(1)
|
self.world:setPlayerNumber(1)
|
||||||
self.world:loadMap()
|
self.world:loadMap()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue