brick wall homework overview brick wall two types of row big brick row alternate brick row

5
Brick Wall Homework Overview •Brick wall •Two types of row • Big Brick Row • Alternate Brick Row

Upload: shavonne-oneal

Post on 17-Jan-2016

223 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Brick Wall Homework Overview Brick wall Two types of row Big Brick Row Alternate Brick Row

Brick Wall Homework Overview

• Brick wall

• Two types of row• Big Brick Row• Alternate Brick Row

Page 2: Brick Wall Homework Overview Brick wall Two types of row Big Brick Row Alternate Brick Row

Blocks needed to draw a brick row

• DrawBrick block - draws a single brick• DrawHalfBrick block - draws the small brick for the

edges of row Alternate Brick Row• The DrawSpace block, which draws a space between

each brick or half brick

Page 3: Brick Wall Homework Overview Brick wall Two types of row Big Brick Row Alternate Brick Row

Identify Distinct Steps to Draw Wall

1. Initialize1. Pen color, size2. Location, direction of sprite

2. Draw Big Block Row3. Draw Alternate Block Row4. Draw Space Between Rows

Page 4: Brick Wall Homework Overview Brick wall Two types of row Big Brick Row Alternate Brick Row

Putting it all together

• Level 3: First identified the lowest level or most atomic blocks we needed – DrawBigBrick, DrawHalfBrick, DrawSpace• Level 2: Then identified the two types of brick rows which are made

up of the level 3 blocks – DrawBigBlockRow, etc• Level 1:Finally can build the wall by using the level 2 blocks

Page 5: Brick Wall Homework Overview Brick wall Two types of row Big Brick Row Alternate Brick Row

Homework• Draw the brick wall below by

implementing the blocks listed to the right• You must implement all the blocks

listed• DrawBrick Hint: a brick is drawn by

setting the pen size to about 10• DrawHalfBrick Hint: this brick will

not be exactly half as long as the full brick. Part of this homework is figuring out how long the “half brick" should be