Devlogs
New level! new enemies!
New Enemy Types Added: Introduced spiders (etype 10), mutated spiders (etype 11), ceiling-dropping spiders (etype 12), ghosts (etype 13), banshees (etype 14), and zombies (etype 15). These are integrated into procedural generation, especially in haunted mansion (currentLevel == 5) and cemetery modes, with specific behaviors like dropping from ceiling, flying, shooting for banshees, and slow movement for zombies.
Haunted Mansion Level: Added a new level (currentLevel == 5) accessible via a red front door (PlatformType.HAUNTED_DOOR). Includes custom platform textures with webs and cracks, darker sky, and enemy weights favoring new haunted enemies.
Web Door Mechanic: Added PlatformType.WEB_DOOR in haunted mansion, requiring pressing 'E' twice to pass through (tracked by webPressCount). It's the only exit, displayed with web lines and interaction prompt.
Cemetery Mode: Upon exiting haunted mansion via web door, enters cemetery mode (cemeteryMode = true) with zombie enemies (etype 15), gray platforms resembling tombstones, darker sky, and a fixed length (500 units) before returning to normal overworld.
Shop NPC and Menu Access: Added NPC class for feline-looking shopkeeper in haunted mansion. Press 'E' near NPC to open shop menu. Shop now includes potion purchases: Thin Potion (ptype 0, 20 cookies), Speed Potion (ptype 1, 20 cookies), Bigger Potion (ptype 2, 20 cookies), Dash Potion (ptype 3, 20 cookies), with descriptions in menu.
Increased Unicorn and Leprechaun Frequency: In rainbow world (currentLevel == 4), increased weights for unicorns (etype 8) and leprechauns (etype 9) from 1.5prog to 2.5prog for more frequent appearances.
Control Improvements: Addressed finicky/unresponsive controls by ensuring jumpRequested and downRequested are properly handled in draw(), with better controller input detection and key binding flexibility. Store button now reliably appears when totalCookies >= 50.
Platform and Sky Updates: Added haunted-specific textures for SOLID platforms (purple background with webs/cracks) and cemetery (gray with tombstone elements). Sky creation now supports haunted and cemetery modes with darker gradients.
Enemy Drawing Enhancements: Added custom drawing for new enemies: spiders with legs and eyes, mutated with larger eyes, ceiling with web line, ghosts semi-transparent with eyes, banshees rectangular with red eyes, zombies green with red eyes.
Interaction Prompts: Added prompts for web door ("Press E twice to go through") and NPC ("Press E to interact").
Cemetery Gate Exit: Cemetery ends automatically after 500 units traveled, resetting to normal mode (implied gate reached without zombies eating player, but player can still die to zombies).
Bug Fixes and Balancing: Ensured store button appears at 50 cookies, adjusted enemy spacing and probabilities, added durability handling for weapons against new enemies, and integrated new types into collision and update logic.