pleins de trucs
This commit is contained in:
732
scripts/world/maps/room1.lua
Normal file
732
scripts/world/maps/room1.lua
Normal file
@@ -0,0 +1,732 @@
|
||||
return {
|
||||
version = "1.11",
|
||||
luaversion = "5.1",
|
||||
tiledversion = "1.12.2",
|
||||
class = "",
|
||||
orientation = "orthogonal",
|
||||
renderorder = "right-down",
|
||||
width = 30,
|
||||
height = 24,
|
||||
tilewidth = 40,
|
||||
tileheight = 40,
|
||||
nextlayerid = 8,
|
||||
nextobjectid = 94,
|
||||
properties = {
|
||||
["name"] = "Test Map - Room 1"
|
||||
},
|
||||
tilesets = {
|
||||
{
|
||||
name = "castle",
|
||||
firstgid = 1,
|
||||
filename = "../tilesets/castle.tsx",
|
||||
exportfilename = "../tilesets/castle.lua"
|
||||
}
|
||||
},
|
||||
layers = {
|
||||
{
|
||||
type = "tilelayer",
|
||||
x = 0,
|
||||
y = 0,
|
||||
width = 30,
|
||||
height = 24,
|
||||
id = 1,
|
||||
name = "tiles",
|
||||
class = "",
|
||||
visible = true,
|
||||
opacity = 1,
|
||||
offsetx = 0,
|
||||
offsety = 0,
|
||||
parallaxx = 1,
|
||||
parallaxy = 1,
|
||||
properties = {},
|
||||
encoding = "lua",
|
||||
data = {
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 13, 23, 23, 13, 23, 23, 23, 13, 23, 23, 13, 24, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 23, 23, 23, 23, 23, 21, 23, 23, 23, 23, 23, 24, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 7, 7, 7, 7, 7, 7,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 15, 15, 15, 15, 15, 15,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 15, 15, 11, 11, 11, 11, 11, 11, 11, 15, 15, 16, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 15, 11, 11, 11, 15, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 0, 0, 0, 0, 0, 0, 0, 18, 19, 20, 0,
|
||||
0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 0, 0, 0, 0, 0, 0, 0, 22, 23, 24, 0,
|
||||
0, 0, 0, 23, 18, 19, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 0, 0, 0, 0, 0, 0, 0, 22, 9, 24, 0,
|
||||
0, 0, 0, 23, 22, 23, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 0, 0, 0, 0, 0, 0, 0, 10, 11, 12, 0,
|
||||
0, 0, 0, 23, 22, 23, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 0, 0, 0, 0, 0, 0, 0, 10, 11, 12, 0,
|
||||
0, 0, 6, 7, 7, 7, 7, 7, 7, 8, 0, 6, 7, 7, 7, 7, 11, 11, 11, 7, 7, 7, 7, 7, 7, 7, 11, 11, 12, 0,
|
||||
0, 0, 10, 11, 11, 11, 11, 11, 11, 12, 0, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 15, 15, 15, 15, 16, 0,
|
||||
0, 0, 10, 11, 11, 11, 11, 11, 11, 11, 7, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 10, 11, 11, 11, 11, 11, 11, 11, 15, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 14, 15, 15, 15, 15, 15, 15, 16, 0, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
|
||||
}
|
||||
},
|
||||
{
|
||||
type = "tilelayer",
|
||||
x = 0,
|
||||
y = 0,
|
||||
width = 30,
|
||||
height = 24,
|
||||
id = 2,
|
||||
name = "decal",
|
||||
class = "",
|
||||
visible = true,
|
||||
opacity = 1,
|
||||
offsetx = 0,
|
||||
offsety = 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, 38, 39, 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 = "collision",
|
||||
class = "",
|
||||
visible = true,
|
||||
opacity = 0.5,
|
||||
offsetx = 0,
|
||||
offsety = 0,
|
||||
parallaxx = 1,
|
||||
parallaxy = 1,
|
||||
properties = {},
|
||||
objects = {
|
||||
{
|
||||
id = 1,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 440,
|
||||
y = 80,
|
||||
width = 520,
|
||||
height = 40,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 2,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 960,
|
||||
y = 120,
|
||||
width = 40,
|
||||
height = 80,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 3,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 1000,
|
||||
y = 160,
|
||||
width = 200,
|
||||
height = 40,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 4,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 958.197,
|
||||
y = 280,
|
||||
width = 40,
|
||||
height = 80,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 5,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 1000,
|
||||
y = 280,
|
||||
width = 200,
|
||||
height = 40,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 6,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 840,
|
||||
y = 360,
|
||||
width = 120,
|
||||
height = 40,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 7,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 760,
|
||||
y = 400,
|
||||
width = 80,
|
||||
height = 40,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 8,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 760,
|
||||
y = 680,
|
||||
width = 280,
|
||||
height = 40,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 9,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 960,
|
||||
y = 800,
|
||||
width = 40,
|
||||
height = 120,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 10,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 440,
|
||||
y = 920,
|
||||
width = 520,
|
||||
height = 40,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 11,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 400,
|
||||
y = 720,
|
||||
width = 40,
|
||||
height = 80,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 12,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 440,
|
||||
y = 680,
|
||||
width = 200,
|
||||
height = 40,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 14,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 560,
|
||||
y = 400,
|
||||
width = 80,
|
||||
height = 40,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 15,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 440,
|
||||
y = 360,
|
||||
width = 120,
|
||||
height = 40,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 16,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 400,
|
||||
y = 120,
|
||||
width = 40,
|
||||
height = 240,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 17,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 600,
|
||||
y = 440,
|
||||
width = 40,
|
||||
height = 240,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 18,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 760,
|
||||
y = 440,
|
||||
width = 40,
|
||||
height = 240,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 23,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 1000,
|
||||
y = 640,
|
||||
width = 40,
|
||||
height = 40,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 24,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 1040,
|
||||
y = 600,
|
||||
width = 120,
|
||||
height = 40,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 25,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 1160,
|
||||
y = 640,
|
||||
width = 40,
|
||||
height = 160,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 26,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 1000,
|
||||
y = 800,
|
||||
width = 160,
|
||||
height = 40,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 59,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 400,
|
||||
y = 880,
|
||||
width = 40,
|
||||
height = 40,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 76,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 40,
|
||||
y = 720,
|
||||
width = 40,
|
||||
height = 200,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 77,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 80,
|
||||
y = 920,
|
||||
width = 320,
|
||||
height = 40,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 82,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 280,
|
||||
y = 680,
|
||||
width = 120,
|
||||
height = 40,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 84,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 80,
|
||||
y = 680,
|
||||
width = 40,
|
||||
height = 40,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
type = "objectgroup",
|
||||
draworder = "topdown",
|
||||
id = 4,
|
||||
name = "objects",
|
||||
class = "",
|
||||
visible = true,
|
||||
opacity = 1,
|
||||
offsetx = 0,
|
||||
offsety = 0,
|
||||
parallaxx = 1,
|
||||
parallaxy = 1,
|
||||
properties = {},
|
||||
objects = {
|
||||
{
|
||||
id = 19,
|
||||
name = "npc",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 880,
|
||||
y = 840,
|
||||
width = 40,
|
||||
height = 40,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {
|
||||
["actor"] = "starwalker",
|
||||
["text1"] = "* These [color:yellow]stairs[color:reset] are [color:yellow]Pissing[color:reset] me\noff...",
|
||||
["text2"] = "* I'm the original [color:yellow]Starwalker[color:reset]"
|
||||
}
|
||||
},
|
||||
{
|
||||
id = 27,
|
||||
name = "savepoint",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 480,
|
||||
y = 210,
|
||||
width = 40,
|
||||
height = 40,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {
|
||||
["text1"] = "* Silence echoes in the darkness\nof this familiar-yet-different\nscenery.",
|
||||
["text2"] = "* The power of avoiding copying\nofficial music shines within\nyou."
|
||||
}
|
||||
},
|
||||
{
|
||||
id = 28,
|
||||
name = "squeak",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 1080,
|
||||
y = 600,
|
||||
width = 40,
|
||||
height = 40,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 29,
|
||||
name = "transition",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 1200,
|
||||
y = 200,
|
||||
width = 40,
|
||||
height = 80,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {
|
||||
["map"] = "room2",
|
||||
["marker"] = "entry"
|
||||
}
|
||||
},
|
||||
{
|
||||
id = 33,
|
||||
name = "interactable",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 680,
|
||||
y = 80,
|
||||
width = 40,
|
||||
height = 40,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {
|
||||
["cutscene"] = "room1.wall",
|
||||
["once"] = true
|
||||
}
|
||||
},
|
||||
{
|
||||
id = 35,
|
||||
name = "npc",
|
||||
type = "",
|
||||
shape = "point",
|
||||
x = 700,
|
||||
y = 160,
|
||||
width = 0,
|
||||
height = 0,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {
|
||||
["actor"] = "wall",
|
||||
["flagcheck"] = "wall_hit",
|
||||
["text1"] = "* I Am the Wall Guardian.[wait:5]\n* This Wall is Off Limits for you\nno-good wall slammers."
|
||||
}
|
||||
},
|
||||
{
|
||||
id = 37,
|
||||
name = "chest",
|
||||
type = "",
|
||||
shape = "point",
|
||||
x = 459.506,
|
||||
y = 759.157,
|
||||
width = 0,
|
||||
height = 0,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {
|
||||
["item"] = "cravatte"
|
||||
}
|
||||
},
|
||||
{
|
||||
id = 46,
|
||||
name = "tool",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 876.051,
|
||||
y = 144.258,
|
||||
width = 40,
|
||||
height = 40,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 79,
|
||||
name = "transition",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 160,
|
||||
y = 680,
|
||||
width = 120,
|
||||
height = 40,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {
|
||||
["facing"] = "down",
|
||||
["marker"] = "shop_exit",
|
||||
["shop"] = "balta_shop"
|
||||
}
|
||||
},
|
||||
{
|
||||
id = 89,
|
||||
name = "climbarea",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 120,
|
||||
y = 360,
|
||||
width = 40,
|
||||
height = 360,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
type = "objectgroup",
|
||||
draworder = "topdown",
|
||||
id = 5,
|
||||
name = "markers",
|
||||
class = "",
|
||||
visible = true,
|
||||
opacity = 1,
|
||||
offsetx = 0,
|
||||
offsety = 0,
|
||||
parallaxx = 1,
|
||||
parallaxy = 1,
|
||||
properties = {},
|
||||
objects = {
|
||||
{
|
||||
id = 20,
|
||||
name = "spawn",
|
||||
type = "",
|
||||
shape = "point",
|
||||
x = 703.606,
|
||||
y = 843.26,
|
||||
width = 0,
|
||||
height = 0,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 30,
|
||||
name = "entry",
|
||||
type = "",
|
||||
shape = "point",
|
||||
x = 1158.2,
|
||||
y = 256.229,
|
||||
width = 0,
|
||||
height = 0,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 80,
|
||||
name = "shop_exit",
|
||||
type = "",
|
||||
shape = "point",
|
||||
x = 220,
|
||||
y = 779,
|
||||
width = 0,
|
||||
height = 0,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
163
scripts/world/maps/room1.tmx
Normal file
163
scripts/world/maps/room1.tmx
Normal file
@@ -0,0 +1,163 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<map version="1.11" tiledversion="1.12.2" orientation="orthogonal" renderorder="right-down" width="30" height="24" tilewidth="40" tileheight="40" infinite="0" nextlayerid="8" nextobjectid="94">
|
||||
<editorsettings>
|
||||
<export target="room1.lua" format="lua"/>
|
||||
</editorsettings>
|
||||
<properties>
|
||||
<property name="name" value="Test Map - Room 1"/>
|
||||
</properties>
|
||||
<tileset firstgid="1" source="../tilesets/castle.tsx"/>
|
||||
<layer id="1" name="tiles" width="30" height="24">
|
||||
<data encoding="csv">
|
||||
0,0,0,0,0,0,0,0,0,0,0,22,13,23,23,13,23,23,23,13,23,23,13,24,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,22,23,23,23,23,23,21,23,23,23,23,23,24,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,26,27,27,27,27,27,27,27,27,27,27,27,28,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,6,7,7,7,7,7,7,7,7,7,7,7,8,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,10,11,11,11,11,11,11,11,11,11,11,11,12,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,10,11,11,11,11,11,11,11,11,11,11,11,11,7,7,7,7,7,7,
|
||||
0,0,0,0,0,0,0,0,0,0,0,10,11,11,11,11,11,11,11,11,11,11,11,11,15,15,15,15,15,15,
|
||||
0,0,0,0,0,0,0,0,0,0,0,10,11,11,11,11,11,11,11,11,11,11,11,12,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,14,15,15,11,11,11,11,11,11,11,15,15,16,0,0,0,0,0,0,
|
||||
0,0,0,23,0,0,0,0,0,0,0,0,0,0,14,15,11,11,11,15,16,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,2,3,4,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,2,3,4,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,2,3,4,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,2,3,4,0,0,0,0,0,0,0,18,19,20,0,
|
||||
0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,2,3,4,0,0,0,0,0,0,0,22,23,24,0,
|
||||
0,0,0,23,18,19,20,0,0,0,0,0,0,0,0,0,2,3,4,0,0,0,0,0,0,0,22,9,24,0,
|
||||
0,0,0,23,22,23,24,0,0,0,0,0,0,0,0,0,2,3,4,0,0,0,0,0,0,0,10,11,12,0,
|
||||
0,0,0,23,22,23,24,0,0,0,0,0,0,0,0,0,2,3,4,0,0,0,0,0,0,0,10,11,12,0,
|
||||
0,0,6,7,7,7,7,7,7,8,0,6,7,7,7,7,11,11,11,7,7,7,7,7,7,7,11,11,12,0,
|
||||
0,0,10,11,11,11,11,11,11,12,0,10,11,11,11,11,11,11,11,11,11,11,11,11,15,15,15,15,16,0,
|
||||
0,0,10,11,11,11,11,11,11,11,7,11,11,11,11,11,11,11,11,11,11,11,11,12,0,0,0,0,0,0,
|
||||
0,0,10,11,11,11,11,11,11,11,15,11,11,11,11,11,11,11,11,11,11,11,11,12,0,0,0,0,0,0,
|
||||
0,0,14,15,15,15,15,15,15,16,0,14,15,15,15,15,15,15,15,15,15,15,15,16,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,30,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,34,35,36,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,38,39,40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,30,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,34,35,36,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,38,39,40,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,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>
|
||||
<objectgroup color="#0000ff" id="3" name="collision" opacity="0.5">
|
||||
<object id="1" x="440" y="80" width="520" height="40"/>
|
||||
<object id="2" x="960" y="120" width="40" height="80"/>
|
||||
<object id="3" x="1000" y="160" width="200" height="40"/>
|
||||
<object id="4" x="958.197" y="280" width="40" height="80"/>
|
||||
<object id="5" x="1000" y="280" width="200" height="40"/>
|
||||
<object id="6" x="840" y="360" width="120" height="40"/>
|
||||
<object id="7" x="760" y="400" width="80" height="40"/>
|
||||
<object id="8" x="760" y="680" width="280" height="40"/>
|
||||
<object id="9" x="960" y="800" width="40" height="120"/>
|
||||
<object id="10" x="440" y="920" width="520" height="40"/>
|
||||
<object id="11" x="400" y="720" width="40" height="80"/>
|
||||
<object id="12" x="440" y="680" width="200" height="40"/>
|
||||
<object id="14" x="560" y="400" width="80" height="40"/>
|
||||
<object id="15" x="440" y="360" width="120" height="40"/>
|
||||
<object id="16" x="400" y="120" width="40" height="240"/>
|
||||
<object id="17" x="600" y="440" width="40" height="240"/>
|
||||
<object id="18" x="760" y="440" width="40" height="240"/>
|
||||
<object id="23" x="1000" y="640" width="40" height="40"/>
|
||||
<object id="24" x="1040" y="600" width="120" height="40"/>
|
||||
<object id="25" x="1160" y="640" width="40" height="160"/>
|
||||
<object id="26" x="1000" y="800" width="160" height="40"/>
|
||||
<object id="59" x="400" y="880" width="40" height="40"/>
|
||||
<object id="76" x="40" y="720" width="40" height="200"/>
|
||||
<object id="77" x="80" y="920" width="320" height="40"/>
|
||||
<object id="82" x="280" y="680" width="120" height="40"/>
|
||||
<object id="84" x="80" y="680" width="40" height="40"/>
|
||||
</objectgroup>
|
||||
<objectgroup color="#ff00ff" id="4" name="objects">
|
||||
<object id="19" name="npc" x="880" y="840" width="40" height="40">
|
||||
<properties>
|
||||
<property name="actor" value="starwalker"/>
|
||||
<property name="text1">* These [color:yellow]stairs[color:reset] are [color:yellow]Pissing[color:reset] me
|
||||
off...</property>
|
||||
<property name="text2" value="* I'm the original [color:yellow]Starwalker[color:reset]"/>
|
||||
</properties>
|
||||
</object>
|
||||
<object id="27" name="savepoint" x="480" y="210" width="40" height="40">
|
||||
<properties>
|
||||
<property name="text1">* Silence echoes in the darkness
|
||||
of this familiar-yet-different
|
||||
scenery.</property>
|
||||
<property name="text2">* The power of avoiding copying
|
||||
official music shines within
|
||||
you.</property>
|
||||
</properties>
|
||||
</object>
|
||||
<object id="28" name="squeak" x="1080" y="600" width="40" height="40"/>
|
||||
<object id="29" name="transition" x="1200" y="200" width="40" height="80">
|
||||
<properties>
|
||||
<property name="map" value="room2"/>
|
||||
<property name="marker" value="entry"/>
|
||||
</properties>
|
||||
</object>
|
||||
<object id="33" name="interactable" x="680" y="80" width="40" height="40">
|
||||
<properties>
|
||||
<property name="cutscene" value="room1.wall"/>
|
||||
<property name="once" type="bool" value="true"/>
|
||||
</properties>
|
||||
</object>
|
||||
<object id="35" name="npc" x="700" y="160">
|
||||
<properties>
|
||||
<property name="actor" value="wall"/>
|
||||
<property name="flagcheck" value="wall_hit"/>
|
||||
<property name="text1">* I Am the Wall Guardian.[wait:5]
|
||||
* This Wall is Off Limits for you
|
||||
no-good wall slammers.</property>
|
||||
</properties>
|
||||
<point/>
|
||||
</object>
|
||||
<object id="37" name="chest" x="459.506" y="759.157">
|
||||
<properties>
|
||||
<property name="item" value="cravatte"/>
|
||||
</properties>
|
||||
<point/>
|
||||
</object>
|
||||
<object id="46" name="tool" x="876.051" y="144.258" width="40" height="40"/>
|
||||
<object id="79" name="transition" x="160" y="680" width="120" height="40">
|
||||
<properties>
|
||||
<property name="facing" value="down"/>
|
||||
<property name="marker" value="shop_exit"/>
|
||||
<property name="shop" value="balta_shop"/>
|
||||
</properties>
|
||||
</object>
|
||||
<object id="89" name="climbarea" x="120" y="360" width="40" height="360"/>
|
||||
</objectgroup>
|
||||
<objectgroup color="#7f00ff" id="5" name="markers">
|
||||
<object id="20" name="spawn" x="703.606" y="843.26">
|
||||
<point/>
|
||||
</object>
|
||||
<object id="30" name="entry" x="1158.2" y="256.229">
|
||||
<point/>
|
||||
</object>
|
||||
<object id="80" name="shop_exit" x="220" y="779">
|
||||
<point/>
|
||||
</object>
|
||||
</objectgroup>
|
||||
</map>
|
||||
271
scripts/world/maps/room2.lua
Normal file
271
scripts/world/maps/room2.lua
Normal file
@@ -0,0 +1,271 @@
|
||||
return {
|
||||
version = "1.11",
|
||||
luaversion = "5.1",
|
||||
tiledversion = "1.12.2",
|
||||
class = "",
|
||||
orientation = "orthogonal",
|
||||
renderorder = "right-down",
|
||||
width = 20,
|
||||
height = 12,
|
||||
tilewidth = 40,
|
||||
tileheight = 40,
|
||||
nextlayerid = 6,
|
||||
nextobjectid = 12,
|
||||
properties = {
|
||||
["name"] = "Test Map - Room 2"
|
||||
},
|
||||
tilesets = {
|
||||
{
|
||||
name = "castle",
|
||||
firstgid = 1,
|
||||
filename = "../tilesets/castle.tsx",
|
||||
exportfilename = "../tilesets/castle.lua"
|
||||
}
|
||||
},
|
||||
layers = {
|
||||
{
|
||||
type = "tilelayer",
|
||||
x = 0,
|
||||
y = 0,
|
||||
width = 20,
|
||||
height = 12,
|
||||
id = 1,
|
||||
name = "tiles",
|
||||
class = "",
|
||||
visible = true,
|
||||
opacity = 1,
|
||||
offsetx = 0,
|
||||
offsety = 0,
|
||||
parallaxx = 1,
|
||||
parallaxy = 1,
|
||||
properties = {},
|
||||
encoding = "lua",
|
||||
data = {
|
||||
0, 0, 0, 0, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 0,
|
||||
0, 0, 0, 0, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 0,
|
||||
0, 0, 0, 0, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 0,
|
||||
0, 0, 0, 0, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 0,
|
||||
0, 0, 0, 0, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 0,
|
||||
0, 0, 0, 0, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 0,
|
||||
0, 0, 0, 0, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 0,
|
||||
0, 0, 0, 0, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 0,
|
||||
7, 7, 7, 7, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 0,
|
||||
15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
|
||||
}
|
||||
},
|
||||
{
|
||||
type = "tilelayer",
|
||||
x = 0,
|
||||
y = 0,
|
||||
width = 20,
|
||||
height = 12,
|
||||
id = 2,
|
||||
name = "decal",
|
||||
class = "",
|
||||
visible = true,
|
||||
opacity = 1,
|
||||
offsetx = 0,
|
||||
offsety = 0,
|
||||
parallaxx = 1,
|
||||
parallaxy = 1,
|
||||
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,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30, 31, 32, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 34, 35, 36, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 39, 40, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 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 = "collision",
|
||||
class = "",
|
||||
visible = true,
|
||||
opacity = 0.5,
|
||||
offsetx = 0,
|
||||
offsety = 0,
|
||||
parallaxx = 1,
|
||||
parallaxy = 1,
|
||||
properties = {},
|
||||
objects = {
|
||||
{
|
||||
id = 1,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 120,
|
||||
y = 120,
|
||||
width = 40,
|
||||
height = 200,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 2,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 0,
|
||||
y = 400,
|
||||
width = 760,
|
||||
height = 40,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 3,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 760,
|
||||
y = 120,
|
||||
width = 40,
|
||||
height = 280,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 4,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 160,
|
||||
y = 80,
|
||||
width = 600,
|
||||
height = 40,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 7,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 0,
|
||||
y = 280,
|
||||
width = 120,
|
||||
height = 40,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
type = "objectgroup",
|
||||
draworder = "topdown",
|
||||
id = 4,
|
||||
name = "markers",
|
||||
class = "",
|
||||
visible = true,
|
||||
opacity = 1,
|
||||
offsetx = 0,
|
||||
offsety = 0,
|
||||
parallaxx = 1,
|
||||
parallaxy = 1,
|
||||
properties = {},
|
||||
objects = {
|
||||
{
|
||||
id = 5,
|
||||
name = "spawn",
|
||||
type = "",
|
||||
shape = "point",
|
||||
x = 360,
|
||||
y = 240,
|
||||
width = 0,
|
||||
height = 0,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 8,
|
||||
name = "entry",
|
||||
type = "",
|
||||
shape = "point",
|
||||
x = 40,
|
||||
y = 378.032,
|
||||
width = 0,
|
||||
height = 0,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
type = "objectgroup",
|
||||
draworder = "topdown",
|
||||
id = 5,
|
||||
name = "objects",
|
||||
class = "",
|
||||
visible = true,
|
||||
opacity = 1,
|
||||
offsetx = 0,
|
||||
offsety = 0,
|
||||
parallaxx = 1,
|
||||
parallaxy = 1,
|
||||
properties = {},
|
||||
objects = {
|
||||
{
|
||||
id = 6,
|
||||
name = "enemy",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 530,
|
||||
y = 220,
|
||||
width = 40,
|
||||
height = 40,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {
|
||||
["actor"] = "dummy",
|
||||
["encounter"] = "dummy"
|
||||
}
|
||||
},
|
||||
{
|
||||
id = 9,
|
||||
name = "transition",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = -40,
|
||||
y = 320,
|
||||
width = 40,
|
||||
height = 80,
|
||||
rotation = 0,
|
||||
opacity = 1,
|
||||
visible = true,
|
||||
properties = {
|
||||
["map"] = "room1",
|
||||
["marker"] = "entry"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
71
scripts/world/maps/room2.tmx
Normal file
71
scripts/world/maps/room2.tmx
Normal file
@@ -0,0 +1,71 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<map version="1.11" tiledversion="1.12.2" orientation="orthogonal" renderorder="right-down" width="20" height="12" tilewidth="40" tileheight="40" infinite="0" nextlayerid="6" nextobjectid="12">
|
||||
<editorsettings>
|
||||
<export target="room2.lua" format="lua"/>
|
||||
</editorsettings>
|
||||
<properties>
|
||||
<property name="name" value="Test Map - Room 2"/>
|
||||
</properties>
|
||||
<tileset firstgid="1" source="../tilesets/castle.tsx"/>
|
||||
<layer id="1" name="tiles" width="20" height="12">
|
||||
<data encoding="csv">
|
||||
0,0,0,0,22,23,23,23,23,23,23,23,23,23,23,23,23,23,24,0,
|
||||
0,0,0,0,22,23,23,23,23,23,23,23,23,23,23,23,23,23,24,0,
|
||||
0,0,0,0,26,27,27,27,27,27,27,27,27,27,27,27,27,27,28,0,
|
||||
0,0,0,0,6,7,7,7,7,7,7,7,7,7,7,7,7,7,8,0,
|
||||
0,0,0,0,10,11,11,11,11,11,11,11,11,11,11,11,11,11,12,0,
|
||||
0,0,0,0,10,11,11,11,11,11,11,11,11,11,11,11,11,11,12,0,
|
||||
0,0,0,0,10,11,11,11,11,11,11,11,11,11,11,11,11,11,12,0,
|
||||
0,0,0,0,10,11,11,11,11,11,11,11,11,11,11,11,11,11,12,0,
|
||||
7,7,7,7,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,0,
|
||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,16,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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>
|
||||
<layer id="2" name="decal" width="20" height="12">
|
||||
<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,0,0,0,0,0,30,31,32,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,34,35,36,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,38,39,40,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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>
|
||||
<objectgroup color="#0000ff" id="3" name="collision" opacity="0.5">
|
||||
<object id="1" x="120" y="120" width="40" height="200"/>
|
||||
<object id="2" x="0" y="400" width="760" height="40"/>
|
||||
<object id="3" x="760" y="120" width="40" height="280"/>
|
||||
<object id="4" x="160" y="80" width="600" height="40"/>
|
||||
<object id="7" x="0" y="280" width="120" height="40"/>
|
||||
</objectgroup>
|
||||
<objectgroup color="#7f00ff" id="4" name="markers">
|
||||
<object id="5" name="spawn" x="360" y="240">
|
||||
<point/>
|
||||
</object>
|
||||
<object id="8" name="entry" x="40" y="378.032">
|
||||
<point/>
|
||||
</object>
|
||||
</objectgroup>
|
||||
<objectgroup color="#ff00ff" id="5" name="objects">
|
||||
<object id="6" name="enemy" x="530" y="220" width="40" height="40">
|
||||
<properties>
|
||||
<property name="actor" value="dummy"/>
|
||||
<property name="encounter" value="dummy"/>
|
||||
</properties>
|
||||
</object>
|
||||
<object id="9" name="transition" x="-40" y="320" width="40" height="80">
|
||||
<properties>
|
||||
<property name="map" value="room1"/>
|
||||
<property name="marker" value="entry"/>
|
||||
</properties>
|
||||
</object>
|
||||
</objectgroup>
|
||||
</map>
|
||||
Reference in New Issue
Block a user