6 PM – Python Game Development
6 PM – Python Game Development
Homework: Display a BIG "GAME OVER" Text on the screen when game mode is in GAME_OVER_MODE. It should be a similar code like how you guys did the score text on theRead More...
Homework: Display a BIG "GAME OVER" Text on the screen when game mode is in GAME_OVER_MODE. It should be a similar code like how you guys did the score text on theRead More...
Homework: Inside Oct28_RobotBuilder.py Create draw_right_arm function. This should be very similar to draw_left_arm function Draw 3 right arms using for loop Finish the 2 legs and the 2 feet. Look at lastRead More...
Homework: Under GAME_FINISH mode display play button, credit button and YOU WIN text Under LANDING_PAGE mode, you already have the logo and play button. Please add credit button Under GAME OVER mode,Read More...
Homework: Create cloud.py Load assets/cloud1.png image Look at how we did it with bird.py Import cloud.py into main.py Inside Pygame Cheatsheet doc which I shared with you in the google drive. ThereRead More...
Homework: When the duck and the coin collide, increase self.score by 10 When the duck and the tube collide, make the duck disappear
Homework When Fireball direction is LEFT, flip the image of the fireball. Do this in fireball.py inside __init__() function. Look at how we flip image in bird.py Right now the Fireball createRead More...
Homework Create a new Pycharm project for your final project. For platformer final project, load the background image for your final project For Wack-a-mole final project, create an enemy sprite file andRead More...
Homework Inside config.py add GAME_NOT_STARTED and GAME_STARTED modes. Similar to how we did in Birdie project When you start the Flappy Duck game, first display the Play button and Logo. When userRead More...
Homework Copy broken python codes from here into your Thonny and fix the errors using techniques taught in the class: https://www.ayclogic.com/fixing-python-bugs/
Today we learned: That all inputs from the shell are strings To compare user inputs to integers, input variable must be converted to int The different combinations of if/elif | if/elif/if HowRead More...
Homework Page 158, 160, 161. When you guys see below, ignore it, don't copy. class Dog: --snip-- Page 162, TRY IT YOURSELF, 9-1, 9-2, 9-3
Homework: Think about what you want to do for your final project. Go here: https://graphicriver.net/game-assets and search for game category that you like to create.
Homework Inside Nov11_Polygon.py, add some codes inside draw_face2(x,y) function. Call draw_face2(x,y) from the forever loop. You should draw something like this
Homework Create Final Project proposal similar to this one: https://docs.google.com/document/d/1ToV8GL4OHVdadRkuOQ3dJJowqsUSbKhdSvyUuZLKufk/edit?usp=sharing
Homework Slow down the creation of the cloud. Look at how we slowed down the creation of birds. Look at how we slowed down the flapping of the wings Create player spriteRead More...
Homework Add 2 variables in config.py GAME_NOT_STARTED = 1 GAME_STARTED = 2 Look at Birdie game on how we used these 2 variables to be able to display Play button and logoRead More...
Homework: When player moves, limit the player movement so it cannot move outside the screen. You need to do this inside the player.py on movement function Think about what is the XRead More...
Homework Play Happy Babby.wav background song when you start your program Make more progress on your final game: For platformer game, display the main player on the screen For wack-a-mole game, makeRead More...
Homework When game is in GAME_OVER mode display the play button and a big GAME OVER text above the play button Look at how we did the score when trying to displayRead More...
Next week is a 1 hour quiz, please review the following: 1. Functions: with and without return values. Function with parameter vs no parameter 2. Random module. 3. For loop, While loop.Read More...
Today we learned: Reviewed "Tell me your age" homework Discussed logical operators (<=, >, ==, etc) How to make lists How to use elements in a list by their index Homework: Pg.Read More...
Homework: 1. In your last week homework file, do page 167. 9-4 TRY IT YOURSELF. This is continuation of Restaurant class that you did last week. 2. Do page 168 in aRead More...
Homework: Create a Python Turtle project proposal on a piece of paper. The drawing has to have colors. There needs to be some words on it. There needs to be some shapeRead More...
Homework: Enhance your ShootBalloon project: Create hit point in Target sprite. Detect the collision between the Target and the Balloon. If they collide, the Balloon should disappear. In the main.py, add aRead More...
Homework: create fireball.py, similar to cloud.py or player.py. Inside fireball.py, load assets/bullet.png In the __init__ function, it should have direction parameter and in the update function, make the fireball move to theRead More...
Homework: To do your final project properly, you need to be able to share your code project with your team members and me. In order to do that, we need to useRead More...
Homework: launch fireball in one direction continuously by pressing the spacebar without letting go for 3 to 5 mins until the fireballs come back to the screen from the other end ofRead More...
We continued with the Flappy Duck project. When the duck touch the Tube, the Duck will fall and when it hits the bottom, the game will switch to GAME OVER mode. Homework:Read More...
We completed Flappy Duck project. We introduced Game Over page We introduced Game Win page. No class next week because of Thanksgiving No homework.
Today we went over the final test. We learned about dictionaries in python. We used dictionaries in python to avoid printing out duplicate names for BabyNameGenerator. Your homework is to read andRead More...
Today we learned: The list homework (pg.36 3-1 and 3-2) and (pgs. 37-38, 39, 41) List operations such as append(), remove(), insert(), and del An introduction to for loops, how they work,Read More...
Homework: Please download and install Python 3.7 follow the instructions in here: https://www.ayclogic.com/python-installation-guide/ Please download and install Pycharm. Follow the instructions in here: https://www.ayclogic.com/pycharm-setup-guide/
We learned about Git and Gitlab last week. No homework and no class on Thursday.
We continued with learning how to pull and push from gitlab. Homework: Platformer game: Create platform.py and load the different platform images. Make the platform appears on the screen. Whack-a-mole game: CreateRead More...
We went over the final project proposals. I gave feedback to each of the final project proposal. We started Kaleido Spiral project. Homework: If your project is not approved, please make theRead More...
Today we reviewed how to define classes and create objects in python We learned about inheritance in python. Homework Read and do the exercises & examples on page 167-168. In order toRead More...
We went over the progress in final projects. We made the hammer swing in Whack-a-mole game. We continued with Balloon Shoot project. Homework: Whack-a-mole game: Create multiple enemy_mode: APPEARING DISAPPEARING ATTACK IDLERead More...
We added the ability for the player to move left, right, up and down by keyboards a,w,s,d. Homework: Inside main.py # create "create_fireball(self)" function. # check if user is pressing SPACE keyRead More...
We went over how to install git software in students' computers. This is necessary so students can share their codes among team members and myself.
We went over how to kill the sprite when it is off the screen. We learn how to detect collission between Bird and fireball. Homework: Detect collision between Bird and Player. WhenRead More...
Homework: In the main.py inside game_loop() do the following If self.count_down <= 0 then change the game mode to GAME_WIN. If game mode is GAME_WIN display GAME_WIN page by calling game_win_page() function.Read More...
Homework: Create platform.py Load "assets/images/PNG/platform1-1.png" image inside platform.py. Integrate platform.py into main.py and display one platform on the screen.
We went over the dictionaries homework We learned about classes and objects in python and created a class representing a Human and Student Your homework is to read and do the examplesRead More...
Homework: Continue with the Dec5_robot_builder.py. Draw the mouth, neck, body and legs and feet like the following'
Today we went over: The For Loop homework (pgs. 52, 57, 58) Using lists with for loops, using conditional statements (if/elif/else) within for loops An introduction to while loops, how they work,Read More...
We installed Python 3.7 and Pycharm on everyone computers. No homework next week.
This site uses cookies to understand your visit and improve future outreach. We do not sell personal data.