add beholder and get drawing working
"
This commit is contained in:
parent
0a1d655267
commit
c4c33e4726
6 changed files with 246 additions and 26 deletions
|
|
@ -175,6 +175,7 @@
|
|||
(love.window.setMode screen.screen-w screen.screen-h)
|
||||
; (tset screen :canvas (love.graphics.newCanvas screen.canvas-w screen.canvas-h))
|
||||
(set pool (tutorial.load screen))
|
||||
(pool:emit :load :tutorial)
|
||||
; (utils.debug-print world)
|
||||
; (load-assets)
|
||||
; (load-level :tutorial)
|
||||
|
|
@ -292,25 +293,6 @@ while 1 do love.event.push('stdin', io.read('*line')) end") :start))
|
|||
; (local directions [:e :se :s :sw :w :nw :n :ne])
|
||||
; (. directions (+ (% section 8) 1)))
|
||||
|
||||
; (fn draw-player []
|
||||
; "draw player sprite and hitbox"
|
||||
; (reset-color)
|
||||
; (love.graphics.draw
|
||||
; player-art.player-sprite
|
||||
; (. player-art.player1.quads (angle-to-direction player.rot))
|
||||
; player.x player.y)
|
||||
; ;; draw player hitbox and direction line
|
||||
; (when debug
|
||||
; (set-color :black)
|
||||
; (love.graphics.rectangle "line" player.x player.y player.w player.h)
|
||||
; (love.graphics.push)
|
||||
; (let [ox (+ player.x (/ 25 2)) oy (+ player.y (/ 25 2))]
|
||||
; (love.graphics.translate ox oy)
|
||||
; (love.graphics.rotate player.rot)
|
||||
; (love.graphics.line 0 0 35 0))
|
||||
; (love.graphics.pop)
|
||||
; ))
|
||||
|
||||
; (fn draw-objects []
|
||||
; (each [_ obj (pairs objects.list)]
|
||||
; ; (print (fennel.view obj))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue