h
3 years ago
🚀 A Starter Guide to Pygame 📀# 🚀 A Starter Guide to Pygame 📀 Pygame is an open-source library for making graphical applications with Python. Learn more about it on the official...
TutorialsPygamePygame
109 comments
Latest comments
wow! so cool!
DSARobert20 (0)3 months ago
doesn't work. import pygame, time pygame.init() width, height = 800, 600 dvdLogoSpeed = [1, 1] backgroundColor = 0, 0, 0 screen = pygame.display.set_mode((width, height)) dvdLogo = pygame.image.load("dvd-logo-white.png") dvdLogoRect = dvdLogo.get_rect() while True: screen.fill(backgroundColor) screen.blit(dvdLogo, dvdLogoRect) dvdLogoRect = dvdLogoRect.move(dvdLogoSpeed) if dvdLogoRect.left width: dvdLogoSpeed[0] = -dvdLogoSpeed[0] if dvdLogoRect.top height:
awesomel (4)4 months ago
Hi, eankeen, It is showing that there is an error: Traceback (most recent call last): File "main.py", line 10, in dvdLogo = pygame.image.load("dvd-logo-white.png") FileNotFoundError: No such file or directory. The error type is "dvd-logo-white.png" file is not found. I think there's an error in your code. Please fix it and share it again. Thanking you in advance. Regards, @awesomel (Not my real name. (My profile name.))
view all ›
11 months ago
3D Projection TutorialI am going to teach you how to draw a 3D object. I'm going to start with some useful information about the project bellow. First, it takes about 10 -...
TutorialsPygamePygame
87 comments
Latest comments
i think you should try making one of your 3D projects into a full game
jeweledfox (26)10 months ago
Really cool would be an understatement for this! Amazing job!
Highwayman (1537)11 months ago
I’m crying you make it sound so easy why did I never learn this
view all ›
h
7 months ago
How to make a platformerSo some of you might be wondering how to make a platformer... Although this tutorial is more over the methods of how I do it, it will use pygame as a...
TutorialsPygamePygame
7 comments
Latest comments
Bookie0 (6560)7 months ago
Screen Shot 2021-02-10 at 3.17.49 PM Try adding syntax highlighting on those markdown code blocks by adding py after the 3 backslashes (`) :)
Cepter (1)7 months ago
how to playyyyyyyyyy
view all ›
h
2 years ago
Make flappy bird with Python Play 🐦# Make flappy bird with Python Play ![](https://storage.googleapis.com/replit/images/1566633312709_d7fd16ea4dac17d138efb5825222e7e4.gif) [Demo and C...
TutorialsPygamePygame
12 comments
Latest comments
vijayalayan (0)4 months ago
cool
ReyesP (24)1 year ago
Cool.
Awesome!
view all ›
h
2 years ago
How to use KivyI managed to make [Kivy](https://kivy.org/) work in a [GFX](https://repl.it/site/blog/gfx) REPL. Just create a Pygame REPL, which is among the Kivy d...
TutorialsPygamePygame
6 comments
Latest comments
CoderRudra (5)2 months ago
how the hell.....
Saibot84 (49)2 years ago
That's awesome, @PaoloAmoroso! Unfortunately, building Kivy takes quite a while. Running your PyGame repl, it took about 15 minutes to build Kivy. When I ran mine, it crashed countless times. Re-running the code started the whole build from scratch, and it never finished before crashing. I agree that polygott can be a bit buggy, but here's the same Kivy Showcase, but running on a polygott container where the Kivy wheel is stored (as well as those of its dependencies). This cuts the time to int
Moved to Learn since share is for you to share your projects.
view all ›
1 year ago
Having trouble with perfect collision and walls in Pygame? Then figure out the problem here!This tutorial will guide you through perfect collision code. If you don't know what objects orientation is, then take a look at this tutorials Repl, o...
TutorialsPygamePygame
comment
1 year ago
The easiest way to make a button in Pygame!Copy and paste this code. You can also change up the button format. Hope you enjoy this!
TutorialsPygamePygame
1 comment
Latest comments
theopythontest (2)5 months ago
this is perfect for my laptop ai. thx so much
view all ›