Small basic lesson 1 (Mr Evlat)

What 2 shapes are drawn by these snippets of code?
Hint
This shows the first three steps!
Hint
This shows the first three steps!
Extension (toxicode)
Code.org
Extension (kidztype)
1 / 13
next
Slide 1: Open question
ComputingLower Secondary (Key Stage 3)

This lesson contains 13 slides, with interactive quizzes and text slides.

time-iconLesson duration is: 50 min

Items in this lesson

What 2 shapes are drawn by these snippets of code?
Hint
This shows the first three steps!
Hint
This shows the first three steps!
Extension (toxicode)
Code.org
Extension (kidztype)

Slide 1 - Open question

This item has no instructions

Lesson Objectives

Conquer: Understand the concept of a sprite.
 
Aspire Higher: Utilize this understanding to manipulate the turtle sprite. 




 
 
Aspire: Create a set of loops to make a program more efficient.

Slide 2 - Slide

This item has no instructions

What is a Sprite?
  • A sprite is a 2D image or character that can be moved, animated, or changed using code.

  • In programming, sprites are objects that you control, you can change their position, colour, size, or actions through instructions. 

Slide 3 - Slide

We are going to control  a sprite by programming its instructions 
Where have you seen sprites before?

Slide 4 - Mind map

games, animations, apps, Scratch, code.org
Block Based VS Text programming
Block based vs Text based Programming
  • We are used to programming using text based blocks.

  • Now we will become real programmers, now you will be typing instructions for the computer to follow.

Slide 5 - Slide

This item has no instructions

Small Basic
Small Basic! 
Delete the code already there(Click here)

Test these 2 lines of code
Turtle.move (100)
Turtle.turn (90)

Together lets draw a square

Slide 6 - Slide

This item has no instructions

Create some small programs
Create some small programs in groups
Using the lines we just learnt lets draw these shapes
PARTNER A will write the code, PARTNER B and PARTNER C will tell them what to write

  1. Rectangle
  2. Triangle
  3. Hexagon

Extension: HOUSE

Slide 7 - Slide

This item has no instructions

Slide 8 - Slide

This item has no instructions

Turtle.move(100)
Turtle.turn(100)
Turtle.TurnRight()
Turtle.TurnLeft()
Turtle.Penup()
Turtle.PenDown()
Moves turtle 100 pixels
Turns turtle by 100 pixels
Stops turtle drawing
Starts turtle  drawing
Turn left 90 degrees
Turn right 90 degrees

Slide 9 - Drag question

Student should test this code - this is a longer activity where students are testing each piece of code in small basic. 
What is a sprite?
A
A background image in a game
B
Any 2D character or object that can be controlled with code
C
Mario
D
The sound effects used in a program

Slide 10 - Quiz

This item has no instructions

Which code moves the sprite forward 100 pixels?
A
turtle.move
B
turtle.move(100)
C
turtle.move()
D
move.turtle(100)

Slide 11 - Quiz

This item has no instructions

What is the purpose of this line of code?
turtle.penup()
A
Makes the turtle draw.
B
Lifts the pen up to stop turtle drawing
C
Changes the colour of the pen
D
Changes the width of the pen.

Slide 12 - Quiz

This item has no instructions

Lets write a program to get Michael Angelo to the end of the maze
START
END
  1. Turtle.Move(100)
  2. Turtle.TurnLeft()
  3. Turtle.Move(100)
  4. Turtle.TurnRight()
  5. Turtle.Move(100)
  6. Turtle.TurnLeft()
  7. Turtle.Move(200)
  8. Turtle.TurnRight()
  9. Turtle.Move(100)


Slide 13 - Slide

This item has no instructions