Game Development in Python 3 With PyGame - 8 - Score, challenge, conclusion

preview_player
Показать описание
Here, we wrap up our Python 3 with PyGame game development tutorial. We add a scoring function, as well as increasing the game's difficulty using a few different options to make the game harder. I hope you all enjoy, and I encourage you to keep building on top of it!

Bitcoin donations: 1GV7srgR4NJx4vrk7avCmmVQQrqmv87ty6
Рекомендации по теме
Комментарии
Автор

Im just glad im part of the 10% of people who made it here from the first video.

Tawkitoutti
Автор

I followed your step by step presentations and really like your style, the comfortable speed in which you develop the processes and the fullness of audio description along thne way.

Thank you.

phoebusable
Автор

I've been stuck in quarantine and decided to learn how to make a game even though this video was made 4 years ago thanks

TheWasian
Автор

I added a little something to my game so that the speed increases by one for every 10 blocks you dodge. After the if statement that resets the block if it hits the bottom of the screen I put:

if dodged % 10 == 0:
thing_speed += 1

So if the score is divisible by 10 when the block resets, the speed is increased. This stops the game from getting so crazy so fast. It's nothing too fancy, but I haven't been coding for long so I was pretty proud of it :P Just thought I'd share in case other people wanted to do something similar.

Also thanks for making this series, you make every really easy to follow and I feel like it's helped me progress quite a lot.

OuterSpacedVideos
Автор

I'm a computer engineering student, and I have this project of recreating a Road Fighter type game and your videos had helped a lot! Huge thanks man!
Greetings from Costa Rica!

audisolisxD
Автор

Hi Sentdex! Your videos really help me out! Lots of other youtubers just do programming but don't say what they're actually doing! You're the only one that does explain!

dziiredusk
Автор

Your videos have been helping me tremendously.  Other video series I've used go too fast for me to retain much.  Your videos go nice and slow where I feel like I really understand the content before starting the next video.  For the first time, I'm feeling like I can actually do this.  A huge thanks to you!!

sidersphoto
Автор

thank you, your lessons are the best lessons i've ever seen

sifou
Автор

(Copy Pasting a comment from the previous video)

You can actually simplify that long colision if condition to :
*if thingX<x+car_width and thingX+thingW>x:*


Explanation :
if the left edge of the box is less than the right edge of the car
*AND*
the right edge of the box is greater than the left edge of the car
*it is a crash*

:)

AkshayAradhya
Автор

If you're looking to expand on the game, here's a few ideas:
- Highscore
- Lives
- Upgrade blocks that give you extra points/lives (these should have a different color)
- Other upgrades such as turbo, grenade (that clears the screen of all blocks) and "block-freeze" (giving you extra time to escape the blocks)
- A screen that shows up after you have crashed showing the high scores and giving you the option to play again or quit
- An intro splash screen that gives you the option to set the difficulty
- Make it possible to play time-based, infinite or score based
- A way to store points
- Create a store where you can spend your collected points on upgrades and cars with different specs (faster cars, cars with more starting lives, cars that can move up and down in addition to left and right)
- Jumping (hit space bar to jump over objects when you don't have time to dodge them)
- Changing the blocks into other things like cones, containers, a cat etc.

Please feel free to comment more suggestions! :)

fluffypotato
Автор

Very good that you did the simple stuff that is normaly in a game. You could expand with:
1) music
2) sound effect
3) animated car or block
4) highscore list

You could do like gasoline tank in car and that the car have to run over and collect gasolintanks to keep going.

Myrslokstok
Автор

Easy to understand and encourage me to continue :D Thanks man!!

etiennedrolet
Автор

very nice tutorials!! I managed to write off the code from video and import/install all libraries on the fly.

though this is a very simple game, it is exactly what is needed for understanding the basics, great tut even for a newbie to python.

Just started this christmas and have been pretty confused on all the tutorials and demos being around seeming to be so fancy but includes so many libraries that it requires half a day just to figure out what versions of python to use to get all the packages working together on one platform..

thank you for a great tutorial!!

DIY-Forumorg
Автор

Awesome.. Thank you so much, , , I am new to python but still understood how to use python and pygame to develop a game bcoz of detailed explanation... Good work :)

pruthvikrishna
Автор

I've only watched up until this point so far but I'm definitely completing it. Very informative videos! Excelent job! :)

SanderMFC
Автор

I love how you explain everything in so much detail, it really helps me as I'm very new to programming and other than some very basic knowledge of html, I know nothing (other than basic Python). Thanks. I r8 u 8/8 m8

funkeypigeon
Автор

Good tutorial. I copied the code to the T but I commented the logic behind every line. Definitely helped a python beginner (I've only been coding for a week and a half).

Ricky-zcqm
Автор

Omg, what a super homie. Thanks! I really liked seeing the step by step process through which you made the game.

commonyoshi
Автор

Pretty sad to see how the view count dropped from the first video. Been trying to look up tutorials for this for a while, but always just gave up  because of how shitty the documention or tutorial was. You'd think that PyGame making would be at least common enough to have more decent tutorials and documentation.
Glad you were the exception. Nice tutorial, gonna continue with the rest!

nilleftw
Автор

Great video! Still relevant in Oct. 2020. Thanks sentdex

vectork
join shbcf.ru