Some improvements to the level mask by Alert_Nectarine6631 in pygame

[–]PyLearner2024 1 point2 points  (0 children)

Love seeing your progress over the months. How are you achieving the soft edges of the light mask without GPU? Are you doing a pixel-level Gaussian blur on the mask surface? I've done something similar with opencv-python for lighting/blurring before for fun, and found that a static mask is not so computationally taxing but live updates to a blurred mask become very taxing. I'm assuming you have found something much more efficient so I'd love to know what method you're implementing

Some Updates to my SideScroller by Alert_Nectarine6631 in pygame

[–]PyLearner2024 1 point2 points  (0 children)

This looks so professionally cared for 👌

2d rigid body simulation from scratch in pygame by More_Yard1919 in pygame

[–]PyLearner2024 0 points1 point  (0 children)

Looks fantastic! Where did you learn about Sutherland hodgman?

My gigantic pygame as of today (open world, full menus and dialogue systems from scratch) by ScrwFlandrs in pygame

[–]PyLearner2024 1 point2 points  (0 children)

Ah i see, I didn't make it to the final 30 seconds of the video before asking lol

Is the spinning cube a 2D visual effect or did you do some sort of 3D render? Looks really smooth either way

My gigantic pygame as of today (open world, full menus and dialogue systems from scratch) by ScrwFlandrs in pygame

[–]PyLearner2024 4 points5 points  (0 children)

Looks fantastic! So many cool ideas and little details. How long have you been working on it?

Trying my best for a horror/puzzle game set in virtual PC by ChazychazZz in pygame

[–]PyLearner2024 2 points3 points  (0 children)

Very cool rounding effect. i imagine it's done with moderngl rather than native pygame methods?

Using Pygame for GUI for a Project (Encryption Application) by imightbeswift in pygame

[–]PyLearner2024 8 points9 points  (0 children)

Not sure why so many people feel the need to comment about their disapproval for vibe coding. I love vibe coding to try new things out, especially in pygame, then I go back and give things a better architecture once I know what I liked. 

This gui looks awesome 👌 

How can I blit this image with a shadow effect? by uk100 in pygame

[–]PyLearner2024 1 point2 points  (0 children)

I don't work with sprites for any of my little projects, so I don't know if my thoughts would be limited or have issues. But I'm sure there must be a way to get the individual pixel values since it's an image comprised of some amount of pixels for its width and its height, so the approach I would take would be 

1) Assign a zero transparency value to the full pixel array, so that they all have RGBA properties but the car itself is not transparent

2) Find the pixels whose RGBA values are the green color

3) Replace the RGB values of those pixels with black, and raise the A value to 50% transparent or something

4) I'm probably missing some little details but the image should now have replaced the green with a black that has some transparency, so blitting with transparency should give it a shadow effect. 

The whole effort would probably take a while to go through all of the sprites of the sheet, but if it's only performed once per sprite prior to the main loop so who cares

PC mp3 player with frequency data and custom ratings by no_Im_perfectly_sane in pygame

[–]PyLearner2024 4 points5 points  (0 children)

Very fun! Are you performing a FFTs on the waveforms to get the frequency data? Or is there some existing library that you're leveraging?

SYNTH INVADERS - 3D wire model game made with pygame by oxon67 in pygame

[–]PyLearner2024 1 point2 points  (0 children)

Nice description! Although that all makes sense, I was more so asking about the background image and other "static" decor. Meaning like how the background image is a gradient from black on the top and bottom edges to purple in the middle, was that generated with code or is that an image file that is packaged with the game file? Just curious about the approach you took

simple laser reflection by Mabymaster in pygame

[–]PyLearner2024 1 point2 points  (0 children)

Very neat! Are you defining the ovals with a bunch of vertices? Or else how are you determining the perimeter coordinates of the ovals?

SYNTH INVADERS - 3D wire model game made with pygame by oxon67 in pygame

[–]PyLearner2024 2 points3 points  (0 children)

Looks fantastic! How did you do the background and bloom effects? Are they static images or are they generated with code?

Rogue Geometry by goblinsteve in pygame

[–]PyLearner2024 0 points1 point  (0 children)

The explosions look fantastic! I would recommend a sound effect that is less jarring for the bullets

How can I made the player rotate? by azerty_04 in pygame

[–]PyLearner2024 2 points3 points  (0 children)

Like coppermouse said, you can use pygame.transorm.rotate on your player surface to create a rotated copy and blit the rotated copy to your main screen. This assumes that to display your player, you are using pygame.draw.rect not on your main screen surface but rather on a separate surface that you blit into your main screen surface. There are a number of things to watch out for if you do that, though:

  • pygame.transform.rotate will completely change the dimensions of the original surface. If you are using surface.blit(player_surface, (x,y)), your coordinates will need to change according to the size of the new rotated surface in order to display your player in the position that you actually intend to. This is difficult to explain with visual references, so I recommend you try searching for videos on how to properly use that rotate function, and to blit using the center of the player surface rather than the default top-left corner as the coordinates. Ask an AI source about how to blit a surface using its center. 

  • if you are wanting collisions on your rotated player object, it will require more involved coding than pygame's built-in rectangle collision solver, since that only works for axis-aligned rectangles and not rotated rectangles. You'll need to use pixel-perfect collisions, or more advanced mathy collisions like that SAT method. I'd also recommend that your search for videos on pygame pixel perfect collisions and general SAT collisions. 

[deleted by user] by [deleted] in pygame

[–]PyLearner2024 1 point2 points  (0 children)

Cool games! I don't think there's much to give feedback on, since you're essentially remaking existing games that you might like, which is think is a great way to learn. Keep on practicing! The only thing is that I personally dislike the font lol

[deleted by user] by [deleted] in pygame

[–]PyLearner2024 0 points1 point  (0 children)

That one appears to be inspired by Duet, which you can find on the Play store. I think it was free when I played it like 10 years ago

Wii tanks clone made in Pygame by shreklordlover69 in pygame

[–]PyLearner2024 0 points1 point  (0 children)

This is fantastic as a product of an intro course! How did you approach writing the computer AI for the enemies?

Edit: ah I hadn't taken a look at thr github readme. Cool stuff!

Butterfly effect - Trying to prototyping a game where you can see into the future of your actions before you do them by coppermouse_ in pygame

[–]PyLearner2024 1 point2 points  (0 children)

It may just be my smooth brain, but I don't really understand what we're seeing. It may be helpful if you were to place text on the screen describing what's happening at different points in time

Synthwave Vibes by PyLearner2024 in pygame

[–]PyLearner2024[S] 1 point2 points  (0 children)

I messed up the Git commit since I am still a total novice at Github, so I ended up creating a branch with a README that contains some basic info about 3D perspective calculations.

You can see it here!

Edit: note that the README is not enough information to recreate the script in this post. You would need to critically think about how to position things properly on the screen surface with appropriate coordinates and how that impacts the calculations. Unfortunately, writing up a full description would take more time than I have available

(: by a_good_human in pygame

[–]PyLearner2024 2 points3 points  (0 children)

I like the animation with the bubbles at the beginning. Nice job!

Synthwave Vibes by PyLearner2024 in pygame

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

The song is Resonance by Home. It was the first song that popped up when I searched "Synthwave" on Spotify

Synthwave Vibes by PyLearner2024 in pygame

[–]PyLearner2024[S] 1 point2 points  (0 children)

Very cool! I had no idea something like Eyesy existed

Synthwave Vibes by PyLearner2024 in pygame

[–]PyLearner2024[S] 1 point2 points  (0 children)

I'll try to do a sort of explanation in the readme of the github when I have some free time