datas: add boost chunk datas

This commit is contained in:
Kazhnuz 2019-02-04 08:13:46 +01:00
parent 03ac5cc629
commit 9bb8455ce6
3 changed files with 68 additions and 2 deletions

View 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}
}
},
}
}

View file

@ -0,0 +1,13 @@
return {
[0] = {
setDashTo = nil,
changeSpd = false,
max = 1,
acc = 1,
spd = 0,
groundbellow = true,
springPow = 0,
playSFX = nil,
hazard = false,
}
}

View file

@ -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 -- Si c'est un autre nom, on charge dans "partdata" la liste des partie de niveau
-- du fichier qu'on réfère. -- 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 partdata = chunkfile.parts
end end
@ -271,7 +271,7 @@ function World:addChunk(filename, chunk)
if filename == "self" then filename = "basic" end if filename == "self" then filename = "basic" end
--print("--- Adding chunk id " .. chunk .. " located in " .. filename) --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 chunkdata = chunkfile.chunks
local chunkpos = #self.chunks local chunkpos = #self.chunks