Games Project

Pong

Today, we programmed a game using Scratch, which was made by the people at MIT. The game I programmed was Pong. Press space to start the game, then use the arrow keys and the wasd keys to play.

Story

After creating a knock off version of pong, I created a story. My story was based round the game of pokemon. My game is below.

Programming this game was a little bit difficult, and took a bit of time The coding for the BYOB logo was the longest. I had him telepot many times over the course of the game, wwhich took up a lot of space int he coding. Here is the coding for the BYOB logo.

Here is the some of the coding for the other sprites.

The most helpful tool of Scratch, were the conditionals. It really helped when I wanted something to happen at a certain time, or when there were multiple options to choose from.

Multiplayer

Today, we worked on the BYOB on our desktop. We started to create games like yesterday, but this time, we were doing it multiplayer style. We were able to join one another by using the IP address. If we knew someone elses IP address, we could join them.

The game I cerated, was a difficult game based off of the game pokemon

The pokeballs are constantly moving, and if your character is hit, the timer restarts. The goal of the game is to survive the longest. Here is some of the code I used.

Quiz

Today, we made a quiz using Scratch. When I first started making my quiz, I decided that My quiz would have some story behind it. So at the begining of my quiz, there is some story. Here is my quiz/story.

Prgramming this quiz took a lot of time, because the sprites had a lot of text to say. The sprite with the longest code would have to be the magic watermelon.

Theat's not even all of the code. There was still a lot more cde for the watermelon, but I couldn't fit it into one screenshot. As for the coding of the actual quiz, here it is.

In the quiz code, you can not progress onto the next question, unless you answer your current question corectly. The program will ask you the same question forever, until you give the desired answer

Sorting Algorithm

Today, we used python to create an algorithm that would sort the numbers in a list, from smallest to largest. When atempting to create this function, I got stuck, because I didn't know how to start. Then Mr. Farrell showed us something called a min function.

This function will find the smallest valur in the list, and print it. This is when I had my Aha moment. I knew Exactly what to do. The way I went about the sorting algorithm, was to find the lowest value in my list, print it, remove it from my list, then do the same thing again. So my alorithm searched for the lowest value, removed it, searched, reoved, until the list had been searched through completly. Here is my function

This code forst checks how many numbers are in he list. Then does the search in remove however many times. Here are a few examples of the algorithm in action

During the month of January, I created two more games on Scratch. Use the up and down arrow keys for the first game. For the second game, use the left and right arrow keys.