first commit
This commit is contained in:
commit
74544db5d3
20
main.lua
Normal file
20
main.lua
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
--[[ LOVE STUFF ]]
|
||||||
|
function love.load()
|
||||||
|
|
||||||
|
|
||||||
|
sprites = {}
|
||||||
|
sprites.coin_sheet = love.graphics.newImage('sprites/coin_sheet.png')
|
||||||
|
sprites.player_jump = love.graphics.newImage('sprites/player_jump.png')
|
||||||
|
sprites.player_stand = love.graphics.newImage('sprites/player_stand.png')
|
||||||
|
|
||||||
|
require('player')
|
||||||
|
end
|
||||||
|
|
||||||
|
function love.update(dt)
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
function love.draw()
|
||||||
|
love.graphics.draw(sprites.player_stand, player.x, player.y)
|
||||||
|
|
||||||
|
end
|
BIN
maps/tiles_spritesheet.png
Normal file
BIN
maps/tiles_spritesheet.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 126 KiB |
4
player.lua
Normal file
4
player.lua
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
player = {}
|
||||||
|
|
||||||
|
player.x = 100
|
||||||
|
player.y = 100
|
BIN
sprites/coin_sheet.png
Normal file
BIN
sprites/coin_sheet.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
BIN
sprites/player_jump.png
Normal file
BIN
sprites/player_jump.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
BIN
sprites/player_stand.png
Normal file
BIN
sprites/player_stand.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.6 KiB |
Loading…
Reference in New Issue
Block a user