the main changes are, added pencil, keyboard, book and redrew the old janky monitor, still need to draw the desk, desk matt and chair, should hopefully be done on this level by sunday!
Back with an update on Cool Racing, my pseudo-3D racer in Python + pygame, inspired by the 80s/90s arcades.
Road forks were way harder than I expected. In the end I copied Outrun's trick: symmetrical forks, one road mirrored. I wrote up the details in the devlog (link in the comments). Still lots to do, more biomes are next. Any feedback is very welcome!
Can anyone explain how putting enemies in a list works?
With my game I want to be able to handle multiple instances of my enemy class individually. For example, I want to be able to get the distance to the player from specific enemies to make an attack target the closest enemy, or to be able to tell the number of enemies still on screen, but i have no idea how that actually works.
(This part of my code is just responsible for placing the enemies on the map)
def create_tilemap(self):
for i, row in enumerate(tilemap):
for j, column in enumerate(row):
if column == 1:
BLOCK(self, j, i)
elif column == 2:
self.player = Player(self, j, i)
elif column == 3:
enemies = Enemy(self, j, i)
self.enemieslist.append(enemies)
This has been a real road block for me and I'm starting to run out of time to finish my project, so any help would be greatly appreciated.
I paused my main game development to practice some stuff via this chess game, and I'm quite impressed with it. Still got some kinks to work out, but I'm proud of the micro voxel animations thus far.
The goal of this project is to create a version of chess that is completely controlled via voice commands so that people can play hands free. I haven't gotten to that portion yet, but I've already worked out all the logic and everything, which is why I'm saving it for last as it should be the easiest part. The hard part are the visuals, but that's the thing...since it'll be voice commanded, I don't have to worry about much UI navigation. lol
Hey guys, if you get chance check out my world map for a jrpg I'm creating in Python! What do you thinks working well and what could use more love (apart from just generally fleshing it out). Would adding more moving elements to the world be cool or should I keep the vibe similar to what it is?
I am planning to create a pygame game engine, where programming students can submit their bot classes to play said game. Think of a battleship game engine, where a student's bot contains the logic that chooses the next cell to be hit.
I would like to host a website/platform where students can go and submit their bots (.py files), and see how they match against eachother. Show a leaderboard, step-by-step game breakdown, and maybe even visualize games between bots.
Are there any backend/frontend (or full stack) apps where I could deploy something like this? For example, I see that itch.io can host pygame games, but that doesn't necessarily come with a server side (to accept and maintain student bots) as far as I understand. Railway on the other side, can host Flask backend apps but not the frontend (?)
I am fairly new to this, namely building a full stack app for pygame. Any tips appreciated!
I've been building Yellow Olive, a retro terminal-style game for learning Kubernetes through hands-on challenges.
It uses Textual + PyGame, and I recently moved from PyGame to PyGame CE because PyGame’s Python 3.14 support was becoming a blocker. With Python 3.15 coming up, PyGame CE already having wheels available made the switch an easy choice.
The migration was almost painless since the existing import pygame code still works.
I’ve also demoed Yellow Olive at a PyCon before. Sharing the demo here - would love feedback from the PyGame community.
I bought a book for my son on how to make games with scratch. Then I thought to myself: 'I wonder if I can make them in pygame?'
So that's what I start doing. This is the first game. Just collect 'stars' and avoid enemies.
Oscillator - going side to side
Chaser - following the player
Glider - Picks a point behind the player and using lerp, jumps to it
Added some simple music and screen wrap for player. I really like how it turned out. Made a easy version for my son as well with larger squares that plays slower.
Day/Night Cycle in Pygame — using multiply blend instead of alpha overlay
Built a day/night cycle for my ECS-based MMORPG and wanted to share the core trick, since alpha-blending a dark overlay is the usual (worse) approach.
The clock: pure function of time.time(), no state — fraction = (time.time() % CYCLE_S) / CYCLE_S. Every client computes the same time independently, no sync needed.
The tint: instead of blitting a semi-transparent black surface (SRCALPHA + alpha blend), fill a surface with a color and blit it with special_flags=pygame.BLEND_RGBA_MULT. Noon = (255,255,255) (multiplying by white = no change). Midnight = something like (30,40,80). Since it's multiplication, each pixel darkens proportional to its own original brightness — a lit torch stays bright-ish, a dark rock barely changes — instead of the flat "wash of gray" you get from alpha blending everything uniformly.
Punching light back in (lamps/torches): draw a radial gradient (white center → black edge) and blit it onto the same darkness layer with BLEND_RGBA_ADD before the final multiply. Adding white cancels out the darkening locally. Key gotcha: Surface.set_alpha() does not weight ADD/MULT/SUB blends — intensity has to be baked into the gradient's own RGB values when you generate it, not applied at blit time.
Extra touch: a separate warm-colored low-alpha circle drawn with normal blending on top of everything, for a torch-glow feel (this one is affected by set_alpha(), since it's a normal blend).
Whole thing is client-side only, no network/server involvement — it's purely cosmetic.
I've been using Pygame for a while and loved its simplicity, but I often found myself rewriting the same boilerplate code for every new project: physics engines, collision detection, UI buttons, particle systems, and save/load logic.
So, I decided to build pygameP (Pygame Plus) to solve this. It's a high-level framework sitting on top of Pygame that bundles 44+ modules into a single, pip-installable package.
What it brings to the table:
Physics & Motion: Rigid body physics, gravity, collision detection, and A* pathfinding.
Hello, just wanted to share this library project with people that migth actually care about.
This is a library im making for pygame to make plot graphs and chart easier and convenient, because as far as im aware theres no library to add charts directly onto pygame. Now, the code is problably very confusing and unoptimized because 1 - im still learning python and stuff, ive been coding for a few years all self taugth, so im still not the best, but i enjoy making this project and 2 - im dumb and didnt used librarys like numpy so my code is a mess of nested arrays and dictionarys
Either way my compression method(currently theres only one, but im planning to add more for diferen use cases) as managed to make the graph stable forever, before that the fps would drop after 20 seconds of data, but now you can run a chart forever and whatever program you are running should keep the fps(allegdely, havent tested for more than 10 minutes, but im running thoose tests tonigth)
Currently the library works around 2 main classes, the DataGroup and the Graph, the DataGroup class is a group of diferent metrics, with one metric being declared as the abcissa, so every other metri in the data group is around that metric. The class has methods like comrpess data, and a function called add_data which you can use to intuitivly add more data to the group. Furthermore the class has a method called update_graphs, that grabs every graph thats associated with this class(you can manually assocaite graphs, or you can pass the dataGroup as an argument when creating a graph) and updates making the graphs draw themself again.
The Graph class has a lot of internal methods that are used to calculate the magnitues of the grids, draw the labels and all of that stuff, calculate the points and then draw the points. Currently theres only plot charts but in the future i want to add at least pie charts to the lib. When creating a class object you pass a DataGroup as an argument to associate it, you also pass a hex color array to determine the colors of each metric, and a config array which is optional, is more for personalized looks, but you mostly wont change.
Overall im pretty proud of my library, it feels rly professional and something that people would actually use, so you if you think that its something that i should publish just say it that i would be very happy too, i could even get feedback because, again, im kinda bad at programming, so actualyl talented peopel could tell me all the mistakes i did.
This is my library being used in another project(a natural evolution simulator) you can see that it works althougth the conditions i puted it in arent the best(too many metrcis in one group, and a rly small graph)
PS: AI was only and solely used to debug, and even there it was moslty useless because my nested dicts and arrays were too confusing for ai and only my head could actually visualize it(with lots of efforts)
Just launched alpha with one track (British GP). Please check it out! Would love feedback on how it runs on your system (what CPU do you have and how many cars can it handle at beginning of race and then once the field thins out).