This commit is contained in:
Robert Jelic
2025-02-10 07:12:35 +01:00
parent 78cfbc7510
commit 5c15cf28fa
2427 changed files with 1005260 additions and 0 deletions

18
node_modules/shiki/samples/lua.sample generated vendored Normal file
View File

@@ -0,0 +1,18 @@
ball = {
xpos = 60,
ypos = 60,
-- without the colon syntax, must mention self argument explicitly
move = function(self, newx, newy)
self.xpos = newx
self.ypos = newy
end
}
-- using the colon, ball is passed as self automatically
ball:move(100, 120)
-- using the dot, must pass self explicitly
ball.move(ball, 100, 120)
-- From https://pico-8.fandom.com/wiki/Lua