FlareOn11 - Level 1
By DKvenom, 0-Day Aarhus
Description:
This game about a frog is written in PyGame. The source code is provided, as well as a runnable pyinstaller EXE file.
To launch the game run frog.exe on a Windows computer. Otherwise, follow these basic python execution instructions:
1. Install Python 3
2. Install PyGame ("pip install pygame")
3. Run frog: "python frog.py"
In this challenge you are a frog in a game and need to find a way in this maze. Now there is multiple ways to solve this. You can find the Block that lets you passe though individuel, you can make all Block Abule to be passed through or you can simply while building the game in the draw function only make the blocks that can be passed though visible.
Here is the origianal code:
class Block(pygame.sprite.Sprite):
def __init__(self, x, y, passable):
super().__init__()
self.image = blockimage
self.rect = self.image.get_rect()
self.x = x
self.y = y
self.passable = passable
self.rect.top = self.y * tile_size
self.rect.left = self.x * tile_size
def draw(self, surface):
surface.blit(self.image, self.rect)
class Frog(pygame.sprite.Sprite):
def __init__(self, x, y):
super().__init__()
self.image = frogimage
...
This is the change i made to make the game hide blocks that are Not self.passable
def draw(self, surface):
if not self.passable:
surface.blit(self.image, self.rect)

Flag : welcome_to_11@flare-on.com