VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » freeCodeCamp.org
Pygame Tutorial for Beginners - Python Game Development Course

Pygame Tutorial for Beginners - Python Game Development Course

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
Learn how to use Pygame to code games with Python. In this full tutorial course, you will learn Pygame by building a space invaders game. The course will help you understand the main game development concepts like moving characters, shooting bullets, and more. - Code: https://github.com/attreyabhatt/Space-Invaders-Pygame - Course created by buildwithpython. https://github.com/attreyabhatt/Space-Invaders-Pygame - Course created by buildwithpython. Check out his YouTube channel: https://www.youtube.com/channel/UCirPbvoHzD78Lnyll6YYUpg
Date: 2022-03-14

Comments and reviews: 8


If you are coding in jupyter and it is telling you that no 'pygame' module is available, you need to install it manually.
Go to anaconda shell and type -pip install pygame-. After completion check again and see if it works.

reply

If you want a restart option then do this
if event.key == pygame.K_r:-
score_value = 0-
player_x = 370-
player_y = 480-
for j in range(number_of_enemies):-
enemy_y[j] = random.randint(50, 150)

reply

If you want a restart option then do this
if event.key == pygame.K_r:-
score_value = 0-
player_x = 370-
player_y = 480-
for j in range(number_of_enemies):-
enemy_y[j] = random.randint(50, 150)

reply

Hi Trying to follow this .
- 12:45 where you change the icon .. how suddenly the ufo.png file comes there? how do I import it there in the upper left corner of the 'Project' screen ?

reply

I love ur tutorial ,but I think when u go just a bit high level,making game using simple python is so irritating,so a video of pygame tutorial using classes would be awesome ,nice vid tho
reply

Im having problems with the screen.blit when he defines the player function. Pycharm says it cannot call the function. Anyone having the same problem or knows what to do about it.
reply

1:05:00 you said if enemyX_change = 0 instead of 0.3 then it really doesn't matters but it's not moving then please take it as a note guys might be a mistake by sir
reply

The enemy acted weird because in enemy x in random.randint you put maximum number 800, while you have to put 800 - 64 which is 736
reply
Add a review, comment






Other channel videos