1/10
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
if statement
Used to initiate conditional logic.
elif
Short for 'else if', allows for an additional test that executes if the initial if condition is false.
else statement
Runs if all previous conditions (if and any elif) are false.
onKeyPress
Event handler triggered when a key is pressed down.
onKeyRelease
Event handler that allows code execution when the user releases a key.
addPoint(x, y)
Exclusively available for polygons, adds a point to the defined polygon based on coordinates.
contains(x, y)
Returns whether the specified shape includes the point defined by the coordinates, returning a boolean value.
hits(x, y)
Returns True if the point lies within the borders of the shape that is drawn at that location.
shape1.hitsShape(shape2)
Tests for a collision or intersection between two shapes.
shape1.containsShape(shape2)
Tests if the first shape completely encloses the second shape.
app.stop()
Terminates further event handling, effectively stopping the application from processing any more events.