We are going to save all of our work for this topic into a PowerPoint like we did in our assessment.
Save your PowerPoint as 'Pygame'
This is the function we need to use in pygame to draw a line:
So lets fill it in with the co-ordinates we mentioned above (0,0)and (30,40) and we will use the colour green and a line thickness of 2
Look at the image below to see where to put this line of code in your template. hint: it goes between the lines that say 'your code starts here' and 'your code ends here'.
In order to draw a rectangle we only need the co-ordinates for the top left hand corner of the rectangle and then the height and width in pixels.
When you run your code it should look like this:
Lets look at the learning outcomes and decide which one best describes our current level of understanding :
Tick the one you feel is closest to your level