From f0b14a1d5d6559b73d82c09c8b9d3f6f6987183c Mon Sep 17 00:00:00 2001 From: Miguel Sosa <85181687+msosav@users.noreply.github.com.> Date: Sun, 23 Jun 2024 16:44:13 -0500 Subject: [PATCH] Add image capture --- captures/test.png | Bin 0 -> 3057 bytes main.py | 1 + 2 files changed, 1 insertion(+) create mode 100644 captures/test.png diff --git a/captures/test.png b/captures/test.png new file mode 100644 index 0000000000000000000000000000000000000000..0cff91ce949386f3aa9edacb02c506dbb40ff304 GIT binary patch literal 3057 zcmZ{mc{me}AIB}N$=oR{MIz_WlOkydkt;`7)67wXEOO2kqugi0d?iP$<(hIcj9eka zT*)ouYPDgG;pg{zp5K4J-yg5f=XpN=y`InW`8@9!3v)wWZU{FA2M6yRBYmr*o_jVU-lNK6bC~!r^OEiNL(AqF;~>pyuj1W6;mZr)%RnCTOOo^bbm!F?rJf7^Ci1B0 z9Xwufwk~o__E)g&UqCc!{)`J*9k;sFR%D9cMxtQL$5rHv+T>&CU8Ivi8=O zBbR6U)pkDNjA{eD#8oX2HWD*D zz`r&O`C*Ro9>C+w100MR;=bX#hEQ5pW{eZPgN#c%Koixa!3gt$9?W6EjF_OgGBUf-~Cfmd?D1q2_oLHV{*2!%&2bC5OP<+#AJMIb5Cf(l$6qfz__E#09 z+jl52-oA_A2muwS6Y4L;yqPp}2*2ha`kG`?^igWzprhQ?r+E+^=_#7vf<}f!%Mntu z>z%=w$KMei$p<`K!X)lm7Cx(utX8I`H2_H{e$g)lHPWz3vS-G7d9A~Aso7ewWDnC! zS7eCdPI_LNkhuhi2bdrs1(S9gb{+}$d|b@P?_Gd9f$mn=`lmvv?oDr_PCgW+m{UYJ5yM_y46h5OL@FKN)f+njHe2h)!tUl1sne$K9^1h)J7ju2n^;g`&!Y$i> zRF~G`G`>Z|v490ZxonwDdW%SdzPPF|oBR57%xbJg?QJ4bHTAL?jbPB0E*NTO1+)D* zVa{1dugus2bH{adp``f6q^5{n7tgrnUC0|_JzIFe2-6ycr+E2R9qk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mu;fuFRXG-t>bF_k;REM zgwH!E+g!spm_&Twp3RAOI4YHT;iZ5>nH_C2s*p|J{z}bQ!ceXp(vrN+cK-F{J&3H# zW@=wyYCYA?`!j(cK?6g#S{Hi==ky{4J{tm-l`{;zV&5u8g_PCo4$wKFE1m0;U%f`{ z-=KT%O7dcd64!LM-w95J*4OL;uxs;LJgu_Qw+|!h-3PJFOW|jANIwwF5NfMdKZ+Iv zr9pR2f&$#DHrTg>Y++m#YXjfvw5pbE^(iyizxKJfEVS_8C!=`E0Bi5u`J~QKrG#sZ zAoH5*mh?(17>A-DNo(BC^IiT-zCxyA+}W2Kw%T7EHWe`DSC?(s8*q6ZGAhacW|4Wy z^HWEYAdv}t*6E@5C^7z4xfa3W=#K?vR82BIQU1TId1N@q?o~Y_rYfg%-~^;P2`<;) avqk!&{3(UBIkBTC&vD1VT%UZ)G5lX}oBvAy literal 0 HcmV?d00001 diff --git a/main.py b/main.py index b235bb8..c6ea96c 100644 --- a/main.py +++ b/main.py @@ -17,6 +17,7 @@ def load_state(path: str, pyboy: PyBoy) -> None: while pyboy.tick(): pyboy.button(valid_buttons[0]) # a pyboy.tick() + pyboy.screen.image.save("captures/test.png") pass pyboy.stop()