foxygit / fake-08-xbox360 Log in
main xbox360 commits tags

/test/carts/cliptest.p8 · 1.14 KB

raw
pico-8 cartridge // http://www.pico-8.com
version 29
__lua__
function _update()

end

function _draw()
 cls()
 camera(-64, 0)
 clip(0, 8, 128, 112)
 
 -- these circles are clipped to (0-127,8-119)
circfill(10, 10, 8, 8)
circfill(10, 118, 8, 8)
 
-- reset the clipping region to full screen
clip()
 
-- these circles are not clipped
circfill(40, 10, 8, 7)
circfill(40, 118, 8, 7)
end

__gfx__
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000