All Questions

Tagged with
26 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
0 answers
934 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 ...
  • 69
4 votes
0 answers
96 views

Solar System simulation with real values in pygame

Inspired by TechWithTim, I built up the solar system including Pluto. I have added a camera feature, zoom feature and displaying information about the selected planet. Zoom in and out using arrow keys,...
4 votes
0 answers
89 views

Word finder using pygame

I made a word searching app that allows the user to inout words into a text box, and parts of the word grid will be highlighted to show the location of the words. The letters of the grid can be edited ...
  • 960
4 votes
0 answers
159 views

River crossing puzzle app using Pygame

I am making a river crossing puzzle app using Pygame. Did I implement the conditions optimally? The Person class arguments for the conditions as to when or not a ...
  • 960
4 votes
0 answers
94 views

Snake-game using Python 3 and PyGame

I'm pretty new to Python and really new to PyGame. My snake game runs, but I guess that's not really saying much. I would appreciate feedback on the layout, techniques, or best practices of my code. <...
4 votes
0 answers
158 views

Mouse Click Controlled Meteor Avoidance Game

Ongoing development of game. The player is controlled by mouse click to move upward. The goal is to avoid meteors for as long as possible. I would be grateful if someone could critique my code. ...
3 votes
0 answers
62 views

Pygame : processing speed independant image loop displayer

I made this in order to teach myself pygame. This displays an images loop at the same speed on any computer (It will lag on a slow computer). Is my time management good or do my datetime call could ...
  • 131
3 votes
0 answers
653 views

Using arecord through subprocess to record in Raspberry Pi

I am using arecord through subprocess to record in raspberry pi : press joystick button to start recording and press button again to stop recording. I am really a noob in programming. ...
  • 31
2 votes
0 answers
53 views

Snake game with constant time complexity algorithm

https://github.com/speedrun-program/constant_time_snake_game Memory efficient snake game with O(1) algorithm for snake movement and bug placement. Three grids are used: a grid representing the game ...
2 votes
0 answers
94 views

Connect 4 project for three players with PyGame graphics

I am currently working on a Connect 4 game for a project and it works. We added support so that it can be played by 3 players instead of 2. I know there is multiple instances of repeated code or un-...
2 votes
0 answers
31 views

One data object instead of array of objects - why is it slower?

I'm currently writing a game of life with small extra features but I ran into a problem - in my first try i decided to use simple list of Cell objects: ...
  • 21
2 votes
0 answers
141 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 ...
  • 131
2 votes
0 answers
768 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 ...
2 votes
0 answers
170 views

Raycasting python (pyagame)

I want to share my raycasting source (the first engine:) this program renders the game map (MAP array) and sprites (sprites_on_map array) ask and criticize! p.s I don't speak/write English very ...
  • 21
2 votes
0 answers
91 views

I want to enhance the memory performance of this game by storing only locations where velocity changes

Please be gentle. I'm a pygame n00b and haven't touched pygame in years. This is my unique implementation of the classic game snake. In this game, the snake has a velocity which can vary along both ...
2 votes
0 answers
197 views

Object-oriented model of a machine gun using Pygame

I just started to use classes in Python, so I don't know all concepts, rules and conventions about it. I made a little program of a machine gun, which simulates firing by user's action. Here it is: <...
  • 29
2 votes
0 answers
3k views

Text-Based Adventure RPG with PyGame

I'm creating a text-based adventure game using PyGame. I plan on also implementing kind of a Pokemon/Final Fantasy style combat system that works with menus instead of commands, but I haven't started ...
2 votes
0 answers
52 views

Avoiding multiple hits to Sprite by shifting Sprite to separate group

Would appreciate any suggestions or improvements, I'm sure there are many. Especially so on the way I've avoided multiple hits by the missiles; shifting the asteroid into a separate group to enable ...
1 vote
0 answers
95 views

pygame with infinitely scrolling background - handling of sprites movement

In my current project I try to implement the basic game logic of the game "Vampire Survival" (Little impression of the first level can be seen in this video on Youtube). Question I want to ...
  • 111
1 vote
0 answers
160 views

Python Sorting Algorithm Visualizer with Pygame

So I've written a Sorting Algorithms Visualizer according to this tutorial, but made some changes and add some features of my own. The visualization is made with Pygame (Which I never used before). ...
  • 301
1 vote
0 answers
537 views

Basic pygame menu with buttons

I'm new to python and newer still to pygame. In my attempt to learn, I set to make a basic menu with buttons. Here's my code: (note, ui_plate, is a system that the buttons are based on, it keeps all ...
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....
  • 139
1 vote
0 answers
104 views

Arabic Language lesson program Part 3

This is the third time I am asking for a review of this code (first time can be found here: Arabic language lesson program and the second can be found here: Arabic language lesson program Part 2). ...
1 vote
0 answers
415 views

Core of a text based game displaying graphics in pygame

I'm working on a silly personal project, - a text based game with minimal graphics such as characters (people, not the text), enemies, gear, little effects. But the core of the game is the text and ...
1 vote
0 answers
132 views

Pygame Slideshow2 that uses Curses with SSH to pause and move Pictures

I have added a few new features to Pygame Slideshow that includes using curses that works with ssh, a way to move pictures to a different directory while viewing them, a pause, and redisplay mode. A ...
  • 187
0 votes
0 answers
95 views

Learning UML and OOP, trying to make a game in python. What do you think of this UML diagram?

I'm working on refactoring a simulation that i started writing in python / pygame. The gist is, there's buildings scattered around a map, and units carry items back and forth from said buildings. I ...
  • 61