Pygame (Python Game Development) Tutorial - 1 - Introduction
Why Stack Overflow recommends it
Stack Overflow users link it when answering beginner Pygame questions, pointing people to the series to learn the basic game loop and event logic.
Recommended by 5 people across 4 different months, 2015 to 2019.
What it is
The first video in thenewboston's Pygame tutorial series, a short introduction to making games in Python with the Pygame library. It is a screen-recorded beginner tutorial presented by the channel's host.
What people said
Recommends user4435153 · 2015-01 · Stack Overflow · on “Python Sprite Collision Detection”
1 [LINK] 2 [LINK] 3 [LINK] You can check these tutorials, but be sure you understand Pygame basic logic first. This [this video] tutorial pretty awesome, you can learn basic Pygame logic with this. My advice is watch whole episodes.
Recommends GLHF · 2015-01 · Stack Overflow · on “Bullets not showing up when trying to fire in pygame”
if event.key == pygame.K_SPACE: # Here is where the bullet fires. for i in bulletlist: bulletlist.append(bullet) bulletlist = bullet(playership.x + 25, playership.y + 25, bulletxc, bulletyc, 5, 10, pygame.image.load("images/bullet.png")) In here; bulletlist = bullet(playership.x + 25, playership.y + 25, bulletxc, bulletyc, 5, 10, pygame.image.load("images/bullet.png")) This part is wrong, your bulletlist is not a tuple anymore. See that, your bullet class store it anymore you should fix that statement. Also, I don't think you can make a fire with this method, check more information about Pygame. Here [this video] is pretty awesome tutorial.
Recommends Contrevien · 2017-08 · Stack Overflow · on “I need to know what pygame version to get on my windows 10 laptop for python 2.7.13”
You can go to [LINK] , there they have a bunch of options for windows 32 bit in the windows section. Just at the bottom of the Windows section, you see a link to download some pre release binaries for 64 bit windows, the direct link is here [LINK] . Once on the page you will scroll down to a hundreds of links to some or other applications, but as they are alphabetically arranged, you must have no trouble in finding "Pygame" section. Once at the pygame section, i think the second link is what you want. If you don't understand or get stuck in any of the process above, you can watch the video i learnt pygame from: [this video] .
Recommends user8390068 · 2018-08 · Stack Overflow · on “Python Pause a game with a Key”
You should never use `time.sleep()` in pygame. That is an evil function which can cause a lot of problems. Your question is a bit broad at the moment, and it's hard to answer, because you haven't posted any code. Do you have any code written? If you do, please use the `edit` link, at the bottom of your question, to include it. If you don't, I suggest following this YouTube tutorial series on making a snake game [this video] . The answer below has code from the same tutorial, just on a website.
Recommends babaliaris · 2019-05 · Stack Overflow · on “How to integrate 'MENU' code for my game with the actual gaming code?”
When creating a game you need something called The MainLoop [LINK] . All the code that needs to be updated in every frame goes inside this loop. This loop runs forever until the game is terminated. Check these video tutorials [this video] and this [LINK] Let me give you an example: import pygame #Import literals such as QUIT from pygame.locals import * pygame.init() w = 800 h = 600 screen = pygame.display.set_mode((w,h)) running = True def MenuCode(): pass def GameCode(): pass #This is the Game Loop. while running: #Events are used to check if a key has #been pressed or a mouse button or a mouse movement. for event in pygame.event.get(): #If the user pressed the x button. #terminate the while loo
Cites Tuts · 2017-12 · Stack Overflow · on “Python pygame - avoiding accidental continuous clicking”
[this video] Here's the playlist. The suggestion on the other page worked partly, meaning that it doesn't click through all the loops now, but the button function now works at random times. I have to click multiple times to get to the next loop and it always proceeds whenever, at a random click. So I don't really know how to continue now.