At the end of this lesson, you will be able to:
use buttons on a PyBadge
how to get a sprite to show up on the screen
review Python Bitwise Operators
x & y -> Does a "bitwise and". Each bit of the output is 1 if the corresponding bit of x AND of y is 1, otherwise it's 0.
see an example of how to use the uGame buttons below
Note:
there are a max of 8 buttons and each one gives a 1 on an 8-bit number!
For example:
00000000 - no buttons being pressed
00000001 - B button being pressed
00000010 - A button being pressed
10000001 - Left & B buttons being pressed
watch "SpaceAliens-04"
update your code.py file 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