From 8610215c136e16714c3d56cf2f348b4b3b92833c Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Tue, 24 Dec 2024 17:37:31 -0800 Subject: [PATCH] clip is absolute screen position, unaffected by camera --- camera-does-not-move-clip.p8 | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 camera-does-not-move-clip.p8 diff --git a/camera-does-not-move-clip.p8 b/camera-does-not-move-clip.p8 new file mode 100644 index 0000000..bc88d23 --- /dev/null +++ b/camera-does-not-move-clip.p8 @@ -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