I tried to build the little graphics tool I recently mentioned -- the one
that makes "edge tiles" -- into an EXE, and got a strange error. The
program runs fine in IDLE and when run directly by double-clicking the
source file, but the EXE crashes with the following error (automatically
placed in a
How do I maximize the pygame window or start it maximized? not fullscreen, just
maximized. by code, not by clicking on the maximize button. i can't find a way
to do this. if there's really not a way to do it, that's kind of disappointing.
It's probably just me; I don't even know exactly what I want.
As you can see from the screenshot for Asteroids 4.0 on pygame.org, the bars
are now transparent. Thanks,
Ian
I also added the surface.set_alpha() function.
Since the bars are against a dark background, they look too dark. Is there
a way to increase the brightness of all the pixels or something, but still
show the transparency?
Ian
So like:
bar_surface = pygame.Surface((bar_width, bar_height))
bar_surface.fill(#custom color)
surface.blit(bar_surface, (bar_pos_x, bar_pos_y))
Ian Mallett wrote:
Hi,
I'm making a game where there are status bars overlaying the main
screen. These status bars change in both length and in color
according to their length. e.g., a short bar will be red (warning
that you have limited amounts of resource), and a long bar will be
green
Hi,
I'm making a game where there are status bars overlaying the main screen.
These status bars change in both length and in color according to their
length. e.g., a short bar will be red (warning that you have limited
amounts of resource), and a long bar will be green (showing that you have
eno