aboutsummaryrefslogtreecommitdiff
path: root/debug/util.lua.X
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-01-29 16:20:10 -0600
committerAlexander M Pickering <alex@cogarr.net>2024-01-29 16:20:10 -0600
commitc2926c5ec74d7e37da395c8c32a7ff2b4cae7d06 (patch)
treeac2bb208dab1274cdc5e9059ffe014ae19181a4c /debug/util.lua.X
downloadfools_rush_in-c2926c5ec74d7e37da395c8c32a7ff2b4cae7d06.tar.gz
fools_rush_in-c2926c5ec74d7e37da395c8c32a7ff2b4cae7d06.tar.bz2
fools_rush_in-c2926c5ec74d7e37da395c8c32a7ff2b4cae7d06.zip
All the files
Diffstat (limited to 'debug/util.lua.X')
-rw-r--r--debug/util.lua.X26
1 files changed, 26 insertions, 0 deletions
diff --git a/debug/util.lua.X b/debug/util.lua.X
new file mode 100644
index 0000000..de80fa8
--- /dev/null
+++ b/debug/util.lua.X
@@ -0,0 +1,26 @@
+Pos Lua >> Moon
+24 1:[ local mod = ... ] >> 3:[ mod = ... ]
+64 9:[ self.x = x or 0 ] >> 7:[ @x = x or 0 ]
+78 10:[ self.y = y or 0 ] >> 8:[ @y = y or 0 ]
+92 11:[ self.z = z or 0 ] >> 9:[ @z = z or 0 ]
+171 31:[ return math.abs(self.x * self.y) ] >> 15:[ area: () => math.abs(@x * @y) ]
+209 34:[ return Vec2(a.x - b.x, a.y - b.y) ] >> 17:[ Vec2(a.x-b.x,a.y-b.y) ]
+250 37:[ return Vec2(a.x + b.x, a.y + b.y) ] >> 19:[ Vec2(a.x + b.x, a.y + b.y) ]
+133 43:[ self.x = x or 0 ] >> 13:[ @x = x or 0 ]
+147 44:[ self.y = y or 0 ] >> 14:[ @y = y or 0 ]
+343 59:[ local drawable ] >> 24:[ drawable = (c) -> ]
+343 60:[ drawable = function(c) ] >> 24:[ drawable = (c) -> ]
+362 61:[ return assert(c.sprite or c.anim) ] >> 25:[ assert(c.sprite or c.anim) ]
+343 62:[ end ] >> 24:[ drawable = (c) -> ]
+390 63:[ local anim_co ] >> 27:[ anim_co = (a) -> ]
+390 64:[ anim_co = function(a) ] >> 27:[ anim_co = (a) -> ]
+413 65:[ while true do ] >> 28:[ while true ]
+421 66:[ a.keyframe = math.floor(am.current_time() * 4) % #(a.anim) ] >> 29:[ a.keyframe = math.floor(am.current_time()*4) % #(a.anim) ]
+480 67:[ assert(a.anim[a.keyframe + 1], "Failed to find an appropriate image to draw.") ] >> 30:[ assert(a.anim[a.keyframe + 1], "Failed to find an appropriate image to draw.") ]
+561 68:[ a.node:replace("sprite", am.sprite(a.anim[a.keyframe + 1]):tag("sprite")) ] >> 31:[ a.node\replace("sprite",am.sprite(a.anim[a.keyframe + 1])\tag "sprite") ]
+635 69:[ coroutine.yield() ] >> 32:[ coroutine.yield() ]
+408 70:[ end ] >> 28:[ while true ]
+390 71:[ end ] >> 27:[ anim_co = (a) -> ]
+655 72:[ mod["Vec2"] = Vec2 ] >> 35:[ mod["Vec2"] = Vec2 ]
+674 73:[ mod["Vec3"] = Vec3 ] >> 36:[ mod["Vec3"] = Vec3 ]
+693 74:[ return mod ] >> 37:[ mod ]