p5Play Project Golf & Helicopter Midterm Review w/ Annotations

Flashcard
•
Computers
•
10th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

37 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What does the following code achieve in the game loop?
obstacle.move(-SPEED, 0);
Back
Moves the obstacle horizontally from right to left.
Answer explanation
The code 'obstacle.move(-SPEED, 0);' moves the obstacle horizontally by a negative value of SPEED, which translates to moving it from right to left on the screen. Thus, the correct answer is that it moves the obstacle horizontally from right to left.
2.
FLASHCARD QUESTION
Front
Which condition ensures that the obstacle resets to the right side of the screen after hitting the left side?
Back
3.
FLASHCARD QUESTION
Front
What does the clicking Boolean variable do in this project?
Back
It determines whether the helicopter should move upward or downward.
Answer explanation
The clicking Boolean variable is crucial as it determines the helicopter's movement direction. When true, it allows the helicopter to move upward, while false would typically mean it moves downward.
4.
FLASHCARD QUESTION
Front
How does the value of dy change as the game loop runs?
Back
dy increases or decreases each time through the game loop based on conditions.
Answer explanation
The correct choice is that dy increases or decreases each time through the game loop based on conditions. This means dy is dynamic and can change depending on the game's state, rather than being constant or reset.
5.
FLASHCARD QUESTION
Front
What is the purpose of the MAX_DY constant in the game?
Back
It ensures the helicopter’s vertical speed does not exceed a certain limit.
Answer explanation
The MAX_DY constant is crucial as it limits the helicopter's vertical speed, preventing it from moving too fast and ensuring smoother gameplay. This helps maintain control and enhances the player's experience.
6.
FLASHCARD QUESTION
Front
Which condition ensures the helicopter stays within the screen boundaries?
Back
7.
FLASHCARD QUESTION
Front
How is the “You Lose” message displayed when the helicopter hits the top or bottom of the screen?
Back
Create a free account and access millions of resources
Similar Resources on Wayground
34 questions
Review for Summative Assessment - App Creators

Flashcard
•
8th Grade
32 questions
CS1 - Unit 6

Flashcard
•
10th Grade
40 questions
Interactive Games and Animations

Flashcard
•
9th - 12th Grade
28 questions
Unity Certification Prep-Chapters 17-20

Flashcard
•
12th Grade
30 questions
Unit 5 AP CSP Code.org

Flashcard
•
9th - 12th Grade
30 questions
2024-2025 Fundamentals of Computing Final

Flashcard
•
9th - 12th Grade
31 questions
BJC Unit 2 Concepts Review

Flashcard
•
10th Grade - University
34 questions
Fund of Comp Sci Final Exam REVIEW - CSD

Flashcard
•
9th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade