wip, might not be good
This commit is contained in:
parent
f53879f961
commit
6d5bfaeeda
63 changed files with 1897 additions and 93 deletions
|
|
@ -39,6 +39,33 @@ class Map:
|
|||
# try to load the map from map.png
|
||||
try:
|
||||
self.surf = pygame.image.load("map.png").convert_alpha()
|
||||
|
||||
# self.surf_pil = Image.frombytes(
|
||||
# "RGBA",
|
||||
# (self.surf.get_width(), self.surf.get_height()),
|
||||
# pygame.image.tostring(self.surf, "RGBA", False),
|
||||
# )
|
||||
# self.surf_blur = (
|
||||
# self.surf_pil.filter(
|
||||
# ImageFilter.SMOOTH_MORE(),
|
||||
# )
|
||||
# .filter(ImageFilter.SMOOTH_MORE())
|
||||
# .filter(ImageFilter.SMOOTH_MORE())
|
||||
# .filter(ImageFilter.SMOOTH_MORE())
|
||||
# .filter(ImageFilter.SMOOTH_MORE())
|
||||
# .filter(ImageFilter.SMOOTH_MORE())
|
||||
# # sharpen
|
||||
# .filter(ImageFilter.UnsharpMask(radius=3, percent=100, threshold=3))
|
||||
# .filter(ImageFilter.UnsharpMask(radius=3, percent=100, threshold=3))
|
||||
# .filter(ImageFilter.UnsharpMask(radius=3, percent=100, threshold=3))
|
||||
# )
|
||||
|
||||
# self.surf = pygame.image.fromstring(
|
||||
# self.surf_blur.tobytes(),
|
||||
# (self.surf.get_width(), self.surf.get_height()),
|
||||
# "RGBA",
|
||||
# ).convert_alpha()
|
||||
|
||||
except FileNotFoundError:
|
||||
self.pre_draw()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue