- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcursor.lua
More file actions
Latest commit
21 lines (16 loc) · 434 Bytes
/
Copy pathcursor.lua
File metadata and controls
21 lines (16 loc) · 434 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
cursor= {}
cursor.main= {
img=gfx.cursors.main,
ox=0, oy=0
}
cursor.hand= {
img=gfx.cursors.hand,
ox=2, oy=0
}
cursor.cursor=cursor.main
functioncursor.draw()
localmx, my=window2game(love.mouse.getPosition())
mx, my=lume.round(mx), lume.round(my)
love.graphics.setColor(1, 1, 1)
love.graphics.draw(cursor.cursor.img, mx, my, 0, 1, 1, cursor.cursor.ox, cursor.cursor.oy)
end