Python Platformer Game Tutorial for Beginners

Python Platformer Game Tutorial for Beginners

freeCodeCamp.org

1 год назад

239,411 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Space
Space - 10.11.2023 21:35

How can u run the file with a lot of problems I have one and it just crashes does anybody know how to fix it I installed the pygame module but it still didn't work

Ответить
Ice Weasel
Ice Weasel - 08.11.2023 18:41

why this video is titled with the word 'beginner'?

Ответить
David
David - 30.10.2023 05:21

Where to get the enemies? says link in project page, but no link.

Ответить
Azteczek
Azteczek - 28.10.2023 13:24

The gravity implementation in this code is awfull. It hurts knowing that it could be impremented with just 2 lines of code.
Every frame add 1 to y velocity, if on ground set y velocity to 0.

Ответить
Cyan Xy
Cyan Xy - 19.10.2023 13:50

Ответить
Touched By God
Touched By God - 28.09.2023 09:20

i am a beginer

Ответить
Touched By God
Touched By God - 28.09.2023 09:19

thank you i always dreamed to make a game and publish it i am 9

Ответить
Ahmad
Ahmad - 24.09.2023 14:11

how to download the github repository?

Ответить
AFSHIN SADIQUE CHUNDAKKADAN
AFSHIN SADIQUE CHUNDAKKADAN - 03.09.2023 15:38

it is showing error for me in the class Player(pygame.sprite.Sprite):
it is telling 'module' object is not callable

Ответить
E.R.E.N..
E.R.E.N.. - 31.08.2023 14:58

great!

Ответить
ศุวิล ศุภเสถียร
ศุวิล ศุภเสถียร - 18.08.2023 09:59

The github code is kinda broken, i can't view the code there. But Good job!

Ответить
brandon
brandon - 17.08.2023 18:29

WHY CANT EVERYONE BE AS DOPE AS THE BEGINNING BRO SAID IF THAT DOESNT WORK THEN HERES 5 OTHER OPTIONS AND 2 VIDEOS damn bro cares :)

Ответить
Yash agrawal
Yash agrawal - 14.08.2023 15:39

i could not under stand hoe the loading of the sprites worked

Ответить
balls
balls - 03.08.2023 18:43

It's really confusing, and only really teaches you how to work with specific and ready sprites. At least it's free I guess.

Ответить
Zyon Rams
Zyon Rams - 11.07.2023 05:39

its very fast paced and its a lil hard to keep up and the details are not much discussed and why the code is structured that way, lil confusing

Ответить
Josh R
Josh R - 18.06.2023 13:43

Absolutely amazing video!

Ответить
ThoseRandomShredders
ThoseRandomShredders - 13.06.2023 23:36

Just Wondering: How Do You Add Multiple Fires?

Ответить
PHA
PHA - 04.06.2023 17:51

i cant import os modul

Ответить
Happy dreams
Happy dreams - 28.05.2023 14:44

I'am 43 , I did it! I just finished your course .. thank you Tim

Ответить
BlaZzeWolf
BlaZzeWolf - 20.05.2023 01:11

code not even working for me, it says pygame module not found but pygame is already installed, also import math random and os it's not even getting highlighted

Ответить
Duca Minimo
Duca Minimo - 27.04.2023 18:37

muito obrigado pela Magnifica aula

Ответить
Ro
Ro - 22.04.2023 01:59

This is a great introduction to python for gaming.

Ответить
Sin Angel No Hay Salsa
Sin Angel No Hay Salsa - 20.04.2023 05:48

I cant RUN, i mean, everything's fine, even the RUN.png loaded, but it doesn't run when it runs(?)

Ответить
Bigbankmoney
Bigbankmoney - 10.04.2023 00:25

Getting ModuleNotFoundError: No module named pygame. I’m on windows

Ответить
Fahim Nizar
Fahim Nizar - 30.03.2023 12:20

Need help,
when i try to run the code on "Pixel Perfect Collision (vertical)" portion, i got error:
AttributeError: 'NoneType' object has no attribute 'overlap'

