pygame tag

30 questions


1 answers
356 views
0
I want to display a 500x500 image in the middle of the 500x500 window in the Pygame and in the rect.center.

It's very long, so it's an excerpt, but as the title says I want to display a 500x500 image in the middle of the 500x500 window in the Pygame and in the rect.center.However, I couldn't find a good ide...

1 years ago

1 answers
470 views
0
Unable to execute pygame.

I did pip install python, and it disappears as soon as python launcher starts for a second when I run pygame.Why?

1 years ago

1 answers
318 views
0
When a multiprocessing program runs, dozens of programs run.

Description of the program you are creating first.Below is the code you wrote.main.py--import chatimport pygameimport randomimport globimport refrom multiprocessing import Process, Queueif __name__ ==...


1 answers
463 views
0
I want to draw two types of images with pygame at 30fps or more.

I created a program that alternately draws two images using pygame.Up to 28fps, I was able to do it without any discomfort, but if it reaches 30fps or more, I will not be able to draw because I though...

2 years ago

2 answers
402 views
0
I don't know why pygame specifies self as an argument when generating instances.

I'm a Python beginner.While learning from the basics through reference books, we are learning using pygame as an application.I don't understand why you specify self as the argument for Ship() when you...

2 years ago

2 answers
397 views
0
SyntaxError Occurs in the Program as Written in the Book

I've read it over and over again, but I can't help but get an error even though they're all the same programs.import pygame aspg,syspg.init()screen=pg.display.set_mode(800,600))while True: screen.fill...

2 years ago

3 answers
454 views
0
perform real-time processing of data from a microcomputer board using python pygame

I would like to communicate with arduino using this site https://algorithm.joho.info/arduino/python-serial-temperature-graph/ to display the graph in real time.The text is displayed without any proble...

2 years ago

1 answers
135 views
0
Image.load("") cannot be displayed in python pygame

I am currently studying python programming, which is fun to learn while making games.I am troubled that I cannot do image.load() in this document.I'd like to enter the code below and display (pythonlo...

2 years ago

2 answers
110 views
0
pygame surface.fill() does not work well

I wrote the following program about pygameimport sysimport pygamefrom pygame.locals import QUIT# globalsWINDOW_SIZE= (400,300)WINDOW_TITLE=Pygame Countdefmain(): pygame.init() surface=pygame.display.s...

2 years ago

2 answers
128 views
0
How Python Decrypts Encrypted Files and Reads

I would like to decrypt the python (pygame) pre-encrypted file for processing.By decrypting it and writing it out to a file, I was able to restore it to the state before encryption.I'm worried that if...

2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.