Skip to content
Snippets Groups Projects
Commit 64063f9f authored by dg's avatar dg
Browse files

fixed sand transitions

git-svn-id: http://svn.net-core.org/repos/t-engine4@4002 51575b47-30f0-44d4-a5cc-537603b46e54
parent dd9ea10a
No related branches found
No related tags found
No related merge requests found
......@@ -172,7 +172,7 @@ function _M:setupDisplayMode()
Map.tiles.use_images = true
-- Create the framebuffer
self.fbo = core.display.newFBO(game.w, game.h)
-- self.fbo = core.display.newFBO(game.w, game.h)
if self.fbo then
self.fbo_shader = Shader.new("main_fbo")
if not self.fbo_shader.shad then
......
......@@ -29,9 +29,9 @@ setDefaultProjector(function(src, x, y, type, dam)
end
else
if src == game.player then
game.flyers:add(sx, sy, 30, (rng.range(0,2)-1) * 0.5, -3, tostring(-math.ceil(dam)), {0,255,0})
game.flyers:add(sx, sy, 30, (rng.range(0,2)-1) * 0.5, -rng.float(2, 3), tostring(-math.ceil(dam)), {0,255,0})
elseif target == game.player then
game.flyers:add(sx, sy, 30, (rng.range(0,2)-1) * 0.5, -3, tostring(-math.ceil(dam)), {255,0,0})
game.flyers:add(sx, sy, 30, (rng.range(0,2)-1) * 0.5, rng.float(2, 3), tostring(-math.ceil(dam)), {255,0,0})
end
end
return dam
......
......@@ -17,6 +17,7 @@
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
local sand_editer = { method="borders_def", def="sand"}
local sand_wall_editer = { method="sandWalls_def", def="sandwall"}
newEntity{
......
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