Mind-Interfaces / THE-12-DAEMONS-OF-XMAS

THE-12-DAEMONS-OF-XMAS
Other
3 stars 1 forks source link

LVL-4.py #14

Open Mind-Interfaces opened 9 months ago

Mind-Interfaces commented 9 months ago

This is the "Hide & Seek" mini-game.

GOAL: Player must find all four hidden xmas "masks". The End.

Initial asset placement. ( This means creating the game asset file at the requested location. )

Utilize the corresponding art sprite sheets, or render new assets if overly inspired.

# Game assets
lilith_image = load_image('../IMG/CHAR/lilith_sprite.png')
mask_images = {
    'Famine': load_image('../IMG/SPRITE/famine_mask.png'),
    'War': load_image('../IMG/SPRITE/war_mask.png'),
    'Pestilence': load_image('../IMG/SPRITE/pestilence_mask.png'),
    'Death': load_image('../IMG/SPRITE/death_mask.png')
}
background_image = load_image('../IMG/BACKGROUND/tower_background.png')
background_music = load_sound('../BGM/LVL-04/background_music.wav')
mask_pickup_sound = load_sound('../BGM/SFX/mask_pickup_sound.wav')
final_showdown_music = load_sound('../BGM/SFX/final_showdown_music.wav')

# Additional Game Variables
traps = []  # Coordinates for traps
trap_image = load_image('../IMG/SRITE/trap_sprite.png')
trap_triggered_sound = load_sound('../BGM/SFX/trap_sound.wav')
score = 0

Once we get the initial assets in place then we'll frame the tile engine (like LVL-3.py)

No tile assets defined in the code so that'll be rolled in then.

That just leaves:

# Show Victory Screen Function
def show_victory_screen():
    victory_image = load_image('../IMG/BACKGROUND/victory_screen.png')
    screen.blit(victory_image, (0, 0))
    pygame.display.flip()
    time.sleep(5)  # Display for 5 seconds

# Show Defeat Screen Function
def show_defeat_screen():
    defeat_image = load_image('../IMG/BACKGROUND/defeat_screen.png')
    screen.blit(defeat_image, (0, 0))
    pygame.display.flip()
    time.sleep(5)  # Display for 5 seconds

Two different endings.. Good Ending and Bad Ending..

Both lead to game over (from finding Lucifuge / Death).