Drawing in Game Lab

Students will be able to:

  • Use the Game Lab IDE to plot different colored shapes on the screen.

  • Sequence code correctly to overlay shapes.

  • Debug code written by others.

Vocabulary

  • Bug - Part of a program that does not work correctly.

  • Debugging - Finding and fixing problems in an algorithm or program.

  • Program - An algorithm that has been coded into something that can be run by a machine.

Go to code.org and make sure you on Lesson 3 Drawing in Game Lab. You will need to complete each section and don't forget to rate how you felt about each puzzle.

First, you will need to explore the rect block to create a rectangle. Your code block not only creates the rectangle but determines its size and location. Click Show grid to help you with your numbers. each square is 50 by 50. The top left corner square is 0,0. Once you have created a square, clicked Reset, and changed the numbers to move the square to a new location and change its size.

The toolbox has your blocks. the Workspace is where your blocks go and the order they occur. Reset does just that. Run will run your code. Don't click Fiuntilntill you have created a rectangle and changed the variable for a second rectangle. When you are ready, click this video to learn how to draw a square and place it at key locations to finish Part 1.


Part 2 is when we talk about fill and stroke. This video will help you understand the commands. When you're ready, look at what you need to create. You will need to change the color and create a new square and set its location. It is best to change your variables by increments of 50. Once you have the locations done. The next part you will then need to work on two different colors and the order the code will be carried out.Part 8 has us creating ellipses with a fill and locations.Part 9 fill purple is there for you. Use rect block and change its position. There is a rectangle you will need to pull from the list of code.