Ответить
万沪
万沪 - 29.03.2023 14:10

The tutorial is too complicated and advanced for novices. You must be proficient in Python and also master the usage of the pygame module, which is suitable for speeding up the viewing process.

Ответить
HaizeScreen
HaizeScreen - 28.03.2023 22:25

what to do if the window doesn't pop up when running the program

Ответить
Ed Medeiros
Ed Medeiros - 28.03.2023 20:31

Thanks so much for putting these tutorials out there. One of the things i don't understand is how do you know what functions to use within the PyGame library (Or any library for that matter)?
I do know where to find the documentation online but it seems like a lot of info to parse through. Or do I just need to bite the bullet and RTFM? haha.

Ответить
Yuri dos Santos
Yuri dos Santos - 27.03.2023 17:52

Considering pygame it's a SDL wrapper, this tutorial is useful for C++ programmers who are using SDL to game games aswell
Great tutorial!

Ответить
GrowYourCrypto Enzo
GrowYourCrypto Enzo - 27.03.2023 00:15

Love the tutorial so far, but I've run into a snag and can't seem to get around it. I installed pygame through VSC but when I run the script to test whether it quits the game window, it gives me "ModuleNotFoundError: No module named 'pygame' " because my pygame installation is located under Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pygame (using Mac) -- any suggestions?

Ответить
Music Fan
Music Fan - 26.03.2023 21:32

For some reason whenever my character touches the ground it keeps bouncing on it, i double check the code with the one Tim had and I can't find the problem, anyone have any idea what could cause it?

Ответить
Fabricio Gonzalez
Fabricio Gonzalez - 26.03.2023 18:13

Thanks! It was fun but it works very laggy on my computer (and I don't know why, it's a good computer).

Ответить
Mike Young
Mike Young - 26.03.2023 16:06

I found that to be able to run the tutorial with a double-click in Windows (rather than via the development environment), I needed to add the line:
mypath = os.path.dirname(os.path.realpath(__file__))
near the start of the code (I put it after the line setting the caption),
and then change the joins that specify "assets" from
path = join("assets",
to
path = join(mypath, "assets",
This is needed because double-click does not set your starting directory to the one where the code is stored, so the assets folder can't be found.

Ответить
Greis Boy
Greis Boy - 26.03.2023 12:01

It's so laggy (yes my laptop is old) even for just a simple platformer game. Definitely pygame is not an engine for serious commercial game.

Ответить
Devin Morton
Devin Morton - 26.03.2023 11:34

Thank you!!!

Ответить
HexxiDelux
HexxiDelux - 25.03.2023 14:18

Hey, would you folks ever consider making text tutorials? I suffered a concussion middle of last year and even though I'm out of the 7 month window of recovery, it seems that migraines and audio sensitivity are going to be a thing for me for... who knows how long. So, I have my own personal reasons for wanting text tutorials, but I can't be the only one who would like to see one or two? Ty

Ответить
Nawrin Montahan Chhoa
Nawrin Montahan Chhoa - 25.03.2023 11:24

YOU'RE AMAZING!

Ответить
K Shutt
K Shutt - 25.03.2023 04:29

Can you do this through REPLIT?

Ответить
Backpacking Kat
Backpacking Kat - 25.03.2023 01:45

Omg yay! I can’t wait to try this

Ответить
tester 2
tester 2 - 24.03.2023 20:05

Thanks for your tutorial.
How can make this game mobile compatible for ios/android?
Please let me know the possibilities.

Ответить
Wizav PRO
Wizav PRO - 24.03.2023 11:43

I watch Pygame tutorials so I can build my game in C SDL2 - it's literally the same library.

Ответить
Adrian Currie
Adrian Currie - 24.03.2023 04:49

I have a question can you make any game with these steps and code.

Ответить
Heisenberg
Heisenberg - 23.03.2023 12:08

CAN I MAKE GAME LIKE THIS TO ANDROID MOBILE PHONE AND RELEASE THEM IN GOOGLE STORE?

Ответить
Śéîf Štåř
Śéîf Štåř - 22.03.2023 14:28

Amazing

Ответить