Skip to main content

Questions tagged [pygame]

Pygame is a portable Python package for video games, built on SDL.

4 votes
2 answers
258 views

I developed two custom UI components with Pygame: a Button widget and a Frame widget. After placing the Button inside the Frame, I encountered an issue with the Button’s collision detection. ...
Hossein TwoK's user avatar
6 votes
2 answers
503 views

This code requires: tile map exported as .csv file tile set as .png knowing tile size knowing the rows and cols of the tile set .png For example, this tileset has 2 rows and 6 cols ...
Hossein TwoK's user avatar
9 votes
2 answers
270 views

I’m a first-year IT student, and I’ve completed a working Blackjack game in Python as part of an assignment. I’d love to get some feedback on my code structure, readability, and comments to improve my ...
Goose's user avatar
  • 91
8 votes
2 answers
1k views

I have been working on a 2D block game. I like the progress I am making, but I would like to improve the performance and the overall quality of the code. The code and textures are stored in my GitHub ...
coder's user avatar
  • 237
7 votes
1 answer
125 views

I just wanted to put this out here and see what people think and potential improvements I could make. I've been learning spritesheets in pygame as I was really scared to use them as I thought they ...
ThisQRequiresASpecialist's user avatar
7 votes
2 answers
854 views

I have made up some evolutionary rules for a type of cellular automaton that uses numbers instead of the more common binary black or white cells. Rules in English: Takes place on a square grid that ...
R1s1ble's user avatar
  • 171
2 votes
2 answers
303 views

Follow up from this question. I have added a slower loading system that allows the main game to run faster but I still get under 30 fps with caves even if I allow the player to outrun the loading. I ...
coder's user avatar
  • 237
3 votes
2 answers
275 views

I am coding an Infinite 2D block world chunk system with physics for fun. I am worried mainly about performance and code structure. I found that when I added more Perlin noise it made the performance ...
coder's user avatar
  • 237
2 votes
1 answer
126 views

I am coding an infinite 2D block world chunk system for fun. I would like to improve performance, but I'm not that worried. Game.py ...
coder's user avatar
  • 237
7 votes
2 answers
1k views

I was ok with my pawn code but the rook code is very long and I want it to make the code shorter and cleaner and the same thing with my bishops, knights, kings and queens. ...
Hai Khuc's user avatar
4 votes
2 answers
197 views

I've developed "Element Fusion," a PyGame-based game inspired by 2048 but using chemical elements. I'm seeking feedback on: Gameplay mechanics Code structure and efficiency PyGame ...
Amirhossein Rezaei's user avatar
7 votes
3 answers
1k views

I'm not very confident about this piece of code I created, it basically takes a file like this: ## # ## ## # #B # # # ## ## ## A###### Then proceeds to ...
José Gomes's user avatar
13 votes
2 answers
2k views

I have made a space shooter game in pygame with over 800 lines of code (including blank lines). The aim of the game is to kill all of the ships in the game. You start with a small spaceship and one ...
coder's user avatar
  • 237
6 votes
1 answer
173 views

Can someone review the code for this dodging game I made a while back? I want to see if there are any improvements or optimizations I can make as I am more or less a Python beginner. ...
Baba20's user avatar
  • 97
2 votes
1 answer
140 views

I made a game in Python where you play Pong against an AI. As I am quite new to pygame, I would be grateful to hear any possible improvements. This is my code: ...
sbottingota's user avatar
  • 1,143

15 30 50 per page
1
2 3 4 5
17