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
volgende
Slide 1: Open vraag
ComputingLower Secondary (Key Stage 3)

In deze les zitten 13 slides, met interactieve quizzen en tekstslides.

time-iconLesduur is: 50 min

Onderdelen in deze les

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 vraag

Deze slide heeft geen instructies

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 - Tekstslide

Deze slide heeft geen instructies

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 - Tekstslide

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

Slide 4 - Woordweb

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 - Tekstslide

Deze slide heeft geen instructies

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 - Tekstslide

Deze slide heeft geen instructies

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 - Tekstslide

Deze slide heeft geen instructies

Slide 8 - Tekstslide

Deze slide heeft geen instructies

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 - Sleepvraag

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 - Quizvraag

Deze slide heeft geen instructies

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

Slide 11 - Quizvraag

Deze slide heeft geen instructies

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 - Quizvraag

Deze slide heeft geen instructies

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 - Tekstslide

Deze slide heeft geen instructies