Computer Science LearnITWithMrC ⛯ Year 7 Year 8 Year 9 GCSE
Responsive image

Adding Character

What am I Learning today?

I am learning how to use count controlled loops in a program to repeat code a specific number of times
I am learning how to use condition controlled loops to repeat code based upon a boolean expression

Knowledge Organiser

×

Lesson

Task 0 - Sorting out our portait image Click to see more

Last lesson we created a pixel character's portrait .

Objective: Add your pixel art as the character's portrait in the Python program and handle any potential errors.

    Getting the image into our adventure folder

    Below are some example images you could use if you have not created a suitable image for you adventure sheet


  • Save your image as character.Gif into your text adventure folder

Task 1 - Continuing our Adventure Click to see more

Last lesson we created a pixel character's portrait .

Objective: Add your pixel art as the character's portrait in the Python program and handle any potential errors.

  • Guidelines:
    • Modify the existing code to display your pixel art in the portrait area using the turtle module.


    • Implement an exception to catch any errors if the GIF fails to load and display an appropriate message.

    Code


  • You will be able to integrate external media using exceptions for better code robustness.

Task 2 - Box It Up! Click to see more

Objective: Add decorative boxes around the character's attributes for a professional-looking character sheet.

  • Part 1:
    • Let's firstly use turtle to draw boxes around the class and race attributes on the character sheet.

    • Code


    • Part 2:
    • Now let's do the and draw boxes around the other attributes on the character sheet.

    • Code


    • Ensure the boxes are aligned and colored to enhance the sheet’s aesthetics.

  • Outcome: You will enhance your coding skills by practicing structured drawing with turtle and improving your program’s visual appeal.

Task 3 - Zigzag Finishing Touches Click to see more

Objective: Create a patterned zigzag at the bottom of the character sheet and add an option to clear the screen.

  • Guidelines:
    • Write a function to plot a zigzag pattern using turtle.
      • Let's firstly use turtle to draw boxes around the class and race attributes on the character sheet.

      • Code


      • Implement a user prompt with screen.textinput() to clear the screen when desired.
    • Outcome: you will develop more advanced turtle drawing techniques and implement interactive features to refine their user interface.

Task 4 - What are we aiming for? Click to see more

Task 4: Final Character Sheet

Next lesson we will be creating an image and adding it to our character sheet as well as making the whole thing more colourful and interesting.


Summing it all up

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

Learning Outcomes I need to learn how to use condition controlled loops to repeat code based upon a boolean expression

  • I have a basic understanding of how I can use condition controlled loops to repeat code based upon a boolean expression with a little help from my teacher
  • I can show my teacher that I can use condition controlled loops to repeat code based upon a boolean expression without their help.
  • I can use condition controlled loops to repeat code based upon a boolean expression independently and I can also explain it to others and can complete any extension tasks I am given.

🠜 Now update your learning objectivesClick on the Assessment image



My Notes: Text_Programming

Student_Comment_2 not found

Task Notes/Comments - Add here Click to see more

Comments/Notes