Skip to content
Snippets Groups Projects
Commit 202b3c88 authored by dg's avatar dg
Browse files

* fixed saving while particules are .. particuling

git-svn-id: http://svn.net-core.org/repos/t-engine4@330 51575b47-30f0-44d4-a5cc-537603b46e54
parent df1bf7b4
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,6 @@ function _M:init(w, h)
self.seens = {}
self.remembers = {}
self.effects = {}
self.particles = {}
for i = 0, w * h - 1 do self.map[i] = {} end
self:loaded()
......@@ -86,9 +85,11 @@ function _M:save()
_map = true,
surface = true,
particle = true,
particles = true,
})
end
function _M:loaded()
self.particles = {}
self.particle = core.display.loadImage("/data/gfx/particle.png"):glTexture()
self._map = core.map.newMap(self.w, self.h, self.mx, self.my, self.viewport.mwidth, self.viewport.mheight, self.tile_w, self.tile_h, self.multidisplay)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment