At the end of this lesson, you will be able to:
make a sprite move on a PyBadge, but not go off the screen
how to get a sprite to move
go over why to add a constants file
we need an if statement to prevent the sprite from moving off the screen
Note: the"location" of the sprite is actually referenced by its top-left corner of the 16x16 size
the screen size is 160 pixels x 128 pixels
when moving the sprite, you must take into consideration its width!
watch "SpaceAliens-05"
update your constants.py and code.py fies with the code below
personalize it to make it your own
complete the Daily Assignment section in Hãpara Workspace for this day
if Hãpara is not working, make a copy of this document
move it to your IMH-ICS folder for this course