Skip to content

Commit 6a9bd54

Browse files
committed
Add more helpful comments in mods.lua
1 parent 787f52a commit 6a9bd54

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

lua/mods.lua

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,16 @@ Mods
9191
:Insert(0, 1, Tweens.outexpo, {
9292
{100, 'Invert'}
9393
})
94-
--:Define()
95-
--:Exsch()
96-
--:Mirin {}
94+
-- :Define('hidden', function(p, pn) PL[pn].Player:visible(math.abs(p) > 0) end)
95+
-- :Exsch(2, 1, 100, 0, 'invert', 'len', Tweens.outexpo)
96+
-- :Mirin {4, 1, Tweens.outexpo, 100, 'flip'}
9797

9898
-- Mirin functions
9999
using 'mirin' (function()
100100

101101
-- You can use Mirin modifiers here if you have the 'mirin-syntax' library imported.
102-
--ease {0, 1, Tweens.outexpo, 100, 'invert'}
102+
-- ease {0, 1, Tweens.outexpo, 100, 'invert'}
103+
-- definemod {'rotationz', function(p, pn) PL[pn].Player:rotationz(p) end}
103104

104105
end)
105106

@@ -122,17 +123,17 @@ function ready()
122123

123124
end
124125

125-
-- Called on UpdateCommand
126+
-- Called on frame update (Remove for better performance)
126127
function update(dt)
127128

128129
end
129130

130-
-- Called on InputMessageCommand
131+
-- Called on input received (Remove for better performance)
131132
function input(event)
132133

133134
end
134135

135-
-- Called on Actors.Mods:Draw()
136+
-- Called on drawing to screen (Remove for better performance)
136137
function draw()
137138

138139
end

0 commit comments

Comments
 (0)