CT 211

Lab 1- Hello World

This is the first lab I completed. The purpose of this lab was to get acclimated to Scratch and learn how to use it. The character in the program simply says "Listen up!".

Lab 1- About Me

Lab 2 was an expansion of the first lab. I learned how make my games more interactive and add more elements to it.

Lab 2- Dance

This was a fun lab. The goal here was to develop a way to make our character move in a way that looks like dancing. The character is controlled by the player of the game via the keyboard.

Lab 2- Square Circle

In this lab I learned how to make different costumes. Costumes take existing sprites and alter how they look so existing code does not have to be duplicated for a new sprite.

Lab 3- Variables and Lists

As the name suggests, I learned how to make variables and lists and use them in a program. Variables are numeric values that can change as the program runs. The change can be predetermined by the programmer or it can change according to what the player does in the game. Lists are used to store and keep track of data. This program simply lists the alphabet and adds it to a list.

Lab 3- Lists and Control Structures

This program utilizes lists in a more advanced way by allowing the user to add data to a list in order to create a simple trivia game.

Lab 3- Debugging Activity 1

In this debugging activity, the original code called for the sprite to spin 90 degrees four times. This means that the sprite made a full turn instantly, therefore the player can not see it happen. The solution is to make the sprite turn a fraction of a turn each time the space bar is hit so that the user can see the rotation.

Lab 3- Debugging Activity 2

In the original code, when the flag is clicked, the cat moves across the screen as it should. Since the code does not call for the sprite to go back to the center of the screen, the sprite remains where it ended up last time. A "go to" block was required to make the sprite's position reset.

Lab 4- Random Numbers

This lab taught me how to make a program pick a random number and how to use that random number to add variety to a game.

Lab 4- Debugging Activity 3

In this activity, the original code tells the sprite to dance and the music to play. The music ends when the recording ends, but the sprite continues to dance. A block of code had to be entered to make the sprite stop dancing when the music ended.

Lab 4- Debugging Activity 4

In this activity, the sprite needs to announce it's position as the player moves it left and right. The code only tells the program to check the position of the sprite once. The sprite evaluates it's position and says it, but when the position changes it does not say a new position. The code needs to be put inside of a "forever" block.

Mini Project

This game took many of the lessons I learned throughout the semester and combined them into a pong game. In my game I increased the game speed as time goes on.

Final Project

I created this game to help demonstrate electrical circuits. Students can input a voltage of the battery and a resistance of the light bulb. They then have to calculate the resulting current. If the student enters the correct current, the electrons flow through the circuit. The higher the current, the faster the electrons will flow.

No comments:

Post a Comment