load map image into map data
This commit is contained in:
parent
0597b8ca56
commit
50ef6d575f
3 changed files with 41 additions and 0 deletions
|
|
@ -1,11 +1,16 @@
|
|||
(local map-util (require "map-util.fnl"))
|
||||
|
||||
(var player-sprite nil) ; 20x20 pixels
|
||||
(local game-state {
|
||||
:player-pos [0 0]
|
||||
})
|
||||
|
||||
|
||||
(fn love.load []
|
||||
(map-util:load)
|
||||
(love.window.setMode 600 640)
|
||||
|
||||
|
||||
(set player-sprite (love.graphics.newImage "assets/player_001.png"))
|
||||
;; start a thread listening on stdin
|
||||
(: (love.thread.newThread "require('love.event')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue