Practice 2.7: Turkey
Make a program with a jumping turkey that displays a growing message
Your turkey must move left using the 'a' key and right using the 'd' key
The turkey can jump when it is on the ground by pressing the spacebar.
When in the air, the turkey will fall to the ground
The program outputs a message that gets larger every time the turkey jumps
You can change the theme of this project any way you like! Be sure to rename variables accordingly.
STEP BY STEP
Part A - Background Image
After this step, your program will just show your background image taking up the entire window.
Part B - Turkey Image
The turkey appears in the middle of the screen
Part C - Turkey Movement
The turkey can move left and right
Part D - Gravity
The turkey falls to the ground but doesn't "sink in" to the ground
Part E - Jumping
When the user presses space, the turkey leaps up.
Every frame the turkey will fall downward automatically - faster and faster over time.
This should *only* work when the turkey is on the ground - no double jumps!
Try changing some of the numbers for falling and jumping speeds to see what happens.
Part E - Basic Message
To see which fonts you have available, you can try opening up Word on any school computer.
You must match the font's name *exactly* for it to load. This might be complicated with fonts that have spaces in the name, so be precise and patient.
Part F - Message Scaling
EXAMPLE: RUNNING PROGRAM
Click here to download a running version of the program.
SAMPLE IMAGE FILES