clip is absolute screen position, unaffected by camera
This commit is contained in:
parent
538120e68d
commit
8610215c13
26
camera-does-not-move-clip.p8
Normal file
26
camera-does-not-move-clip.p8
Normal file
@ -0,0 +1,26 @@
|
||||
pico-8 cartridge // http://www.pico-8.com
|
||||
version 42
|
||||
__lua__
|
||||
function _draw()
|
||||
cls()
|
||||
reset()
|
||||
rectfill(5, 5, 100, 100, 13)
|
||||
|
||||
clip(10, 10, 80, 80)
|
||||
rectfill(15, 5, 120, 120, 8)
|
||||
clip()
|
||||
rect(15, 5, 120, 120, 14)
|
||||
|
||||
camera(-25, -25)
|
||||
clip(10, 10, 80, 80)
|
||||
rectfill(15, 5, 120, 120, 3)
|
||||
clip()
|
||||
rect(15, 5, 120, 120, 11)
|
||||
end
|
||||
__gfx__
|
||||
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
Loading…
x
Reference in New Issue
Block a user