Scratch
24 Jack Bauerio
I collaborated with Chris Alexander and Matt Jaskie to create a play on the Super Mario games. However, our main character was not a plummer; he is Jack Bauer of the hit TV show 24. The player must go through each level collecting brief cases and avoid falling or the TNT obstacles. If you touch the bottom, you lose a life. Be very careful though. You only have four lives. If you die the bomb explodes and you lose. So collect the brief cases, get to the end, and defuse the bomb!
The code |
This was the first major project assigned this semester. Since I have never been exposed to coding I relied on my partners to help me learn and understand what everything meant. With their help, I learned how to use an aggregator or make a sprite move and jump. The most important thing I learned during this process was how to make your codes interact with another to make one unified concise code. Another thing I took from this was to test your code as you go so you find errors easier. This was one of my favorite activities and I learned so much from it.
|
This code consisted of 14 sprites and 5 backdrops. Three of the backdrops are different levels and the others are the winner screen and the losing screen. The first picture deals with the briefcases. To get them to show at different places on different levels you have to set the coordinates of where you want it when that level comes. The second picture is the code of sprite2 which is the reason levels change. This sprite is in every level hidden in the furthest right block. It is coded like the briefcases in the sense of where they are in each level. However, it is also coded to change the level when Jack touches it or hide if Jack runs out of lives. Finally, the last picture deals with how his lives work. He starts with four lives and if he touches the bottom it increases by -1. It resets him at the start as long as the number of lives is greater than zero. To play out game and see the rest of the code just follow this link: http://scratch.mit.edu/projects/26655742/