datas: add boost chunk datas
This commit is contained in:
parent
03ac5cc629
commit
9bb8455ce6
3 changed files with 68 additions and 2 deletions
53
sonic-boost.love/datas/subgame/sonic-boost/chunks/basics.lua
Normal file
53
sonic-boost.love/datas/subgame/sonic-boost/chunks/basics.lua
Normal file
|
@ -0,0 +1,53 @@
|
|||
return {
|
||||
parts = {
|
||||
[0] = {{"self",{01,00,00,00}}, {"self",{00,00,00,00}}}
|
||||
},
|
||||
chunks = {
|
||||
[0] = {
|
||||
terrain = {
|
||||
{00,00,00,00,00,00,00,00},
|
||||
{00,00,00,00,00,00,00,00},
|
||||
{00,00,00,00,00,00,00,00},
|
||||
{00,00,00,00,00,00,00,00},
|
||||
{00,00,00,00,00,00,00,00}
|
||||
},
|
||||
objects = {
|
||||
{00,00,00,00,00,00,00,00},
|
||||
{00,00,00,00,00,00,00,00},
|
||||
{00,00,00,00,00,00,00,00},
|
||||
{00,00,00,00,00,00,00,00},
|
||||
{00,00,00,00,00,00,00,00}
|
||||
},
|
||||
grind = {
|
||||
{00,00,00,00,00,00,00,00},
|
||||
{00,00,00,00,00,00,00,00},
|
||||
{00,00,00,00,00,00,00,00},
|
||||
{00,00,00,00,00,00,00,00},
|
||||
{00,00,00,00,00,00,00,00}
|
||||
}
|
||||
},
|
||||
[1] = {
|
||||
terrain = {
|
||||
{00,00,01,00,00,00,04,03},
|
||||
{00,00,00,01,00,00,00,03},
|
||||
{00,00,02,02,02,02,02,03},
|
||||
{00,00,00,01,00,00,00,03},
|
||||
{00,00,01,00,00,00,04,03}
|
||||
},
|
||||
objects = {
|
||||
{00,00,00,01,01,01,00,00},
|
||||
{00,00,00,00,00,00,00,00},
|
||||
{00,00,00,00,00,00,00,00},
|
||||
{00,00,00,00,00,00,00,00},
|
||||
{00,00,00,02,02,02,00,00}
|
||||
},
|
||||
grind = {
|
||||
{00,00,00,00,00,00,00,00},
|
||||
{00,00,00,00,00,00,01,03},
|
||||
{00,00,01,02,02,02,03,00},
|
||||
{00,00,00,00,00,00,00,00},
|
||||
{00,00,00,00,00,00,00,00}
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
return {
|
||||
[0] = {
|
||||
setDashTo = nil,
|
||||
changeSpd = false,
|
||||
max = 1,
|
||||
acc = 1,
|
||||
spd = 0,
|
||||
groundbellow = true,
|
||||
springPow = 0,
|
||||
playSFX = nil,
|
||||
hazard = false,
|
||||
}
|
||||
}
|
|
@ -236,7 +236,7 @@ function World:addPart(filename, part)
|
|||
-- Si c'est un autre nom, on charge dans "partdata" la liste des partie de niveau
|
||||
-- du fichier qu'on réfère.
|
||||
|
||||
local chunkfile = require("datas.chunks." .. filename)
|
||||
local chunkfile = require("datas.subgame.sonic-boost.chunks." .. filename)
|
||||
partdata = chunkfile.parts
|
||||
end
|
||||
|
||||
|
@ -271,7 +271,7 @@ function World:addChunk(filename, chunk)
|
|||
if filename == "self" then filename = "basic" end
|
||||
--print("--- Adding chunk id " .. chunk .. " located in " .. filename)
|
||||
|
||||
local chunkfile = require("datas.chunks." .. filename)
|
||||
local chunkfile = require("datas.subgame.sonic-boost.chunks." .. filename)
|
||||
chunkdata = chunkfile.chunks
|
||||
|
||||
local chunkpos = #self.chunks
|
||||
|
|
Loading…
Reference in a new issue