(example.py) store_rect demonstration

This commit is contained in:
KikooDX 2020-04-12 19:01:59 +02:00
parent 7cb8ff5541
commit 6768589881
1 changed files with 6 additions and 0 deletions

View File

@ -18,3 +18,9 @@ raw_sprite.draw(16, 0)
#invert raw sprite
invert_rect(16, 0, 8, 8)
show_screen()
#store what we drew
copy = store_rect(0, 0, 64, 64)
#draw it again, twice
copy.draw(64, 0)
copy.draw(0, 64)
show_screen()