Pygame (Python Game Development) Tutorial - 16 - Adding an Apple

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Yeah! I thought you quit making these, glad you're back!!

LKodiak
Автор

12, 000 views. The viewers are dropping off steadily the farther I progress in this playlist. I hope I'm not the only one going for the 100th video. See you all there!

DrKorvett
Автор

Could you please show how to make this object-oriented? Like a Player class and an Apple class

Coolfolder
Автор

Why sometimes we are using camelCase conventions and sometimes underscore_case? When we have to use camelCase and when underscore_case?

Garniturek
Автор

for the pygame.draw.rect, and the gameDisplay.update that follows, how come it doesn't draw a new square on the window while keeping the old square intact? Where do we handle deleting the square that was previously on the board or is that a functionality of the draw or update function?

revdevstudios
Автор

If your program opens then closes immediately, check for syntax errors by running your program in cmd prompt.

JohnSmith-bjuc
Автор

i have done it and nothing happened. the apple didn't come up on my screen

TheUniQGame
Автор

In my code, it says that randAppley is a sytax error. Any theories?

AtheniCuber
Автор

and if i want 3 apple at the same time, how can i make this ? :/

arcreehysteria
Автор

i think a better way to explain the order of drawing objects is to say that it's like layers in photoshop.

boobeebah
Автор

Is randrange the same as randint? Because I'm used to RANDINT. What's te difference?

alexrr
Автор

I think we should use randint in place of randrange cuz randint includes the last value also, or we can add 1 to randrange value to make it equivalent I think🤔

vaibhavkrkm
Автор

My "apple" is flying around the screen in a teleporting kind-of way.... Any help?

isaacshiver
Автор

Im getting the following error msg:

randAppleX = random.randrange(0, display_width-block_size)
AttributeError: 'tuple' object has no attribute 'randrange'


Any ideas anyone?

zanzeber
Автор

can you also use random.randint(num1, num2)? cuz I use it.

tongqiu
Автор

what does while gameOver == True mean? I dont get it

SupachaiAbusali
Автор

at Random.randrage - 10 why ? Could someone explain ? I didn't understand what he said .

snok
Автор

If you're having problems put "import random" under "import pygame".

backey
Автор

As the block comes to y 0, there is still 10 picked up. Thus, you do not see the block!!

vanallesennogwat
Автор

damn im the first person to comment in 2023!

BubbleMaster