Module 6 Final Project

We choose the Egyptian Art lab.

Storyboard:

We will make something that can create rectangular art to input specifications

Logic:

We will use the ask block, the pen down & up blocks, and then move blocks to make our project.

Steps:

First we made a block that creates rectangles, and then we put it in the pinwheel code and modified that a bit. Next we put that modified code in a block that asked the user what values they wanted first. After that, we changed it so that you could choose how many sides you wanted in the shapes that made up your hieroglyph art. I also made a version that created a random assortment of art (press “s”), and made it rainbow. The main one has a different-looking pen shades throughout the shape, which I accidentally created but left in because I thought it looked cool.

Problems:

Re-purposing old code meant that old things that were designed for different code would still be in the code. This meant that we had to remove several things and re-code certain parts so it would work in our final project. For instance, at one point the code would create several shapes per side, which we did not want. Fortunately, it was a simple fix of taking out a for ___ loop.

SNAP:

SNAP

M6L3

Pen Lab

Brick Lab

Storyboard:

We will make a program that draws varying colors depending on where on the page we are actually drawing.

We will make a program that will draw a brick wall with varying numbers of rows.

Logic:

We will use the forever loop, if statements, and pen color blocks.

We made some custom blocks that resulted in a Boolean variable, including one that decides if a number is even. We also made custom pen blocks that made bricks and rows of bricks

Steps:

Started with a forever loop, then started tracking the mouses position. Sprite always went to the mouse’s position and if statements for the mouse position would cause the sprite to change pen color.

We made the custom brick blocks first, then strung all of them together with a green flag block. At the end we made the sprite ask how many rows the user wanted.

Problems:

We had some issues with the speed of the tracking for the mouse. Snap just isn’t the fastest thing in the world.

The last half-brick was set up oddly, so we had to change the code a bit so that the end result would actually resemble a wall.

SNAP: