Vec2iExampleCode: Difference between revisions
From Crumbled World Wiki
(Created page with "==Example Code== <syntaxhighlight lang="lua"> local a = Vec2(6,8) local b = a + Vec2i(-2,-2) * 2 print(b.x .. ", " .. b.y) --print 2, 4 </syntaxhighlight>") |
(No difference)
|
Latest revision as of 07:54, 6 July 2025
Example Code
local a = Vec2(6,8)
local b = a + Vec2i(-2,-2) * 2
print(b.x .. ", " .. b.y) --print 2, 4