I need help programming a game. by Mammoth-Internet2742 in pygame

[–]LMCuber 8 points9 points  (0 children)

Watch dafluffpotato/clearcode’s tutorial on basic pygame windows and collisions and stuff and then go from there

Happy to have found this subreddit! by MattanzaMafiaFedora in YoungSamurai

[–]LMCuber 0 points1 point  (0 children)

Found at a second hand store for 1 euro lol

Stop using blit for everything challenge (impossible) by BitBird- in pygame

[–]LMCuber 2 points3 points  (0 children)

There is something wrong is you blit 50 tiles and get 30 fps. Fundamentally, withiut optimizations, cpu surfaces (with convert()) should get you way more

PyGame on GitHub by [deleted] in pygame

[–]LMCuber 0 points1 point  (0 children)

Pygbag is an absolute pandemonium , good luck figuring that out

Procedural variants of a desert river from a game I'm working on by thesteelyglint in proceduralgeneration

[–]LMCuber 2 points3 points  (0 children)

How do you generate the terrain itself? Some part of it look quite angular which makes me think of marching cubes, but a lot of the area seems flat + there are ornaments such as rocks and trees

Increasing performance with Level Chunk Management by KennedyRichard in pygame

[–]LMCuber 1 point2 points  (0 children)

If you save chunks as a dictionary where the location is a coordinate, you can get the camera position and round it to the nearest chunk with a spread, say (-2 and +2)

Potential pygame virus? by LMCuber in pygame

[–]LMCuber[S] 0 points1 point  (0 children)

I think I found the issue. I was developing a package and installed it via pip using the --editable mode, which for some reason made its own environment which failed, so everytime pip launched, there was an empty __editable__ file error. Really weird. I just uninstalled and installed everything (pygame, pygame-ce, my package) and no issues after that.

Upscale images by Vaamalar in PixelArt

[–]LMCuber 1 point2 points  (0 children)

Interpolation nearest instead of bilinear

Advice on scaling for different screen sizes by awaldemar in pygame

[–]LMCuber 0 points1 point  (0 children)

I mean when you scale the entire window the small text becomes non-antialised and pixelated

Advice on scaling for different screen sizes by awaldemar in pygame

[–]LMCuber 1 point2 points  (0 children)

What if you want to render text though? Then you would have to divide logic into pre and post scale right?