-
import pygame
import random
import sys
# 초기화
pygame.init()
# 화면 설정
width, height = 1024, 768
screen = pygame.display.set_mode((width, height))
pygame.display.set_caption("벽돌깨기")
# 이미지 로…
-
It'd be great if I could run pygame-ce (2.5.2) applications on a phone. Not pygame, I mean pygame-ce. Thank you if you consider it. If you tell me how, I could even try and make the PR myself, but I h…
-
I saw this cool script based on zengl and thought we can probably provide a similar example.
https://github.com/szabolcsdombi/mixing-pygame-and-opengl/blob/main/render_to_pygame_surface.py
-
when i try to run one of my codes, another one that i had opened earlier pops up. then when i close that one, the program that i wanted to run works.
i can't figure out why this is happening.
-
PLEASE HELP ME IT WILL TAKE YOU ONE SECOND. IT'S A YES OR NO ANSWER.
What I want is simple: a container that stores items and allows me to scroll through them without any issues. It seems like a st…
-
# Two-Player Tetris (Pygame)
## Project Abstract
Two-player Tetris allows the user to enjoy a competitive game of Tetris with the options of single-player, local PVP (player versus player), and bo…
-
I recently have issue halting my pygame program, come to find out it will not quit with `pygame.quit()` when `pygame.init()` is being used to initialize pygame
```python
import pygame as p
p.init()…
-
First of all; hi buddy, how have you been? long time no chat.
Second, im replicating this project in python, and i see that you prefer to use cmd-line pkgs/modules/interface instead of "clicking s…
-
**Environment:**
pygame-ce 2.5.2 (SDL 2.30.8, Python 3.12.1)
Platform: Windows-11-10.0.22631-SP0
System: Windows
System Version: 10.0.22631
Processor: …
-
import pygame
import random
# Khởi tạo Pygame
pygame.init()
# Thiết lập màu sắc
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
RED = (255, 0, 0)
# Thiết lập kích thước màn hình
screen_width …