TORONTO KIDS COMPUTER CLUB | Saturday 16:30 Homework
155

# Saturday 16:30 Homework

## 29 JanSaturday 16:30 Python Practice – 23.01.28.

Question: How to create ending screen shows the following 3 lines of information: Game Over Your score is: ?? press space to restart and the game will be restarted if you press the space. ...

## 24 JanSaturday 16:30 Python Practice – 23.01.21.

Question: Continue modify the program we made in the class: create Energy class. A new energy crystal object  will be created when the enemy spaceship explode use spritecollide to let the fighter collect energy crystals, if the energy crystal is collected, the score will increase ...

## 19 JanSaturday 16:30 Python Practice – 23.01.14.

Question: We have made class explosion and weapon which showed you how to load different image to switch costumes. 1.   Please made a class Planet, it will contains following methods: __init__(self) - It initials the Planet from a random centerx position, and top = -1000 Since planets has 3...

## 14 DecSaturday 16:30 Python Practice – 22.12.10.

Question 1: Continue modify the program we made in the class: create Energy class. A new energy crystal object  will be created when the enemy spaceship explode use spritecollide to let the fighter collect energy crystals, if the energy crystal is collected, the score will increase Question 2: Modify...

## 09 DecSaturday 16:30 Python Practice – 22.12.03.

Question: Modify the program we made in the class. Add starting screen as below, the real game will start when play click the mouse in the range of the “PLAY” button. (Scroll down for more hint) You can choose and download one of the background images base...

## 01 DecSaturday 16:30 Python Practice – 22.11.26.

Question: Make changes of the program we made in the class, so the enemy spaceship could complete the following tasks: more new enemies will keep entering the game at the random x position from the top of the screen. the enemy can bounce back when...

## 23 NovSaturday 16:30 Python Practice – 22.11.19.

Question: Please refer to Pirateship class to create a class Enemy: Create one enemy on the screen The enemy will appear at the top of the screen when we start the game The enemy could bounce left-right The enemy will keep move down until to the...

## 16 NovSaturday 16:30 Python Practice – 22.11.12.

Question: We have learned how to make the pirate ship bouncing left and right, try the following: How to make the pirate ship move and  bounce diagonally when it reaches the edge ( the pirate ship image is 200px by 166px)...

## 11 NovSaturday 16:30 Python Practice – 22.11.05.

Question 1: Draw the following picture in the pygame window: (could be different color) Hint: using pygame.draw.circle Question 2: Draw below image using pygame. (could using different color) ...

## 27 OctSaturday 16:30 Python Practice – 22.10.22.

Question 1： Make a class definition for a  BankAccount. It should have attributes for : – its name (a string), – account number (a string or integer), – and balance (a float). It should have methods to: – make deposits with displaying the balance, – and make withdrawals with displaying the balance. Hint: Question 2： Create...