Coding
Remote Learning, 01/06 - Starting our Second Game
Please read over each step below to make sure that you have completed today's requirements:
Create a Scratch account and join Mr. Pound's class (in scratch) ONLY if you didn't attend UJHS last Semester in person. Please be sure to click on the correct link below:
Sign into Scratch Using this link: Scratch.mit.edu
Create a new project by clicking on Create in the upper left hand side of your window.
Delete the cat sprite
Paint a new sprite...Make it a circle (any color is fine) that is not to big or to small
Share and Add to studio "The second game" STUDIOS MAY NOT BE WORKING....SORRY
If any of these steps confuse you, please watch the video posted below. That is the first thing I will ask if you email me.
That's it! Your done for today!
Remote Learning, 01/13 - Getting our circle to move.
Please read over each step below to make sure that you have completed today's requirements:
Open up your creation from last week at scratch.mit.edu from the mystuff option in the drop down menu.
Name your game something other than "Untitled". My suggestion is something like Math Video Game 2
Add eyeballs to your circle on the right side. (See image below in my game)
Copy the code below (Movement Code) into your circle's code. This will allow it to move in all directions.
If any of these steps confuse you, please watch the video posted below. That is the first thing I will ask if you email me.
That's it! Your done for today!
Remote Learning, 01/20 - Building our world (Step 1)
Please read over each step below to make sure that you have completed today's requirements.
World Building is really complex and will take some visualization from you. It may be extremely helpful at this point to draw out your world on a piece of paper as you build it on Scratch
Our world will be 4x4 stages for a total of 16 unique backdrops:
Open up your creation from last week at scratch.mit.edu from the mystuff option in the drop down menu.
Number your backdrop with a 1 in the bottom right of the screen (using backdrop paint editor and Text tool)
Create 15 new backdrops to have a total of 16 blank backdrops.
Number each new backdrop with the correct number (2-16)
Paint the world border around the 16 backdrops [BD] (See images below to help)
Look at my whiteboard 4x4 square and see the border around it...That is how they should be painted
Make sure that your border is all the same color
Top left corner is BD1, Top Right is BD4, Bottom Left is BD13, etc...
If any of these steps confuse you, please watch the video posted below. That is the first thing I will ask if you email me.
That's it! Your done for today!
Remote Learning, 01/27 - Making Bumpers
Please read over each step below to make sure that you have completed today's requirements.
Bumpers will act as an invisible sensor that we will use to control the movement of our hero
Open up your creation from last week at scratch.mit.edu from the mystuff option in the drop down menu.
IMPORTANT! Change the size of your circle in the paint editor so that it will be ideal for our adventure game. Consider looking at the image below (size of circle) to help you determine an appropriate size. We want the circle to have plenty of movement on each screen.
Change size by dragging and selecting all shapes with the arrow, than change size by dragging corner.
Orient your circle sprite so that it is moving to the right (90 degrees)
Duplicate your circle sprite (right click on sprite) and rename duplicate "top bumper"
Delete the code for the duplicate sprite by dragging it off the screen
Edit the costume for the duplicate sprite, adding a "bumper" above the circle.
The bumper can really be any shape, but the most efficient is a stretched out t-shape (see image below title "bumper")
The bumper should be as wide (or tall) as the circle
Erase the circle from you duplicate sprite.
Repeat steps 4-7 three more times creating bumpers for all 4 sides of the circle.
If any of these steps confuse you, please watch the video posted below. That is the first thing I will ask if you email me.
That's it! Your done for today!
Class Day, 01/28 - Coding Bumpers
Please read over each step below to make sure that you have completed today's requirements.
Bumpers will act as an invisible sensor that we will use to control the movement of our hero
Open up your creation from last week at scratch.mit.edu from the mystuff option in the drop down menu.
If you are planning on naming your circle anything other than sprite 1, now is the time to change it. Keep it basic.
Open your coding for the circle and add, using the photos below and/or following Mr. Pound's guidance, the rules below in code:
2 new variables, for all sprites. 1 called x velocity, 1 called y velocity
code called "bc velocity change"
adjustments to movement code called "bc moving character"
Open your coding for the top bumper and add, using the photos below and/or following Mr. Pound's guidance, the rules below in code:
3 codes called "bc bumper code"
for the top bumper make y velocity change by -1.5
for the bottom bumper make y velocity change by 1.5
for the right bumper make x velocity change by -1.5
for the left bumper make x velocity change by 1.5
Repeat step 4 for each bumper
Test it out, you now shouldn't be able to walk through your border.
If any of these steps confuse you, please watch the video posted below. That is the first thing I will ask if you email me.
Remote Learning, 02/03 - Scrolling
Please read over each step below to make sure that you have completed today's requirements.
Scrolling will allow our circle to move to other backdrops.
Open up your creation from last week at scratch.mit.edu from the mystuff option in the drop down menu.
In your circle's code, add these scripts:
scroll left and right 1 This code will sense when you move off the edge of the screen
scroll left and right 2 This code will move your circle to the opposite side of the screen.
scroll up and down 1 Same as the first code but for vertical movement
scroll up and down 2 Same as the second code but for vertical movement
In your stage code, add these scripts:
scroll left and right 3 This code will tell your stage to change to the appropriate backdrop.
scroll up and down 3 Same as the other stage code, but for vertical.
Test out the scrolling codes, you now should be able to scroll to all 16 backdrops. Check to make sure your numbers are correct.
If any of these steps confuse you, please watch the video posted below. That is the first thing I will ask if you email me.
That's it! Your done for today!
Remote Learning, 02/10, 17, 24 World Building (Step 2)
Please read over each step below to make sure that you have completed today's requirements.
Scrolling will allow our circle to move to other backdrops.
Open up your creation from last week at scratch.mit.edu from the mystuff option in the drop down menu.
It is very important for this next step that your bumpers and scrolling work perfectly. If you are having issues with either of these, please spend your remote learning time getting these to work.
I believe that you should be spending AT LEAST 30 minutes on Scratch during Wednesday remote learning time to keep up with the project demands. That being said, we will be working on this step of word building for the next couple weeks. Don't feel at all pressured to get this done today.
Add blocks and pathways, that are the same color as your border, to the 16 backdrops.
Try to visualize your world somewhat like a giant maze that your circle will need to navigate through.
Possibly use the Scratch World Map that I showed in class
The toughest part of world building is that you need to consider that a wall in one backdrop should carry over to the bordering backdrops.
If any of these steps confuse you, please watch the video posted below. That is the first thing I will ask if you email me.
That's it! Your done for today!
Remote Learning, 03/03 - 03/31 Non Playable Sprites in the world (Step 1)
Please read over each step below to make sure that you have completed today's requirements.
This will be the start to adding Non-Playable Sprites to your backdrops. Today's focus will be on roaming hostile characters.
Please have all other criteria finished before moving on to this step. All other directions are listed on bottom of this page.
Open up your creation from last week at scratch.mit.edu from the mystuff option in the drop down menu.
Create your new sprite using the paint editor. Remember to keep it simple, we can always edit their looks later on.
Choose a backdrop that this sprite will show up on. (Stick to just one right now)
Copy the "Make Sprite appear on specific backdrop" code shown in the image (click on link) to make this sprite only appear when your circle is on that backdrop
Add a roaming path story to your new sprite. This "story" is unique to your map and should be coded that way. Click on this link to see my example, but be certain to edit your x- and y- values to pertain to your map
CHECK OUT THESE OTHER EXAMPLES: example 2 example 3 example 4 example 5 (Part 2)
We will eventually make it so that these hostile characters remove lives from our circle.
If any of these steps confuse you, please watch the video posted below. That is the first thing I will ask if you email me.
That's it! Your done for today!
Remote Learning, 04/07 - Health Points and Game Over
Please read over each step below to make sure that you have completed today's requirements.
This will add "Health" to your main character and how to have the "enemies" damage your character and end the game.
Please have all other criteria finished before moving on to this step. All other directions are listed on bottom of this page.
Add a new variable for all sprites called HP
Write a code for Resetting HP at the beginning of your game. (click on link for code)
For each character that you would like to cause damage to your circle, write a code for Removing Health from main character.
Create a new sprite that will act as your "Game Over" screen. Draw and decorate your game over screen in any way.
Write a code for Resetting the game over screen
Write a code for Game Over
That should be it for the day! Test your code and be sure you like how it behaves. One thing to greatly consider is how much damage an enemy does and how much health you start with. Play around with different numbers that makes your game difficult, yet accessible.
If any of these steps confuse you, please watch the video posted below. That is the first thing I will ask if you email me.
Remote Learning, 04/28 - ... Objectives
Please read over each step below to make sure that you have completed today's requirements.
This will add an overall objective to your game. My directions will demonstrate how to add a collection objective that will help you "Win" the game!
Please have all other criteria finished before moving on to this step. All other directions are listed on bottom of this page.
You have to start an objective out with a story. I created a sprite (with multiple costumes) that would tell my story at the beginning of the game. You will need to write a code similar to mine to have the story be told.
Write two codes, a code in your circle that will reset it's spawn location and a code in your backdrop that will reset the backdrop #
Create a new sprite and it "device"
Determine a place on your map to hide the device
Write a code in your device that will make the device only appear on that backdrop (you will need to adjust backdrop number)
Create a variable for all sprites called "device" (only have to do this once)
Steps 8 - 12 need to be completed as many times as you add a "piece" to your game.
Create a new sprite and call it "piece 1" (change based on which piece you are adding)
Determine a place on your map to hide the piece
Write a code in your piece that will make the piece appear only in that backdrop and only when you are ready for it.
You will need to create a variable for all sprites called "piece 1" (change depending on piece number)
You will need to change the values for device to for each piece as you add them.
Write a code in your piece that will make it disappear when you collect it.
You will need to change the variable that you are setting to match the piece.
Repeat Steps for every piece you want to add
Write a code in your device that will make the device change when you add the pieces to it, this will also set up a spawn reset.
This will need to be extended to work for each piece added.
Write a code in your circle that will change the devices value and prepare the game for the next piece.
Finally, you probably want a "You Won" screen. Add a sprite with these simple codes to have it appear when you return the final piece. (be sure that you add the broadcast win code in the bottom of step 13)
That should be it! Your game is completed! Test your code and be sure you like how it behaves.
If any of these steps confuse you, please watch the video posted below. That is the first thing I will ask if you email me.