Skip to content
Snippets Groups Projects
Commit 1e514274 authored by dg's avatar dg
Browse files

having fun

git-svn-id: http://svn.net-core.org/repos/t-engine4@5765 51575b47-30f0-44d4-a5cc-537603b46e54
parent 77fa6c08
No related branches found
No related tags found
No related merge requests found
......@@ -1249,7 +1249,8 @@ function _M:setupCommands()
end end,
[{"_g","ctrl"}] = function() if config.settings.cheat then
local x, y = game.player.x + 5, game.player.y
game.level.map:particleEmitter(game.player.x, game.player.y, math.max(math.abs(x-game.player.x), math.abs(y-game.player.y)), "lightning_beam", {tx=x-game.player.x, ty=y-game.player.y}, {type="lightning"})
--game.level.map:particleEmitter(game.player.x, game.player.y, math.max(math.abs(x-game.player.x), math.abs(y-game.player.y)), "lightning_beam", {tx=x-game.player.x, ty=y-game.player.y}, {type="lightning"})
game.level.map:particleEmitter(game.player.x, game.player.y, math.max(math.abs(x-game.player.x), math.abs(y-game.player.y)), "lightning_beam", {tx=x-game.player.x, ty=y-game.player.y}, {type="lightning", color1={0.2,0,0}, color2={1,0.6,0}})
game.level.map:particleEmitter(game.player.x, game.player.y, math.max(math.abs(-5), math.abs(y-game.player.y)), "lightning_beam", {tx=-5, ty=y-game.player.y})
do return end
......
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