6 PM – Python Game Development
6 PM – Python Game Development
We fixed several issues in the platform runner final project. Home work: To make the bug fall down when it is hit by the target.
We fixed several issues in the platform runner final project. Home work: To make the bug fall down when it is hit by the target.
We finished implementing the robux program Your homework is to learn about dictionaries in python. Read and copy the examples and do the exercises on pages 95 and 99 in the paperRead More...
We went over the homework to make birds spawn on right and left. We flipped birds so they're facing left when moving left We started implementing the player object and painted itRead More...
We fixed the enemy.py when it is moving back and fort properly. We continued with shoot balloon project We made the bug fall down when it is shot. We added the chirpingRead More...
We went over how to create giant fireball. We differentiate a regular fireball vs giant fireball behavior. The giant fireball will not disappear when it hit a bird. We displayed giant fireballRead More...
There is no class next week, the class will resume on Feb 19. We went over how to use List. Homework: Create your homework in Feb5_ListForLoop.py Do page 50 to 52 -Read More...
We reviewed what we did in Birdie project. How to create a new sprite. How to integrate a new sprite into the main.py How to detect collision between sprite. There is noRead More...
Platform Runner final project Make the player able to stay on top of the platform Discussed how to make the door open and close. Discussed how to make the player temporarily "invincible"Read More...
We went over how to continued with the Platform Runner code. We continued with our Shoot Balloon project. There is no class next week due to President Day weekend and Chinese NewRead More...
We did Robux Balance project. We created a function to handle "1","2" and "3". We don't have a class next week because of President day long weekend and Chinese New Year weekend.Read More...
Today we went over: Variables/String function homework (Pgs. 20-23) String functions (title(), upper(), lower()) Special characters for formatting ( \n \t ) Homework: Pgs. 79-81 of the textbook If you have anyRead More...
Today we went over: Getting a character from a string. How to use a loop to go through a string How to create a clues list with the appropriate length with len(<stringRead More...
We went over how to make the bird flaps slower. We went over how to create player.py We integrated player.py into main.py. There is no class next week, the class will resumeRead More...
We went over the dictionary homework We learned about dictionaries Your homework is to add 2 new dictionaries to the robux game: Create a dictionary "selection_prices" that keeps track of the priceRead More...
We went over the homework to move clouds to the left. We created logic to move the player using the keyboard and flipped the player's direction when moving left. I've uploaded theRead More...
Today we went over: Variables Data Types (strings, booleans, floats, integers) Arithmetic operators Homework: Python Crash Course pages 20-23 If you do not have the book, the pages will be uploaded toRead More...
We went over the final project planning for both the Virus and Tank final projects. Homework: Complete the final project planning Start making progress to the Virus and Tank final projects.
Today we went over: If/elif/else homework (Pgs. 79-81) User inputs, converting data types, if/elif/else Homework: https://www.ayclogic.com/tell-me-your-age/ If you have any questions, please feel free to email me at nathaniel@ayclogic.com!
Today we went over: Summary of hangman, going through strings with a loop Identifying and Fixing Python Errors Reading error messages Homework: Complete FindALetterInAWord.py (located in google drive) https://www.ayclogic.com/fixing-python-bugs/ If you haveRead More...
We started Tank War project We added Wall sprite. We started with a mechanism to build wall according to list inside config.py. Homework: When building wall, currently the code can only buildRead More...
Today we went over the homework to add Fireball. We added some logic to load right and left facing player images. I've uploaded the code here. Homework: Follow the code inside theRead More...
We did the code where if the tank hit the wall, it will not be able to go through. We started with the bullet sprite. Homework: Finish the bullet sprite, integrate itRead More...
We displayed the giant fireball cool down indicator as a count down and display Giant Fireball Ready in a rainbow color. We fixed the problem where the giant fireball is displayed onRead More...
We added Balloon sprite on Shoot Balloon project. Homework: Continue with your final project. Meet with me separately. For Zach meet with me on Saturday at 7:30 PM. For Nathaniel and BrandonRead More...
Homework: Feb19_ListForLoopHomework.py Create a list of String, "pizzas" : beef, peperoni, cheese, mushroom, bacon Create a for loop that will go through each element inside pizzas list and do the following ifRead More...
We started Flappy Duck project. We started creating the tube.py Homework: Finish tube.py and integrate it with main.py Look at cloud.py in Birdie project for reference. Look at how you integrate cloud.pyRead More...
Homework: Continue with your final project. For drawing heart symbol according to player.healths: In main.py, create a method/function draw_hearts Inside the function create a for loop and you want to loop accordingRead More...
We reviewed cloud.py homework. We resized the bird to size 50. Homework: Similar to how you guys did with cloud.py, add fireball.py and load fireball.png. Integrate fireball.py into main.py. Look at howRead More...
Today we went over: Tell me your age homework if/elif/else practice Homework: 1.) Get the price from the user If price is less than $10 then print (f"{price} is cheap") if priceRead More...
We finished Robux Balance program We reviewed similarities between Robux Balance and Supermarket programs. Next week is a 2 hour test and will start at 3 PM. Please study: Robux Balance programRead More...
Today we went over: Fixing Python Bugs Homework Started Quiz 2 Review Reviewed lists, for loops, using for loops and lists Homework: Homework: TRY-IT-YOURSELF from the textbook, pg 89 5-8, pg 131Read More...
We went over how to make the fireball appear on the screen. We made the player able to move left, right, up and down using a,d, w and s. Homework: In main.py,Read More...
We went one on one for completing project planning for Tank War. We discussed how to do next week tasks on Tank War.
This is a replacement class for Saturday 10 AM We made progress on final project. Homework: Continue to make progress on your final project.
We were able to launch the bullet in an angle and rotate the bullet image. This require trigonometry. Homework: The bullet needs to launch from the middle of the tank not theRead More...
We went over the homework to launch fireballs when user presses the space key. We made the player flap its wings I've uploaded the source code here. Homework Make the player flapRead More...
Homework: In main.launch_player_bullet() change the code so it can get the turret.x, turret.y and turret.angle Create enemy_tank.py Inside you should create EnemyTank class The EnemyTank class should inherit from Player class. OverrideRead More...
Homework: In both the GAME_LANDING_PAGE and GAME_IN_SESSION I want to see the birds. the clouds.
We discussed about final project progress: Tank Wars, we made the bullet launch We display the brick Virus Zombie We displayed Zombie to the screen.
We went over For Loop list homework We went over For Loop range We went over While Loop Homework: Create homework file as Feb26_WhileLoopHomework.py Page120, 121 Page 123 - TRY IT YOURSELFRead More...
Homework: Similar to how you guys did the tube.py, create player.py Create Player class inside player.py Load "Green duck #1-01.png" image file. Integrate player.py into main.py Follow the steps in "Pygame Cheatsheet"Read More...
We made progress on the final project: Wack-a-mole: We made the mole able to attack or disappear after idle. We made the hammer hitbox smaller. Lava Jump: We made the lava riseRead More...
We went over the homework to add the Fireball class sprite. We made the birds flap their wings. I've uploaded the source code here. Your homework is to create a new classRead More...
Final Test 2 hours. We will go over the Test result next week at 4 PM.
Today we went over: IfElse Homework 2 How to create and use lists Homework: Homework: P.36 3-1 and 3-2 (TRY IT YOURSELF) P.37-38, P.39, 41 If you have any questions, please feelRead More...
Today we went over: Homework: TRY-IT-YOURSELF from the textbook, pg 89 5-8, pg 131 8-2 and pg 142 8-6 Quiz 2 Review Homework: No Homework Please study for Quiz 2 which willRead More...
We went over how to launch fireball using SPACE key. We made sure the fireball launch from where the player location. We made the player able to face left and right. WhenRead More...
Makeup class for Nathan Look at homework in here https://www.ayclogic.com/event/7-pm-python-game-development-32/
We created enemy_tank.py and the EnemyTank class inherits from Player class. We override some methods in Player class so the EnemyTank can load its own set of images. This way the PlayerRead More...
We went over the classes homework. We finished the Human and Student example. We started learning about inheritance. Homework: Read and do the examples and exercises from page 167 through 169 inRead More...
We went over the homework to slow down the flapping of the player wings. We went over the homework. We reviewed how the player flaps its wings. We made the fireball faceRead More...
Homework: create bullet_launch_flare.py Create a class BulletLaunchFlare It should animate the assets/Tank_Shot/Thank_Shot_X.png When you launch either enemy or player bullet, you should have this animation near the tip of the turret.
Homework: When the player and the bird collide, switch the game_mode to GAME_LANDING_PAGE. This way the user can play the game again. To do this, you have to look at how weRead More...
Continued making progress on final project: Virus Zombie We made the Zombie able to spawn We made the Zombie able to not move with the map. We fixed the problem with theRead More...
Next week is 1st quiz, please prepare the following You need to have a gmail account. During the quiz, you can use Thonny, but you cannot look at previous exercises. Study theRead More...
Homework: Slow down the creation of Tube. Look at how we slowed down the creation of bird in Birdie game. Make the Tube appear from the right side of the screen.
We made progress on the final projects Lava Joomp: We fixed the credit page We fixed the lava rise timing problem We fixed the jumping animation Whack-a-mole: We fixed displaying Game winRead More...
We made progress on the Platform Runner final project We made the dinosaur able to move left and right on a platform. Homework: Continue making progress on your final project according toRead More...
Homework: When user pressed "f" key add a new fireball to the group. Do this in main.py inside game_loop() Change the code in player.py so when player goes to the left, itRead More...
Today we went over: List Homework review Finished List operations and how to apply lists. Homework: Page 42 3-5 and 3-6 (Try it yourself) If you have any questions, please feel freeRead More...
Today we finished: Quiz 2 Homework: No Homework, congratulations on getting through the second quiz! If you have any questions, please feel free to email me at nathaniel@ayclogic.com!
Homework: Add Player hitbox (rect) Inside main.py, detect collision between Player and Bird. The player should disappear when they collide. Look at how we did it for the fireball and the bird.