All Questions
48
questions
12
votes
2
answers
347
views
Using the mouse to avoid asteroids and black holes
I have finished my first project for Python. I would be very grateful if you could check it and give me some feedback. Just simple game with possibility of replay. There are probably lots of mistakes ...
4
votes
1
answer
11k
views
Memory game using Python and PyGame
I am a beginner in Python and PyGame and wrote a memory game. I think there are lot of things I could have done better. I am looking for some advice on how I can improve the design and refactoring of ...
14
votes
1
answer
11k
views
Space Shooter made using Pygame
This is my first game made using Pygame of about 550 lines of code. Advice and suggestions are more than welcome.
...
9
votes
1
answer
2k
views
Pygame version of my 3D Tic Tac Toe/Connect 4
I posted a question a while back asking for some feedback on the code of a game I made (it was limited to typing the input and drawing the output in ASCII).
Now I've got it linked up with pygamef. ...
11
votes
3
answers
1k
views
Bunny and Badgers: A tower defense game
I made a tower-defense game in Python with Pygame called "Bunny and Badgers". You're a bunny and must kill the badgers before they come into the castles. You can use W, A, S, D and the arrow ...
7
votes
1
answer
3k
views
Builder - A 2D Minecraft clone
I was poking around on my Raspberry Pi that I hadn't turned on or used in a while, and I stumbled upon this Python script that I wrote ~1.5 years ago, and I was intrigued.
Essentially, it's a 2D ...
6
votes
1
answer
135
views
Input processing/state machine function
I'm making a Mario clone in pygame and I have just wrote a function proccesses inputs and acts as a state machine for Mario. Everything is working just as I want it, but I was wondering if you can ...
7
votes
1
answer
441
views
Game loop decorator for Pygame
I've built a simple decorator that wraps a function in a general Pygame game loop. It also allows for the programmer to set the tick rate.
...
12
votes
1
answer
3k
views
Pong game in Pygame
This is my first time trying OOP and I definitely made many stylistic mistakes. Please tell me how I should improve.
Controls:
w and s for player 1
↑ and ↓ for player 2
The player with higher score ...
7
votes
1
answer
17k
views
Snake game made in Python
I made a snake game with /some/ code from thenewboston's tutorials when I had just started Python. I think it wasn't a good idea to start game development right away since I didn't even know if what I ...
9
votes
1
answer
443
views
Block_breaker clone in pygame with simple edge detection
I tried to make this clone of
brick_breaker on my own
in one day. The source code and assets .
However I have some concerns about the code so far:
It uses simple edge detection code (as if ball goes ...
8
votes
1
answer
2k
views
Tetris clone written in Python/Pygame
Tetromino class:
...
4
votes
3
answers
2k
views
SimCity clone with PyGame
I am doing my best to keep this code clean and fast, but as I add more to the game, it seems to get harder to maintain a frame-rate higher than 200! I believe that the culprit is a somewhat large <...
11
votes
2
answers
601
views
SimCity clone performance
I am working on a SimCity clone, and I am noticing a drop in frame rate as I add more objects to my map, now this is expected, but, when I fill the whole screen, the game maintains about 300 FPS.
...
4
votes
1
answer
10k
views
Basic Pong game in Pygame
I have just wrote this Pong game in Pygame:
...