aboutsummaryrefslogtreecommitdiff
path: root/debug/util.lua.X
blob: de80fa890418a04af81bc9e1be0c1c33dce1dcdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 ]