Available
Apr 22, 2022 at 8am - Jun 3, 2022 at 11:59pm
This assignment was locked Jun 3, 2022 at 11:59pm.
Lesson 24: Functions
Question of the Day: How can programmers use functions to create their own abstractions?
Students learn how to create functions to organize their code, make it more readable, and remove repeated blocks of code. Students first think about what sorts of new blocks they would like in Game Lab, and what code those blocks would contain inside. Afterwards students learn to create functions in Game Lab. They will use functions to remove long blocks of code from their draw loop and to replace repeated pieces of code with a single function.
To earn credit for the lesson, students will submit a screenshot and link to thebubble 9of their collector game project.
The student's code for the level (specifically thefunctions created by the student)
Created a working setCoin() function (bubble 7)
Created two working functions that change the background
Used an if-statement to switch the background functions based on score (bubble 9)
The game it creates
The game should do what is required in the directions (shown in your screenshot).
For adistinguishedscore, students have all the requirements above and have:
Replaced the animations (bunny and coin) with custom animations created by YOU
Add a MegaCoin sprite that is worth 5 points
Submit a shared link to the animation (see below)
Additionally, since we'll be using animations starting now, please share the link to your project by clicking the share button, copying the link, and pasting it in as a comment for your submission.
10to >8.5 pts
Distinguished• Work correctly uses previously learned concepts, code, or materials not explicitly required in the directions.
• Code executes correctly, with no errors, and correct output.
• Work shows independent thinking.
• Work shows a genuine effort to understand and creatively apply the topic or material.
• Answers (if required) are written in complete sentences.
• Code (if required) is organized and formatted for readability (uses whitespace and indentation to separate elements, appropriate names, etc)
• All sections of the assignment are complete.blank
8.5to >7.5 pts
Proficient• Code executes correctly, with no errors, and correct output. • Work shows student thinking, regardless of “correctness”. • Work shows genuine effort to understand the topic. • Answers (if required) are written in complete sentences. • Code (if required) is formatted for readability (uses whitespace and indentation to separate elements, appropriate names, etc) • All sections of the assignment are complete_4803
7.5to >6.5 pts
Competent• Code executes, possibly with errors, generates an expected output that is close to the correct output. • Work shows an attempt to understand the topic. • Work demonstrates student thinking, but needs expanding or clarification. • Answers (if required) are in fragments or incomplete sentences. • Code (if required) is hard to read • Some sections of the assignment are incomplete._9677
6.5to >5.0 pts
Inadequate• Portions of the code run, but contain many errors or is incomplete.
• The code output is severely incomplete or broken
• No evidence of student thinking.
• Answers are attempts to “fill space” or do not make sense.
• Answers are fragments or incomplete; difficult to read
• Aspects of the task incomplete or missing_9560
5to >0.0 pts
Unacceptable• Code is broken, incorrect, or incomplete, resulting in no output. • Work is missing or plagiarized from another website • More than half the assignment is blank or incomplete • Work has a complete heading_360
0to >0 pts
No Credit• Work must be redone and resubmitted • Work is missing. • More than half the task is blank. • Work is incomprehensible.blank_2
This area will be used by the assessor to leave comments related to this criterion.
pts
/
10 pts
--
This criterion is linked to a Learning OutcomeDescription of criterion