Summit Middle School classes for Andrew Busch
Andrew Busch - Summit
  • Home
  • Algebra 1
    • Alg 1B - Last Week
    • Alg1B 14 HW - Intro to Functions
    • Alg 1B 11 - Rational Expressions
    • Alg 1B 12 - Radical Expressions
    • Alg 1B 10 v2.0 - Quadratic Functions >
      • 10b Graphing with Pennies - Desmos Tutorial
      • 10i Snowboard Quadratic - Alg1B
      • 10 Quadratics Project
    • Alg 1B 10 Book - Factoring Quadratics
    • Alg 1B 9 - Exponential Functions
    • Alg 1B 8.5 - Representing Data
    • Alg 1B 13 - Inequalities
    • Alg 1B 8 - Best Fit Lines and Linear Regression
    • Alg 1B 7 - Linearity
  • Geometry
    • Geom Last Week
    • Geom 12 - Probability
    • Geom 11 - Circumference, Area, Volume
    • Geom 10-Circles
    • Geom 9 - Right Triangles and Trigonometry
    • Geom 8 - Similarity
    • Geom 7 - Quadrilaterals and Other Polygons
    • Geom 6 - Relationships Within Triangles
    • Geom 5 - Congruent Trianlges
    • Geom 4 - Transformations
    • Geometry 3.5 - Constructions
    • Geom 3 - Parallel and Perpendicular Lines
    • Geom 2 - Reasoning and Proofs
    • Geom 1 - Basics of Geometry
  • Programming
    • Directions for Sharing Programs with Me
    • Hour of Code
    • Intro to Python >
      • Installing and Using Portable Python
      • Introduction to Programming
      • Interactive Storyteller
      • Sophisticated Calculator
      • Getting Started with Games
      • Word Length Frequency
      • Substitution Cipher
      • Simple Game of Paddleball
      • Animating Many Objects
      • Accelerator
      • Applying Trigonometry
      • GIFs
      • Programmatic Art
      • Battleship
      • Pong
      • CodeCademy.com Suggested Work
      • Python Resources
    • Advanced Python >
      • Python Installation
      • Review of Intro to Programming
      • Objects and Classes >
        • More on Classes: Functions, Methods, Inheritance
        • Quadrilaterals
      • tkinter >
        • Paddle Ball
        • Light Bike
        • Frogger
        • Snake Game
        • Breakout
      • Reading and Writing Files
      • Directories and Importing Modules
      • Raspberry Pi
      • API's
      • Python Puzzles
  • Clubs
  • Graphing Calculator
  • PARCC Practice

Frogger

It's time to make a Frogger game! You may know this game by it's new incarnation--Crossy Road. I assure you, millions of people wasted their afternoons playing the Atari version before the chicken ever decided to cross the road. 
Requirements:
  • Make a frog/chicken object which moves on the screen using keyboard controls. You may modify the game in anyway you see fit as long as it quotes the original Frogger.
  • Moving vehicles on the bottom half of the screen. Moving turtles, and logs on the top half of the screen. These should be instances of an object which move across the screen.
  • The frog/chicken dies when it gets hit be a vehicle on the bottom half of the screen.
  • The frog/chicken dies when it jumps into the water on the top half of the screen. This means, it needs to jump onto one of the object instances on the top half yet avoid them on the bottom half. 
  • When the frog/chicken reaches the other side, the player gets to choose to play again.
  • You may either draw the pictures yourself, or you may lift them from the internet. If you use an internet version, you must give credit in the comments on your code and when your program runs via onscreen text. One our our students has kindly offered to let other people use his drawings of a frog (located in a link to the right).
Picture
Picture
Files compliments of Jack B.
frog_files.zip
File Size: 17 kb
File Type: zip
Download File

Picture
http://vignette4.wikia.nocookie.net/crossyroad/images/a/a3/Chicken.png/revision/latest?cb=20150219142730
A quick word to the wise, save your images in the same folder your program is located in. That way, python knows where to look without having to define the path name. 
Extensions:
  • The player needs to fill all four lily pads with frogs in order to win/go up a level
  • Make levels that increase in difficulty.
  • Include a scoring option.
  • Include a timing option where a player loses if they don't move fast enough.
To get import a GIF picture using tkinter: 
var_name = PhotoImage(file='myPicture.gif'
)

​(it must be a .gif file for tkinter to recognize it.)

More information on photos and tkinter here. 

If you want to add another type of file (*cough* . jpg *cough*), this may work but I haven't tried it. 

Powered by Create your own unique website with customizable templates.