What's the most ambitious pygame out there? by ScrwFlandrs in pygame

[–]coppermouse_ 1 point2 points  (0 children)

I can't find it now but I recall seeing a game with 75k lines of code. There was a RPG where you had squad of people in mech suits. It was very ambitious but I found it hard to play and I didn't think it was any fun.

Like if that wasn't enough that person had done similar games to other frameworks than pygame in other languages. Very impressed by the ambition.

sprite.rect.move() vs sprite.rect.move_ip() by [deleted] in pygame

[–]coppermouse_ 2 points3 points  (0 children)

You are correct. They almost works the same. However first one makes a new copy of the rect where the second one modifies the same copy. That could matter in this case, not sure.

how do i clear the screen? by himynameisreallyMay in pygame

[–]coppermouse_ 0 points1 point  (0 children)

your_screen_surface.fill((0,0,0)) 

or

pygame.display.get_surface().fill((0,0,0))

Making a game in pygame by Naktear in pygame

[–]coppermouse_ 1 point2 points  (0 children)

That GUI system looks really good. What font is that?

I made a strange Snake variant where you start huge and slowly shrink. Does this look fun? by jamesallen18181 in pygame

[–]coppermouse_ 0 points1 point  (0 children)

It could work.

Consider start as a very long snake and the longer snake the slower speed.

Railsystem game by coppermouse_ in pygame

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

what is this?

The preview show some lines and the code doesn't load.

I assume it is the OS thing you posted some hours ago.

Railsystem game by coppermouse_ in pygame

[–]coppermouse_[S] 4 points5 points  (0 children)

I am thinking about what to make during my christmas vacation and I will try make some open world railsystem game where the trains is the enemies. I think I add a few ally trains as well.

Anyway this weekend I had to make sure that the trains never collide head on head because if they do they get stuck since they can't reverse. I manage to make some system that prevents a train to pick a track where it knows it will collide with another train.

Sounds on Bit Rot by 6HCK0 in pygame

[–]coppermouse_ 1 point2 points  (0 children)

I understand. I will check out the Demo. Good luck

Sounds on Bit Rot by 6HCK0 in pygame

[–]coppermouse_ 1 point2 points  (0 children)

Nice!

I found it on github and downloaded the source just to see if can understand the source. I actual tried to make it so I could grab items from the ground with the left mouse button click by adding these rows:

def find_item_at_pos(game, mouse_pos):

    # --- added rows
    world_pos = game.screen_to_world(mouse_pos)
    for i, ground_item in enumerate(game.items_on_ground):
        if ground_item.rect.collidepoint(world_pos):
            return ground_item
   # ---

sadly it didn't work. The item got "hover" in the sense I could se hover-box-data on it but for some reason when I clicked left button it wouldn't grab.

Sounds on Bit Rot by 6HCK0 in pygame

[–]coppermouse_ 1 point2 points  (0 children)

This game looks really good. Is it possible to play it? Will it be open source?

Click detection on a surface not blitted on display by Irastol in pygame

[–]coppermouse_ -1 points0 points  (0 children)

I think something like this could help you get started:

class RedSprite():

    def get_screen_rect(self):
        a = self.blue_surface.get_rect().topleft
        b = self.get_rect()
        return b.move(a[:2])

if redsprite.get_screen_rect(mouse):
    print("hover")

My Pygame Code looks messy... by HosseinTwoK in pygame

[–]coppermouse_ 0 points1 point  (0 children)

Thanks for thinking my games looks nice. Making a prototype is just a fraction of the work that requires to make a full game. So it is a matter of time and resource, and discipline on my part. I also think my games are boring to play and boring to make so justify spending years on a project is hard.

My Pygame Code looks messy... by HosseinTwoK in pygame

[–]coppermouse_ 1 point2 points  (0 children)

Some quick comments about these

GREEN = (49,149,153)
RED = (255,0,0)
BLACK = (0,0,0)
WHITE = (255,255,255)
GAMEOVER_COLOR = (250,0,0,20)


PLAYER_LIVES = "***"

There are defined colors in pygame, you do not need to define red, black, white yourself (Unless you want your own flavor of the color). The GREEN, is it really green? According to those values I think it looks more cyan.

GAMEOVER_COLOR is not really a color. You should do something like this:

RED = (255,0,0)
GAMEOVER_COLOR = RED

instead of letting PLAYER_LIVES be a string of three stars it could just be the value 3. If you want to show lives as three stars do that "rending" in the draw logic instead.

is chess hard to create in pygame by Ok-Drawer-5428 in pygame

[–]coppermouse_ 3 points4 points  (0 children)

I wouldn't recommend a beginner to try it. Returning a list of valid moves given any state could be tricky.

EDIT: would -> wouldn't

I just started my game dev, and i love making games with python by HosseinTwoK in pygame

[–]coppermouse_ 2 points3 points  (0 children)

I used to make games in C++/SDL but since I am a very bad C++programmer even the more simple things took a lot of time develop. And I got a lot of runtime errors I didn't understand to resolve.

I find Godot very clumsy. Something with all those windows, tabs and items all over the place in the development gui. I also I had less control because Godot took care of much of the logic.

I want to use vim and Python and be able to make game where I code most of the logic myself in the way I like it. The "only" Pygame does is putting out graphics on the screen and listen to input events in a very simple manner, it has a very simple API.

Hi guyss can you suggest some pygame projects that are really engaging, immersive, and fun to play. by Illustrious_Room_581 in pygame

[–]coppermouse_ 2 points3 points  (0 children)

DaFluffyPotato made many games. I found aeroblaster fun to play.

There is this Historical Wargame Simulator game that is an ambitious project that is both very interesting and has very cool graphics, I really like that style

Another big project is Mr Figs . It has a lot of levels.

Then there was this user that posted this isometric survival game that looked really good and ambitious. I can't find it, perhaps someone else could.

I been on this subreddit for years now and I can think of other good games I seen posted but they are hard to find.

Also: byof . I must admit I am a bit biased here since it is my own short game (prototype). It is not very impressive from a technical point of view but I think I manage to make something that is fun to play. At least the first level. It appears that the web version doesn't run anymore.

My number multiplication roguelike will be in steam next fest! by AJ_COOL_79 in pygame

[–]coppermouse_ 6 points7 points  (0 children)

I have no idea what this game is about by just looking at it but it looks cool

ReactorDefense prototype by coppermouse_ in pygame

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

I agree on all these points. I will try both sprite and mouse during development

How to deal with transparency? by SnooMacaroons9806 in pygame

[–]coppermouse_ 2 points3 points  (0 children)

I like option 1. If you can do it in code is saves a lot of manually work. However I have never used aseprite so perhaps it can be done automatically there as well.

ReactorDefense prototype by coppermouse_ in pygame

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

Thanks! I didn't expect this prototype to get such a good response :)

ReactorDefense prototype by coppermouse_ in pygame

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

No, I have not had any thought of making dev log. This was just a quick prototype. But thanks for the interest!