Friday, September 27, 2019

Project 2: Platform Game Milestones

Project 02 Platform Game - Milestones

  • Mario is widely considered to be the most famous video game character in history
  • Recreate history! Use loops, variables, and Boolean expressions to implement a platform game
  • Review Hero Rubric, 
  • Download images. As an example, if I wanted a classic set of megaman sprites, I would google image search "megaman sprite png." Sometimes sprites are transparent, sometimes they are not. You create costumes in pixlr the same way you did before. 
  • For some awesome customization, you could download sound effects. Example:Sound Effects

  • Complete Milestone 1 by implementing the following:
    1. Hero faces left and right and appears to move when using the appropriate arrow keys. 
    2. When moving right, hero will not move past center of screen, but will move right if they have a negative x-coordinate. 
    3. When moving left, the hero moves left until the edge of the screen, then marches in place. 
    4. Hero has a “walking” animation with multiple costumes when arrow keys are pressed. 
    5. Hero jumps up when the space bar is pressed 
    6. Hero is subject to “gravity” and falls back to the ground after jumping 
    7. At least one enemy walks right to left.
    8. Enemies should switch costumes as they move to show motion
    9. The enemy sprite wraps around the screen 
  • Remember to use good programming techniques:
    1. The program initializes everything repeatedly and reliably on Green Flag
    2. The program clearly begins (“start screen”) and ends (“won/lost screen”) 
    3. Use comments to demarcate the different parts of the code 
    4. Variables, sprites, and costumes are all named uniquely and obviously                     

Milestone 1 Due Monday   September 30, 2019


  • Complete Milestone 2 by implementing the following:
    1. If Hero touches the enemy sprite, he loses and starts the game over (hint: use Touching block under Sensing)
    2. Hero can jump over the enemy
    3. When Mario is in center of the screen and goes right, the world scrolls as he walks (hint: Make the background a moving sprite and use the wraparound code. Only the background moves.)
    4. Scenery sprites (trees, clouds, etc.) scroll with a parallax effect (far-away objects move slower than close-up objects).
    5. The enemy should close the distance to the hero at a faster rate if he/she is moving toward the enemy

Milestone 2 Due Thursday October 3, 2019

  • Implement the following for bonus points:
    1. Hero can fall into a pit or hazard and lose a life
    2. Hero gets three lives before the game ends
    3. The world changes as Hero walks (new backgrounds/worlds)
    4. Hero can jump onto a platform or brick
    5. Hero can grab and use a power-up (e.g. a fire flower that lets Mario shoot fire). 

  Due Friday   October 04, 2018 for Final Peer Review 

Tuesday, September 24, 2019

Finishing Preparation for Project 2: Platform Game

Today, we will work on finishing up lab 2.6, the work we started on Friday, including the "bragging rights" portion.

Right now, we are seeing students have difficulties with moving the ground sprites appropriately. Here are some hints as to code your initialization for the two ground sprites (as well as when to roll them over).

2.7 Barebones Code

Make sure you finish lab 2.7. When done:

1) Show one of us
2) Submit  it on canvas,
3) Read the Project 2 Rubric

Monday, September 23, 2019

2.7 Modelling left and right Movement.

Super Mario Brothers is one of the most famous video games created. Ever. It was imaginative, fun, and worked with some incredible constraints. If you haven't seen what it looks like, take a look: 

Today we will work on creating a Mario that walks in place, a potential hazard for him to avoid, and the ability to wraparound ground to give the illusion of movement.

2.7 Lab: It's a Me!  Due Tuesday 9/24/2019
Sprite Resources can be found here.

Friday, September 20, 2019

Thursday, September 19, 2019

2.5 Guessing Game

1) Brick in the Wall Debug : Here

2) Lesson: Variable Uses and Naming Conventions:

+ difference between sequential ifs and nested ifs: Here

4) Lab: Guessing Game

Due:  Friday, September 20th

Monday, September 16, 2019

2.4 - Quadrilateral Classification

1) Review: Tools you'll need to classify a Triangle given 3 side lengths.
  • Determining if a triangle is equilateral, isosceles, or scalene is done by definition.
    • Equilateral triangles have 3 congruent sides. 
      • You need to test to make sure all sides are equal. This Boolean (filled in correctly of course) should do the trick.
      • Question: Why don't you need a 3rd equality check in this case?
    • Isosceles triangles have only 1 pair of congruent sides. This Boolean should be helpful. 
    • If a triangle is not Equilateral or Isosceles, this means it is scalene. None of the sides have equal lengths. 
  • Determining if a triangle is right, acute, or obtuse is easily tested by the converses of the Pythagorean theorem.  
2) Short Lesson: Quadrilateral family tree.

2) You should work on completing any elements of 2.3 that are not done yet.

3) When you are done, begin Lab 2.4 Classifying Quadrilaterals.

Thursday, September 12, 2019

2.2 Another Brick in the Wall

1)  Warm-up
  • Restate the definition of "loop".
  • Explain why loops are useful in programming.
  • Give examples of problems that can be solved with loops.
  • How your scripts to draw shapes improved when you've introduced loops.

2) Lesson: Loops and Nested Loops:

3) Lab: Another Brick in the Wall:

Due: Friday September 13th

Monday, September 9, 2019

2.1 Loops

1) Warm-up: In your notebook, explain what the "repeat" block does. Explain why it is useful.

2) Lesson 2.1 Loops and Variables:
    -Pay Careful attention to naming conventions

3) 2.1 Lab: Squares and Triangles Redux

 Announcement: Quiz Moved to Tuesday
2.1 Lab  Due Blockday September 12, 2019 

Friday, September 6, 2019

Peer Code Review and Quiz Prep

Good Morning,

Please open your Comic Strip Project.

Today we will begin a peer evaluation of others' projects. 

1) Please open your Comic Strip Project.
2) On both sides of the blue sheet of paper, write your name in the "project creator" blank. LEAVE THIS SHEET AT YOUR TABLE.
3) When instructed, you will move 5 seats clockwise.
4) Write your name on this new sheet next to the "peer grader" blank.
5) Make sure that you accurately grade each element of the the project based SOLELY on the rubric provided as justification.
   - You can assume that students have completed the planning part of the rubric. I will check on this when grading begins.
6) Leave comments to the right of each category for any points deducted. Leave comments about the elements that you liked about the students' code and creativity. Leave polite constructive criticism here as well.

Wednesday, September 4, 2019

Blog information move to Google Doc

Hello All, Moving forward, please find all information about the class that you used to find on a live google doc agenda. The link is foun...