Rest of mesh management functions.
This commit is contained in:
@@ -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
|
||||
|
||||
BIN
examples/resources/images/arcade_platformerV2.png
Normal file
BIN
examples/resources/images/arcade_platformerV2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
@@ -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 = {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user