APCSP - Unit 4 Flashcards
What component must an image sprite be inserted into?
Canvas
What event makes the ImageSprite move?
Clock timer ticks
If you wanted your Image Sprite to move every 3 seconds, what value would you set the timer to?
3000 milliseconds
How do you stop the motion of the Image Sprite hen the game, such as your Light Bulb app project is over?
.timerenabled
What function does button1 perform in the light bulb app?
You cannot tell because it is a generic name.
What exactly did the reset button do in the light bulb app.
Clear the values that are being tracked.
What control block would you use to determine if a game, using the image sprite is over?
An if block
Assuming that forward tells the Android to move forward by 10 pixels and turn tells it to turn right by 90 degrees, what shape would be drawn by this algorithm?
forward turn forward turn forward turn forward turn
A square
What value cannot be generated by a random fraction block?
1