šÆ My Objectives
š Question of the Day
Select the BEST answer:
š Fun Fact Question of the Day!
"Why do programmers prefer dark mode?"
In programming, "bugs" are errors in code. The term dates back to 1947 when an actual moth was found causing problems in a computer at Harvard University! So the joke is that "light attracts bugs" - both the insect kind AND the code error kind! š
š„ Watch First: Video Tutorial
Introduction to p5play - Canvas Setup
Before you start coding, watch this CodeHS video to see how setup() and draw() work in action!
šŗ Duration: 5-8 minutes
š Topics: Canvas creation, setup() and draw() functions, backgrounds
ā ļø Important: After watching, complete the step-by-step instructions below!
š Step-by-Step Instructions
Follow each step carefully to build the foundation of your Mini Golf game. Check off each box as you complete it!
}
function draw() {
}
new Canvas(450, 520);
}
clear();
background("#79bef2");
}
new Canvas(450, 520);
mouseCoordinates();
}
clear();
background("#79bef2");
coordinates.text = round(mouse.x, 1) + ', ' + round(mouse.y, 1);
}
coordinates = new Sprite();
coordinates.color = 'white';
coordinates.width = 80;
coordinates.height = 20;
coordinates.x = width - coordinates.width / 2 - 5;
coordinates.y = coordinates.height / 2 + 5;
coordinates.collider = 'none';
}
š” Reflection Questions
ā Student Checklist Review
| Task | Completed (Yes/No) | Your Initials |
|---|---|---|
| Program structure created | ||
| Canvas created & visible | ||
| Background color added | ||
| (Optional) Mouse coordinates display | ||
| Reflection questions completed |
š Don't Forget Canvas!
Before moving to the quiz, make sure you've posted your responses to today's Canvas assignment:
ā Question of the Day answer with explanation (3-5 sentences)
ā Fun Fact answer with explanation (2-3 sentences)
Ready? Scroll down to take the quiz! šÆ