get circle fog_of_war working
This commit is contained in:
parent
cffdeda2e9
commit
ddc6c6da5d
3 changed files with 44 additions and 46 deletions
|
|
@ -5,8 +5,8 @@
|
|||
|
||||
(local camera {:x 0 :y 0})
|
||||
|
||||
(fn camera.draw2 [self]
|
||||
(love.graphics.push)
|
||||
(fn camera.draw10 [self]
|
||||
(love.graphics.origin)
|
||||
(love.graphics.translate (* -1 self.x) (* -1 self.y)))
|
||||
|
||||
(fn camera.load [self]
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
(set self.y (- y (/ screen.canvas-h 2)))))))
|
||||
|
||||
(fn camera.draw89 [self]
|
||||
(love.graphics.pop)) ; undo camera translation
|
||||
(love.graphics.origin)) ; reset camera translation
|
||||
|
||||
(fn camera.draw99 [self]
|
||||
(let [screen self.pool.data.screen canvas self.pool.data.canvas]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue