chore(examples): put together all assets.
|
@ -53,6 +53,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
- **core:** Activate vsync by default.
|
||||
|
||||
- **examples:** Put together all assets.
|
||||
|
||||
### Fixed
|
||||
|
||||
- **world:** Remove a forgotten camera debug function
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
## PLATFORM EXEMPLE ASSET CREDITS
|
||||
## Assets credits
|
||||
|
||||
- SFX by [Joth](http://opengameart.org/users/joth)
|
||||
|
||||
### Sprites
|
||||
|
Before Width: | Height: | Size: 2 KiB After Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 280 B After Width: | Height: | Size: 280 B |
Before Width: | Height: | Size: 580 B After Width: | Height: | Size: 580 B |
Before Width: | Height: | Size: 520 B After Width: | Height: | Size: 520 B |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 69 KiB After Width: | Height: | Size: 69 KiB |
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 114 KiB After Width: | Height: | Size: 114 KiB |
Before Width: | Height: | Size: 103 KiB After Width: | Height: | Size: 103 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
@ -33,7 +33,7 @@ local MenuWidget = Widget.Text:extend()
|
|||
|
||||
function TestScene:new()
|
||||
TestScene.super.new(self)
|
||||
self.assets:addImageFont("medium", "examples/basic/test_menus/assets/medium")
|
||||
self.assets:addImageFont("medium", "assets/fonts/medium")
|
||||
|
||||
MenuType(self.menusystem, "testMenu1", 32, 32, 100, 24*8, 4)
|
||||
MenuWidget(self, "testMenu1", "text_menu1")
|
||||
|
|
13
examples/basic/test_scene2/assets.lua
Normal file
|
@ -0,0 +1,13 @@
|
|||
local folder = "examples/basic/test_scene2/"
|
||||
|
||||
return {
|
||||
["images"] = {
|
||||
{"debris", "assets/sprites/debris.png"}
|
||||
},
|
||||
["tilesets"] = {
|
||||
{"weapon", "assets/sprites/weapon"}
|
||||
},
|
||||
["sprites"] = {
|
||||
{"poof", "assets/sprites/gfx/poof"}
|
||||
}
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
local folder = "examples/basic/test_scene2/"
|
||||
|
||||
return {
|
||||
["images"] = {
|
||||
{"debris", folder .. "assets/debris.png"}
|
||||
},
|
||||
["tilesets"] = {
|
||||
{"weapon", folder .. "assets/weapon"}
|
||||
},
|
||||
["sprites"] = {
|
||||
{"poof", folder .. "assets/poof"}
|
||||
}
|
||||
}
|
|
@ -33,7 +33,7 @@ function MovePlayer:new(playerNumber, cameraMode)
|
|||
MovePlayer.super.new(self)
|
||||
self.assets:batchImport("examples.gameplay.plateform.assets")
|
||||
|
||||
World(self, "examples.gameplay.action3D.actors", "examples/gameplay/action3D/assets/map.lua")
|
||||
World(self, "examples.gameplay.action3D.actors", "datas/maps/action3D/map.lua")
|
||||
|
||||
self.world:setPlayerNumber(playerNumber)
|
||||
self.world.cameras:setMode(cameraMode)
|
||||
|
|
|
@ -32,7 +32,7 @@ function MovePlayer:new(playerNumber, cameraMode)
|
|||
|
||||
MovePlayer.super.new(self)
|
||||
|
||||
World(self, "examples.gameplay.moveplayer.actors", "examples/gameplay/moveplayer/assets/arena.lua")
|
||||
World(self, "examples.gameplay.moveplayer.actors", "datas/maps/topdown/arena.lua")
|
||||
|
||||
self.world:setPlayerNumber(playerNumber)
|
||||
self.world.cameras:setMode(cameraMode)
|
||||
|
|
|
@ -1,380 +0,0 @@
|
|||
return {
|
||||
version = "1.2",
|
||||
luaversion = "5.1",
|
||||
tiledversion = "1.2.2",
|
||||
orientation = "orthogonal",
|
||||
renderorder = "right-down",
|
||||
width = 30,
|
||||
height = 30,
|
||||
tilewidth = 16,
|
||||
tileheight = 16,
|
||||
nextlayerid = 5,
|
||||
nextobjectid = 18,
|
||||
properties = {},
|
||||
tilesets = {
|
||||
{
|
||||
name = "overworld",
|
||||
firstgid = 1,
|
||||
filename = "overworld.tsx",
|
||||
tilewidth = 16,
|
||||
tileheight = 16,
|
||||
spacing = 0,
|
||||
margin = 0,
|
||||
columns = 32,
|
||||
image = "overworld.png",
|
||||
imagewidth = 512,
|
||||
imageheight = 240,
|
||||
tileoffset = {
|
||||
x = 0,
|
||||
y = 0
|
||||
},
|
||||
grid = {
|
||||
orientation = "orthogonal",
|
||||
width = 16,
|
||||
height = 16
|
||||
},
|
||||
properties = {},
|
||||
terrains = {},
|
||||
tilecount = 480,
|
||||
tiles = {}
|
||||
}
|
||||
},
|
||||
layers = {
|
||||
{
|
||||
type = "tilelayer",
|
||||
id = 1,
|
||||
name = "Calque de Tile 1",
|
||||
x = 0,
|
||||
y = 0,
|
||||
width = 30,
|
||||
height = 30,
|
||||
visible = true,
|
||||
opacity = 1,
|
||||
offsetx = 0,
|
||||
offsety = 0,
|
||||
properties = {},
|
||||
encoding = "lua",
|
||||
data = {
|
||||
3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
||||
3, 399, 370, 370, 370, 370, 370, 370, 370, 370, 370, 370, 370, 370, 370, 370, 370, 370, 370, 370, 370, 370, 370, 370, 370, 370, 370, 370, 400, 3,
|
||||
3, 339, 402, 402, 402, 402, 402, 402, 402, 402, 402, 402, 402, 402, 402, 402, 402, 402, 402, 402, 402, 402, 402, 402, 402, 402, 402, 402, 337, 3,
|
||||
3, 339, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 434, 337, 3,
|
||||
3, 339, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 337, 3,
|
||||
3, 339, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 337, 3,
|
||||
3, 339, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 337, 3,
|
||||
3, 339, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 337, 3,
|
||||
3, 339, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 337, 3,
|
||||
3, 339, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 337, 3,
|
||||
3, 339, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 337, 3,
|
||||
3, 339, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 337, 3,
|
||||
3, 339, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 337, 3,
|
||||
3, 339, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 337, 3,
|
||||
3, 339, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 337, 3,
|
||||
3, 339, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 337, 3,
|
||||
3, 339, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 337, 3,
|
||||
3, 339, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 337, 3,
|
||||
3, 339, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 337, 3,
|
||||
3, 339, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 337, 3,
|
||||
3, 339, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 337, 3,
|
||||
3, 339, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 337, 3,
|
||||
3, 339, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 337, 3,
|
||||
3, 339, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 337, 3,
|
||||
3, 339, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 337, 3,
|
||||
3, 339, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 337, 3,
|
||||
3, 339, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 337, 3,
|
||||
3, 339, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 337, 3,
|
||||
3, 431, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 306, 432, 3,
|
||||
3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3
|
||||
}
|
||||
},
|
||||
{
|
||||
type = "tilelayer",
|
||||
id = 2,
|
||||
name = "Rochers",
|
||||
x = 0,
|
||||
y = 0,
|
||||
width = 30,
|
||||
height = 30,
|
||||
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,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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
|
||||
}
|
||||
},
|
||||
{
|
||||
type = "objectgroup",
|
||||
id = 3,
|
||||
name = "player",
|
||||
visible = true,
|
||||
opacity = 1,
|
||||
offsetx = 0,
|
||||
offsety = 0,
|
||||
draworder = "topdown",
|
||||
properties = {},
|
||||
objects = {
|
||||
{
|
||||
id = 1,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 48,
|
||||
y = 80,
|
||||
width = 16,
|
||||
height = 16,
|
||||
rotation = 0,
|
||||
visible = true,
|
||||
properties = {
|
||||
["id"] = 1
|
||||
}
|
||||
},
|
||||
{
|
||||
id = 2,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 416,
|
||||
y = 80,
|
||||
width = 16,
|
||||
height = 16,
|
||||
rotation = 0,
|
||||
visible = true,
|
||||
properties = {
|
||||
["id"] = 1
|
||||
}
|
||||
},
|
||||
{
|
||||
id = 3,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 48,
|
||||
y = 416,
|
||||
width = 16,
|
||||
height = 16,
|
||||
rotation = 0,
|
||||
visible = true,
|
||||
properties = {
|
||||
["id"] = 3
|
||||
}
|
||||
},
|
||||
{
|
||||
id = 4,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 416,
|
||||
y = 416,
|
||||
width = 16,
|
||||
height = 16,
|
||||
rotation = 0,
|
||||
visible = true,
|
||||
properties = {
|
||||
["id"] = 4
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
type = "objectgroup",
|
||||
id = 4,
|
||||
name = "wall",
|
||||
visible = true,
|
||||
opacity = 1,
|
||||
offsetx = 0,
|
||||
offsety = 0,
|
||||
draworder = "topdown",
|
||||
properties = {},
|
||||
objects = {
|
||||
{
|
||||
id = 5,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 0,
|
||||
y = 0,
|
||||
width = 480,
|
||||
height = 64,
|
||||
rotation = 0,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 6,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 448,
|
||||
y = 64,
|
||||
width = 32,
|
||||
height = 416,
|
||||
rotation = 0,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 7,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 32,
|
||||
y = 448,
|
||||
width = 416,
|
||||
height = 32,
|
||||
rotation = 0,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 8,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 0,
|
||||
y = 64,
|
||||
width = 32,
|
||||
height = 416,
|
||||
rotation = 0,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 9,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 112,
|
||||
y = 128,
|
||||
width = 32,
|
||||
height = 32,
|
||||
rotation = 0,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 10,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 272,
|
||||
y = 128,
|
||||
width = 32,
|
||||
height = 32,
|
||||
rotation = 0,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 12,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 368,
|
||||
y = 112,
|
||||
width = 32,
|
||||
height = 32,
|
||||
rotation = 0,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 13,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 192,
|
||||
y = 224,
|
||||
width = 32,
|
||||
height = 32,
|
||||
rotation = 0,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 14,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 352,
|
||||
y = 272,
|
||||
width = 32,
|
||||
height = 32,
|
||||
rotation = 0,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 15,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 256,
|
||||
y = 368,
|
||||
width = 32,
|
||||
height = 32,
|
||||
rotation = 0,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 16,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 128,
|
||||
y = 384,
|
||||
width = 32,
|
||||
height = 32,
|
||||
rotation = 0,
|
||||
visible = true,
|
||||
properties = {}
|
||||
},
|
||||
{
|
||||
id = 17,
|
||||
name = "",
|
||||
type = "",
|
||||
shape = "rectangle",
|
||||
x = 80,
|
||||
y = 288,
|
||||
width = 32,
|
||||
height = 32,
|
||||
rotation = 0,
|
||||
visible = true,
|
||||
properties = {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,108 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<map version="1.2" tiledversion="1.2.2" orientation="orthogonal" renderorder="right-down" width="30" height="30" tilewidth="16" tileheight="16" infinite="0" nextlayerid="5" nextobjectid="18">
|
||||
<tileset firstgid="1" source="overworld.tsx"/>
|
||||
<layer id="1" name="Calque de Tile 1" width="30" height="30">
|
||||
<data encoding="csv">
|
||||
3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
|
||||
3,399,370,370,370,370,370,370,370,370,370,370,370,370,370,370,370,370,370,370,370,370,370,370,370,370,370,370,400,3,
|
||||
3,339,402,402,402,402,402,402,402,402,402,402,402,402,402,402,402,402,402,402,402,402,402,402,402,402,402,402,337,3,
|
||||
3,339,434,434,434,434,434,434,434,434,434,434,434,434,434,434,434,434,434,434,434,434,434,434,434,434,434,434,337,3,
|
||||
3,339,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,337,3,
|
||||
3,339,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,337,3,
|
||||
3,339,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,337,3,
|
||||
3,339,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,337,3,
|
||||
3,339,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,337,3,
|
||||
3,339,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,337,3,
|
||||
3,339,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,337,3,
|
||||
3,339,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,337,3,
|
||||
3,339,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,337,3,
|
||||
3,339,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,337,3,
|
||||
3,339,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,337,3,
|
||||
3,339,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,337,3,
|
||||
3,339,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,337,3,
|
||||
3,339,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,337,3,
|
||||
3,339,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,337,3,
|
||||
3,339,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,337,3,
|
||||
3,339,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,337,3,
|
||||
3,339,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,337,3,
|
||||
3,339,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,337,3,
|
||||
3,339,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,337,3,
|
||||
3,339,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,337,3,
|
||||
3,339,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,337,3,
|
||||
3,339,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,337,3,
|
||||
3,339,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,337,3,
|
||||
3,431,306,306,306,306,306,306,306,306,306,306,306,306,306,306,306,306,306,306,306,306,306,306,306,306,306,306,432,3,
|
||||
3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3
|
||||
</data>
|
||||
</layer>
|
||||
<layer id="2" name="Rochers" width="30" height="30">
|
||||
<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,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,84,85,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,84,85,0,0,0,0,0,0,0,0,84,85,0,0,0,0,116,117,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,116,117,0,0,0,0,0,0,0,0,116,117,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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
|
||||
</data>
|
||||
</layer>
|
||||
<objectgroup id="3" name="player">
|
||||
<object id="1" x="48" y="80" width="16" height="16">
|
||||
<properties>
|
||||
<property name="id" type="int" value="1"/>
|
||||
</properties>
|
||||
</object>
|
||||
<object id="2" x="416" y="80" width="16" height="16">
|
||||
<properties>
|
||||
<property name="id" type="int" value="1"/>
|
||||
</properties>
|
||||
</object>
|
||||
<object id="3" x="48" y="416" width="16" height="16">
|
||||
<properties>
|
||||
<property name="id" type="int" value="3"/>
|
||||
</properties>
|
||||
</object>
|
||||
<object id="4" x="416" y="416" width="16" height="16">
|
||||
<properties>
|
||||
<property name="id" type="int" value="4"/>
|
||||
</properties>
|
||||
</object>
|
||||
</objectgroup>
|
||||
<objectgroup id="4" name="wall">
|
||||
<object id="5" x="0" y="0" width="480" height="64"/>
|
||||
<object id="6" x="448" y="64" width="32" height="416"/>
|
||||
<object id="7" x="32" y="448" width="416" height="32"/>
|
||||
<object id="8" x="0" y="64" width="32" height="416"/>
|
||||
<object id="9" x="112" y="128" width="32" height="32"/>
|
||||
<object id="10" x="272" y="128" width="32" height="32"/>
|
||||
<object id="12" x="368" y="112" width="32" height="32"/>
|
||||
<object id="13" x="192" y="224" width="32" height="32"/>
|
||||
<object id="14" x="352" y="272" width="32" height="32"/>
|
||||
<object id="15" x="256" y="368" width="32" height="32"/>
|
||||
<object id="16" x="128" y="384" width="32" height="32"/>
|
||||
<object id="17" x="80" y="288" width="32" height="32"/>
|
||||
</objectgroup>
|
||||
</map>
|
Before Width: | Height: | Size: 14 KiB |
|
@ -1,4 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<tileset version="1.2" tiledversion="1.2.2" name="overworld" tilewidth="16" tileheight="16" tilecount="480" columns="32">
|
||||
<image source="overworld.png" width="512" height="240"/>
|
||||
</tileset>
|
|
@ -33,7 +33,7 @@ function MovePlayer:new(playerNumber, cameraMode)
|
|||
MovePlayer.super.new(self)
|
||||
self.assets:batchImport("examples.gameplay.plateform.assets")
|
||||
|
||||
World(self, "examples.gameplay.moveplayer3D.actors", "examples/gameplay/moveplayer3D/assets/arena.lua")
|
||||
World(self, "examples.gameplay.moveplayer3D.actors", "datas/maps/topdown/arena.lua")
|
||||
|
||||
self.world:setPlayerNumber(playerNumber)
|
||||
self.world.cameras:setMode(cameraMode)
|
||||
|
|
|
@ -11,7 +11,7 @@ function Player:new(world, x, y, id)
|
|||
self.direction = 1
|
||||
|
||||
self.punchName = ""
|
||||
self:setHitboxFile("examples.gameplay.plateform.assets.playerhitbox")
|
||||
self:setHitboxFile("examples.gameplay.plateform.actors.hitboxes.player")
|
||||
end
|
||||
|
||||
function Player:updateStart(dt)
|
||||
|
|
15
examples/gameplay/plateform/assets.lua
Normal file
|
@ -0,0 +1,15 @@
|
|||
return {
|
||||
["sprites"] = {
|
||||
{"player", "assets/sprites/monkey_lad"},
|
||||
{"coin", "assets/sprites/coin"},
|
||||
{"sparkle", "assets/sprites/gfx/sparkle"}
|
||||
},
|
||||
["imagefonts"] = {
|
||||
{"medium", "assets/fonts/medium"}
|
||||
},
|
||||
["sfx"] = {
|
||||
{"navigate", "assets/sfx/menu_move.mp3"},
|
||||
{"confirm", "assets/sfx/menu_confirm.mp3"},
|
||||
{"cancel", "assets/sfx/menu_error.mp3"},
|
||||
}
|
||||
}
|
|
@ -1,15 +0,0 @@
|
|||
return {
|
||||
["sprites"] = {
|
||||
{"player", "examples/gameplay/plateform/assets/monkey_lad"},
|
||||
{"coin", "examples/gameplay/plateform/assets/coin5"},
|
||||
{"sparkle", "examples/gameplay/plateform/assets/sparkle"}
|
||||
},
|
||||
["imagefonts"] = {
|
||||
{"medium", "examples/mainmenu/assets/medium"}
|
||||
},
|
||||
["sfx"] = {
|
||||
{"navigate", "examples/mainmenu/assets/menu_move.mp3"},
|
||||
{"confirm", "examples/mainmenu/assets/menu_confirm.mp3"},
|
||||
{"cancel", "examples/mainmenu/assets/menu_error.mp3"},
|
||||
}
|
||||
}
|
10
examples/mainmenu/assets.lua
Normal file
|
@ -0,0 +1,10 @@
|
|||
return {
|
||||
["imagefonts"] = {
|
||||
{"medium", "assets/fonts/medium"}
|
||||
},
|
||||
["sfx"] = {
|
||||
{"navigate", "assets/sfx/menu_move.mp3"},
|
||||
{"confirm", "assets/sfx/menu_confirm.mp3"},
|
||||
{"cancel", "assets/sfx/menu_error.mp3"},
|
||||
}
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
## Assets credits
|
||||
|
||||
- SFX by [Joth](http://opengameart.org/users/joth)
|
|
@ -1,10 +0,0 @@
|
|||
return {
|
||||
["imagefonts"] = {
|
||||
{"medium", "examples/mainmenu/assets/medium"}
|
||||
},
|
||||
["sfx"] = {
|
||||
{"navigate", "examples/mainmenu/assets/menu_move.mp3"},
|
||||
{"confirm", "examples/mainmenu/assets/menu_confirm.mp3"},
|
||||
{"cancel", "examples/mainmenu/assets/menu_error.mp3"},
|
||||
}
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
return {
|
||||
filename = "medium.png",
|
||||
glyphs = "!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|} ",
|
||||
extraspacing = 1,
|
||||
}
|
Before Width: | Height: | Size: 2 KiB |
|
@ -1,5 +0,0 @@
|
|||
return {
|
||||
filename = "medium.png",
|
||||
glyphs = "!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|} ",
|
||||
extraspacing = 1,
|
||||
}
|
Before Width: | Height: | Size: 2 KiB |
|
@ -34,7 +34,7 @@ local ExitWidget = Widget.Text:extend()
|
|||
|
||||
function Inventory:new()
|
||||
Inventory.super.new(self)
|
||||
self.assets:addImageFont("medium", "examples/menus/inventory/assets/medium")
|
||||
self.assets:addImageFont("medium", "assets/fonts/medium")
|
||||
|
||||
|
||||
HListBox(self.menusystem, "main", 42, 32, 424-84, 32, 5)
|
||||
|
|
|
@ -29,12 +29,12 @@ local Widgets = require "examples.menus.options.widgets"
|
|||
|
||||
function OptionsMenu:new()
|
||||
OptionsMenu.super.new(self)
|
||||
self.assets:addImageFont("medium", "examples/mainmenu/assets/medium")
|
||||
self.assets:setMusic("examples/menus/options/assets/music.ogg")
|
||||
self.assets:addImageFont("medium", "assets/fonts/medium")
|
||||
self.assets:setMusic("assets/music/music.ogg")
|
||||
|
||||
self.assets:addSFX("navigate", "examples/mainmenu/assets/menu_move.mp3")
|
||||
self.assets:addSFX("confirm", "examples/mainmenu/assets/menu_confirm.mp3")
|
||||
self.assets:addSFX("cancel", "examples/mainmenu/assets/menu_error.mp3")
|
||||
self.assets:addSFX("navigate", "assets/sfx/menu_move.mp3")
|
||||
self.assets:addSFX("confirm", "assets/sfx/menu_confirm.mp3")
|
||||
self.assets:addSFX("cancel", "assets/sfx/menu_error.mp3")
|
||||
|
||||
self.assets:playMusic()
|
||||
|
||||
|
|