diff options
Diffstat (limited to 'debug/player.lua.X')
| -rw-r--r-- | debug/player.lua.X | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/debug/player.lua.X b/debug/player.lua.X new file mode 100644 index 0000000..b2e4078 --- /dev/null +++ b/debug/player.lua.X @@ -0,0 +1,38 @@ +Pos Lua >> Moon +1 1:[ local char = require("char") ] >> 1:[ char = require "char" ] +23 2:[ local util = require("util") ] >> 2:[ util = require "util" ] +45 3:[ local main = require("main") ] >> 3:[ main = require "main" ] +67 4:[ local bp = require("broadphase") ] >> 4:[ bp = require "broadphase" ] +113 6:[ KeyInput = char.KeyInput ] >> 5:[ import KeyInput from char ] +135 8:[ Vec2 = util.Vec2 ] >> 6:[ import Vec2 from util ] +142 9:[ local mod = ... ] >> 8:[ mod = ... ] +227 13:[ local _parent_0 = char.Character ] >> 10:[ class RemotePlayer extends char.Character ] +279 19:[ return _class_0.__parent.__init(self, uname, data, charclass) ] >> 12:[ super(uname, data, charclass) ] +335 51:[ local _parent_0 = char.Character ] >> 14:[ class LocalPlayer extends char.Character ] +435 54:[ _class_0.__parent.__base.draw(self, ...) ] >> 19:[ super(...) ] +448 55:[ local healthnode = am.group() ^ { ] >> 20:[ healthnode = am.group() ^ {am.translate(-main.width/2,main.height/2) ^ am.text(string.format("Health:%d", @health), vec4(255,255,255,255), "left","top")\tag "health text"} ] +475 56:[ am.translate(-main.width / 2, main.height / 2) ^ am.text(string.format("Health:%d", self.health), vec4(255, 255, 255, 255), "left", "top"):tag("health text") ] >> 20:[ healthnode = am.group() ^ {am.translate(-main.width/2,main.height/2) ^ am.text(string.format("Health:%d", @health), vec4(255,255,255,255), "left","top")\tag "health text"} ] +448 57:[ } ] >> 20:[ healthnode = am.group() ^ {am.translate(-main.width/2,main.height/2) ^ am.text(string.format("Health:%d", @health), vec4(255,255,255,255), "left","top")\tag "health text"} ] +622 58:[ return self.node:append(healthnode) ] >> 21:[ @node\append(healthnode) ] +684 61:[ if am.current_time() - self.last_dammage > 1 then ] >> 24:[ if am.current_time! - @last_dammage > 1 ] +725 62:[ self.health = self.health - ammt ] >> 25:[ @health -= ammt ] +744 63:[ self.last_dammage = am.current_time(); ] >> 26:[ @last_dammage = am.current_time! ] +780 64:[ (self.node)("health text").text = string.format("Health:%d", self.health) ] >> 27:[ (@node)("health text").text = string.format("Health:%d",@health) ] +850 65:[ if self.health == 0 then ] >> 28:[ if @health == 0 ] +868 66:[ return self:die() ] >> 29:[ @\die! ] +848 67:[ end ] >> 28:[ if @health == 0 ] +682 68:[ end ] >> 24:[ if am.current_time! - @last_dammage > 1 ] +900 71:[ if other.canfall then ] >> 32:[ if other.canfall ] +918 72:[ return "cross" ] >> 33:[ return "cross" ] +898 73:[ end ] >> 32:[ if other.canfall ] +937 74:[ if other.hurtbox then ] >> 34:[ if other.hurtbox ] +957 75:[ if other.owner ~= self then ] >> 35:[ if other.owner ~= @ ] +979 76:[ self:take_damage(other, 1) ] >> 36:[ @take_damage(other,1) ] +955 77:[ end ] >> 35:[ if other.owner ~= @ ] +1004 78:[ return "cross" ] >> 37:[ return "cross" ] +1029 80:[ return "slide" ] >> 39:[ return "slide" ] +1155 84:[ return _class_0.__parent.__base.die(self, ...) ] >> 43:[ super(...) ] +386 91:[ return _class_0.__parent.__init(self, uname, data, charclass) ] >> 16:[ super(uname, data, charclass) ] +1169 120:[ mod["RemotePlayer"] = RemotePlayer ] >> 47:[ mod["RemotePlayer"] = RemotePlayer ] +1204 121:[ mod["LocalPlayer"] = LocalPlayer ] >> 48:[ mod["LocalPlayer"] = LocalPlayer ] +1237 122:[ return mod ] >> 49:[ mod ] |
