Common Computer Science References
At the end of this lesson, you will be able to:
make a sprite move, but not go off the screen on a PyBadge
how to get a sprite to move
go over why to add a constants file
show example
we need an if statement to prevent the sprite from moving off the screen
also the "location" of the sprite is actually referenced by its top-left corner of the 16x16 size
the screen size is 160x128
show demo of sprite being constrained
get a sprite to move on your PyBadge
take 2 pictures of screen for your screenshot
constants.py
code.py
This is "Blinka" the CircuitPython mascot.