Rest of mesh management functions.

This commit is contained in:
jussi
2022-05-25 21:52:36 +03:00
parent 44e8b06603
commit 06f9940682
12 changed files with 186 additions and 17 deletions

View File

@@ -1,5 +1,6 @@
Resource Author Licence Source
tiles.png Chris Hamons (maintainer) CC0 https://opengameart.org/content/dungeon-crawl-32x32-tiles
apple.png Jussi Viitala CC0
grass.png Jussi Viitala CC0
snake.png Jussi Viitala CC0
Resource Author Licence Source
tiles.png Chris Hamons (maintainer) CC0 https://opengameart.org/content/dungeon-crawl-32x32-tiles
arcade_platformerV2.png GrafxKid CC0 https://opengameart.org/content/arcade-platformer-assets
apple.png Jussi Viitala CC0
grass.png Jussi Viitala CC0
snake.png Jussi Viitala CC0

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View File

@@ -45,6 +45,8 @@ Vector2.meta = {
function Vector2:new( x, y )
if type( x ) == "table" then
x, y = table.unpack( x )
elseif type( x ) == "nil" then
x, y = 0, 0
end
local o = {

View File

@@ -59,6 +59,8 @@ end
function Vector3:set( x, y, z )
if type( x ) == "table" then
x, y, z = table.unpack( x )
elseif type( x ) == "nil" then
x, y, z = 0, 0, 0
end
self.x = x