All Questions
48
questions
2
votes
2
answers
133
views
"Element Fusion" game where 2048 meets Chemistry
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 ...
12
votes
2
answers
1k
views
Space shooter game using pygame
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 ...
6
votes
1
answer
146
views
Code for a basic dodging game in Python
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.
...
0
votes
0
answers
53
views
Snake game player movement pygame
I've begun my journey with game development a little while ago, thought recreating snake would be cool, except I plan on adding other cool mechanics and stuff to it later. The player controller script ...
4
votes
1
answer
354
views
2D Minecraft - infinite chunk system
I am making a 2d minecraft clone for a hobby.
Here is my code:
2D_MC.py:
...
2
votes
1
answer
99
views
Game of life(random generation, pygame)
I recently created game about life in python. First version of code was console, but recently I rewrote this game in pygame. I decied upgrade game and was added age of cells. But now I can see that my ...
2
votes
1
answer
61
views
Conversion of ZX81 BASIC Game to Pygame
I got the idea for this code from an article on converting ZX81 BASIC to Pygame. Although some code was provided in the article, I implemented this myself.
I'm pretty dubious about the approach of ...
2
votes
1
answer
186
views
Go chess (weiqi) in Python using Pygame
Preface
This question is a re-implementation of my other question here.
The Game
Go or weiqi is an amazingly simple yet complex board game. This game is typically played on a 19x19 grid, and pieces ...
3
votes
1
answer
156
views
Asteroid-avoidance arcade game in pygame
Out of boredom one day I decided to make a game in pygame. I think it turned out fine, but am absolutely sure that it can be improved. How so?
...
1
vote
1
answer
44
views
When I try to re set up my code after failing in the game I cant get it to run the function without its own file being undefined [closed]
I know my code is ugly and unreadable. I originally had the game working without class functions but when I had to implement class function it all went downhill.
TennisMaster.py
...
4
votes
1
answer
205
views
class that handles the rpg game map
I created a class to handle maps in my RPG game, before it became a class this was a collection of functions I created, but I thought it could be used as a class. although this code is working but i ...
4
votes
2
answers
289
views
Revised Top-Down Dungeon RPG
Introduction:
So far, the game works well, and my only major concerns, are a bullet system (including a function where you click the mouse to shoot the bullets), and a collision system between the ...
5
votes
2
answers
145
views
Language skill tester using Pygame
I made this little game that tests our language skills. It uses one external module, pinyin, which can be installed via the command prompt command
...
1
vote
0
answers
183
views
A little board game framework with MCTS AI
There are two main classes: Game and MCTSPlayer. The first one is just an abstract class with a couple of methods and some hints ...
5
votes
1
answer
242
views
A Python snake game (using Pygame)
So this is a fun little project I am working on. This is my current progress with the game:
...
2
votes
0
answers
1k
views
Python code for UNO Game
It's my first time here, so please accept my apologies in advance if something is wrong with my approach to asking.
I've been learning Python for a couple of months and I decided to have a go at a ...
3
votes
1
answer
112
views
An emotion recognition test I designed using Pygame
for my dissertation (in psychology) I created an emotion recognition test that displays an image of a face displaying a certain emotion for a set time, then allows participants to press a button ...
5
votes
2
answers
427
views
Pygame Minesweeper Clone
I'm still a relative beginner to coding and I would like some feedback on my Minesweeper clone written in Python using Pygame for the graphics. I'm wondering if it would be beneficial to use classes ...
7
votes
2
answers
3k
views
Simple PyGame Connect 4
I've made a simple connect 4 game using PyGame. I'm new to python and haven't completely perfected this. I know it's inefficient but I can't tell exactly HOW to fix it? Could someone help me out? ...
2
votes
1
answer
1k
views
2048 game in Python 3
I wrote this 2048 game using Python 3 and pygame a few weeks ago. Since I'm getting into CS this summer, I would like to get some review on how I can improve my code in generel. Any tips and ...
1
vote
0
answers
4k
views
Card Game using pygame module
I implemented a card game using pygame, the game is a game of war and using png files that I made in Microsoft paint. I tried to keep the object classes as separated from the pygame module as possible....
1
vote
1
answer
545
views
Implementation of the Snake game in Pygame, with GUI
I wrote a simple Snake game in Pygame, with GUI. It`s my first Pygame game and one of my first projects in Python. My goal with this implementation is to make it bug-free with fluid UI and as fast/...
4
votes
1
answer
816
views
Movement function for a Sokoban game using Python [closed]
I've been working on the functions that handle when a player's sprite interacts with either a wall (0) or say the crate to push (£)
I'm just wondering how this looks and if there alternative methods, ...
5
votes
0
answers
1k
views
Game involving catching falling items
This is my first game. Everything in the game was created by me during this week - from assets, music and, of course, code.
As I am new to Python I have wondered if the design template for this game ...
4
votes
1
answer
667
views
Mars Lander pygame
Here is my code about our final project in uni called 'Mars Lander'. The thing is that my code seems to be all over the place (more specifically in the 'main' function at the end of the code...) ...
14
votes
2
answers
442
views
Counting people inside the house game
This program animates people going inside and outside of a house, the user has to keep a running sum in their head and must give the answer at the end.
The speed of people, the number of maximum ...
2
votes
1
answer
232
views
2D Basic 'evade the enemy' type game
I'm trying to learn how to become a good programmer. I think this means making my code more readable for others. I would really appreciate any feedback whatsoever. I'm not quite sure what specifically ...
1
vote
1
answer
101
views
A small to medium sized pygame game
Github Link To Code
Pastebin Link
I am well aware of how terrible the SettingsMenu class is, it's still a work in progress and is the way it is so it can actually work.
Can't paste it directly in ...
4
votes
1
answer
865
views
Creates a maze from file and enable user to go trough it with graphic display
I'm following the learnpythonthehardway.org book for learning Python. I recently made a one week projet and as I'm fairly new to coding program with POO and multiple files, I'd like to have someone ...
4
votes
1
answer
1k
views
Pong in Python and Pygame
I'm new to programming. This is my first project where I tried to use object-oriented programming. I'm looking for all kinds of comments.
...