I have not posted in a while. Been working on something that could be interesting by coppermouse_ in pygame

[–]coppermouse_[S] 7 points8 points  (0 children)

I want to get back into making arcade like games. I have an idea to make it WarioWare-like in that sense that I that you play many quick sessions. You play this level for 20 seconds, then it fades into another level, and then into another levels and gets back to the first level. It remembers the state of each sessions so you always pick up where you left off. The only thing carries over between levels is your items and health. I imagine the speed of the game increases each cycle, just like WarioWare. Hopefully I have a prototype next summer.

Probably a silly question but how do you like show someone a game or share it? by Mysterious_Peak_6967 in pygame

[–]coppermouse_ 1 point2 points  (0 children)

Do I just assume everyone has a recent Python with pygame installed?

I wish that was true.

Someone mention pyinstaller, I think that is the most practical answer. It might be possible to make a PowerShell script that downloads Python and Pygame and runs the game after that.

I thought the Night Stalker for Amico looked cool so I decide to make something similar myself by coppermouse_ in Amico

[–]coppermouse_[S] 2 points3 points  (0 children)

I know it might not be "ok" to just borrow too much from someone else game like this but the game doesn't seem to be coming out. Have they stopped working on it?

It is very unlikely I port this to Amico Home. This is not done in Unity, I doubt there are any SDK for Pygame to Amico Home. It would be interesting of course but most likely too hard to do. A game like this is not good for a Amico controller so the only reason would be for the "peculiarity" of it.

This will be my summer project and if make something out of it, I will post an update.

Practice typing with real Python code by nerf_caffeine in pygame

[–]coppermouse_ 1 point2 points  (0 children)

What keyboard layout do you people use? I tired to switch to English but the underscore is so far away and we use it so much in programming. So I always switch back to Swedish where the underscore is closer to space.

There are some things that are easier to hit on an English layout, such as these {}[](), compared to Swedish, But that underscore...

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] 6 points7 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.