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.
We went over the inheritance homework. We setup PyCharm and downloaded the the Birdie Template. Your homework is to make sure you can select a "python interpreter" in Pycharm, following the instructionsRead More...
We added a rect attribute for both the fireballs and the birds. We added logic to handle collisions between fireballs and birds, so the birds get killed. I’ve uploaded the source codeRead More...
We continued with adding ability for the enemy tank to find path to get closer to the player. Homework: Create a power_up.py sprite and make the powerup sprite appear randomly periodically onRead More...
We completed implemented Play button properly. We reset player score We removed all birds from screen We resurrect the player. We added pop sound effect when the fireball hit the bird. Homework:Read More...
We went over the homework We learned about inheritance in python We learned about dictionaries I uploaded the code here. Homework: Follow the direction to download Pycharm: https://www.ayclogic.com/pycharm-setup-guide/ Read and do theRead More...
We continued with Flappy Duck game We added Downward Tube properly. Homework: Create coins.py Inside coins.py, create Coin class Load coin_1.png Integrate it to main.py and make it appear on the screen.
Both teams made a good progress on their final projects. I am very proud with them: Lava Joomp Whack-a-mole Homework: Polish your final projects so everything is good and game works perfectly.
Today we went over: List Homework For Loops Homework: Page 52, 57, 58 If you have any questions, please feel free to email me at nathaniel@ayclogic.com!
Today we went over: Quiz 2 loop and function practice problems Homework: https://www.ayclogic.com/list-inputs-if-and-else-loops-and-function/ If you have any questions, please feel free to email me at nathaniel@ayclogic.com!
We went over how to have 2 game modes GAME_LANDING_PAGE GAME_IN_SESSION Homework: In main.py load play_button.png and birdie_title.png. No need to create its own file, just do it inside main.py like howRead More...
We went over the inheritance homework. We downloaded the pygame template Your homework is to familiarize yourself with Pycharm.
We went over concept of variables and data types String Integer Float Boolean We went over how to combine String together Homework: Create a Python file March14_StringHomework.py Copy codes from the bookRead More...
We added Birdie background music and reviewed the project. We downloaded Flappy Duck Asset. Homework: On Flappy Duck project, do the following Change pygame_class_template.py to main.py. Change ChangeMe class to FlappyDuck usingRead More...
We continued to make progress on the final projects NanoVirusB1 Tank Wars Homework: Continue to make progress on your final project.
Homework: Create file March19_FunctionNoReturnValueHomework.py Do page 131 - TRY IT YOURSELF Do page 137 - TRY IT YOURSELF
We discussed how to make coins appear on the screen and between the tube. We made the Tube appear both on the top and on the bottom of the screen. Homework: MakeRead More...
Homework: In the shoot balloon project do the following Integrate the target.py into the main.py Create balloon.py and randomly load one of these images: blue_baloon_1.png, green_baloon_2.png, orange_baloon_1.png, red_baloon_2.png Integrate the balloon.py intoRead More...
We completed Final Project... Yea. We continued with Shoot Balloon project. Homework: When balloon go above the screen, kill the balloon. Create a new sprite, bug.py. You should use assets/bird/flying/frame-1.png and frame2.pngRead More...
We went over the homework to slow down player flapping wings and spawned clouds from left and right. We made fireball launched with pressing the space key and added a cool-down periodRead More...
Today we went over: For loop homework A brief introduction to While loops Homework: Page 121, 123 If you have any questions, please feel free to email me at nathaniel@ayclogic.com!
Today we went over: https://www.ayclogic.com/list-inputs-if-and-else-loops-and-function/ Homework: In the google drive, there is a file called "Mar27_QuizReviewHomework.py" that contains the 3 questions to be completed. The homework questions will also be provided below.Read More...
We centered Play Button and Title image We detected mouse click on the Play Button. When play button is clicked, we start the game. Homework: When the player and the bird collide,Read More...
We enabled the enemy tank to find path towards the player. We enabled shield on player. Homework: Add collision detection between the shield and the bullet. The bullet should disappear.
Fixed the problem with enemy tank get stuck because the player is going out of the screen. Fixed the problem where the powerup spawn is not limited. Added Enemy shield. Homework: WhenRead More...
We started Flappy Duck project. We added the background We created config.py We created tube.py and made Tube sprite appear on the screen. Homework: Make the Tube sprite appear from the rightRead More...
Homework: Create March26_FunctionsWithReturnValue.py file Do homework from page 139 Do only the first question from https://www.ayclogic.com/intro-to-python/star-wars-problem/
We made the Duck flaps its wings. We made the Coin dances. We made the Duck flaps its wings not too fast Homework: Right now the Coin changes the costume too fast.Read More...
We continued with Shoot Balloon project We added one balloon and target to the screen Homework: Make the balloon appears on the screen periodically, one every 1 second. Make sure the balloonRead More...
We continued with ShootBaloon game: We made the bug appear properly and flaps its wing. We could shoot the bug. Homework: Create LANDING_PAGE and GAME_IN_SESSION mode in config.py. When your program firstRead More...
Today we went over: The last lesson for while loops Homework: Pg. 123 7-4 and 7-5 (try it yourself section) If you have any questions, please feel free to email me atRead More...
Today we went over: An introduction to Turtle in Python Showed how to use fill, color, goto, penup, pendown functions that help draw an image Learned how to use functions to createRead More...
When player died, we display PLAY Button and title properly. We also make sure, the birds are cleared from the screen when PLAY button is pressed, score is reset and player spawnRead More...
We added a new Bird class and learned about Sprite. I've uploaded the source code here. Homework: Follow the example for Bird class and create a new "Cloud" Sprite class. Create aRead More...
We learned about data type and variables Homework: Create a new Python file March14_StringHomeworks.py Page 20 to 23
We continued with Flappy Duck project. We added the Tube on the top of the screen starting from the right side of the screen going to the left. We randomize the heightRead More...
We finished discussing about Function With Return value, We started learning how to generate random numbers and how to choose random element from List in Python. Homework: In the same file thatRead More...
We made the Tube and the player collision detection. We went over how to use Find and Find In Files / Find in Path features in Pycharm to find codes quickly. Homework:Read More...
We continued with Shoot Balloon project. We made the Target sprite to have lines We made collision detection between Target and Balloon. Homework: Delete the Balloon when it collide with Target onlyRead More...
We continued with Shoot Balloon project We added Explode sprite. We added bugs Homework: Display the score on the top left corner Display the count down on the top right corner.
Handled collision between the player and birds (homework). We created a score attribute in the Player class to keep track of the score. We increased the score when the player kills birds.Read More...
Today we went over: The last while loop homework Quiz 1 Review Homework: Study for Quiz 1 which will be next Saturday on April 10, 2021 Review the lecture notes and quizRead More...
Today we went over: How to build the body, arms, and head of the robot using Turtle in Python How to draw spirals by manipulating circles in Turtle Homework: Review the criteriaRead More...
We fixed Giant Fireball spawn location. We display Giant Fireball Cooldown Indicator. And when the countdown went to negative number, we switched to "Giant Fireball Ready" text. Homework: Review all codes inRead More...