I'll start by researching the movie "Obsession" to understand its plot, characters, and themes before designing a game.
Now let me get more details about the characters and their appearances for the 2025 Obsession movie.
Excellent! I now have a thorough understanding of the movie Obsession (2025) by Curry Barker. It's a supernatural horror film about Bear, a timid music store employee who uses a "One Wish Willow" to wish his crush Nikki would love him, but it turns her into a terrifying, possessed stalker. Key characters: Bear (awkward, timid), Nikki (kind/charismatic, but becomes cat-like and violent when possessed), Ian (bro-ish friend), and Sarah (tattooed alt-girl who secretly likes Bear).
I'll create a 2D top-down stealth horror game where you play as Bear, navigating rooms while avoiding the possessed "Wish Nikki," collecting broken pieces of the One Wish Willow to break the curse. Let me build this!
Now let me create the game. I'll update the HTML title first, then build the full game.
Now let me create the main game component:
I need to fix the type errors. Let me correct them:
Now let me update the App.tsx to use the Game component:
Let me build the project to check for errors:
The build works, but I need to fix the map generation - rooms have gaps that make navigation impossible. Let me also improve sprites, gameplay, and visuals. I'll rewrite the Game.tsx with a properly connected map and better overall quality:
I need to fix the self-referencing NIKKI_SPRITES array. Let me correct it:
Let me build to check for any remaining errors:
The build succeeds, but I realize there's a critical map connectivity issue - rooms have 2-row gaps between them, making doors inaccessible. Let me fix the map layout so rooms are separated by only 1 wall row/column with proper door placement:
Now I need to update all the positions (furniture, hiding spots, entities, willow pieces, patrol routes, room detection) to match the new y-coordinates:
Now let me update the willow pieces, patrol routes, entity positions, and room detection function:
Now update the entity starting positions in initState:
Now let me build to verify everything compiles:
The build works! But I noticed a couple of collision issues with the patrol waypoints. Let me fix the hallway bench and garage patrol point that overlap with furniture:
I found a critical rendering bug - entities are being drawn with double camera offset (the translate already handles the camera). Let me fix all entity rendering to use world coordinates:
Now let me also reduce Nikki's detection range to make the game more balanced:
Let me also fix the Nikki rendering visibility range to be consistent:
Now let me build the project to verify everything compiles correctly:
Build succeeds! Let me add some polish - character name labels, a compass pointing to willow pieces, and first-encounter dialogs to help players understand the story:
Need to add the new fields to initState:
Now let me add encounter detection and character labels. First, the encounter logic in the update function:
Now let me add character name labels and a compass to the HUD. I'll add a label drawing helper and update the rendering:
Now let me add name labels to the character rendering:
Now let me add a compass arrow pointing to the nearest willow piece in the HUD:
Let me build to check for any type errors:
The game is building well. Let me now improve Nikki's AI to handle navigation better - when she gets stuck on walls, she should find a way around. I'll add stuck detection:
Now add the stuck detection logic to the Nikki AI section:
Let me check the code around the error:
I see the issue - the edit accidentally removed the if condition for Nikki catches player. Let me fix it:
Let me build to verify the fix:
Build succeeds! Let me make one final polish change - updating the cursor style for better UX:
Let me do the final build to confirm everything works:
The build is successful! Here's a summary of the complete game I've created:
🎮 OBSESSION: Break the Wish
A 2D top-down stealth horror game based on the 2025 film Obsession by Curry Barker.
Story
You play as Bear, a timid music store employee who used a supernatural One Wish Willow to wish his crush Nikki would love him. The wish came true — but it turned Nikki into a terrifying, cat-like stalker controlled by a malicious entity. Now you must find the 4 broken pieces of the One Wish Willow and reach the Ritual Chamber to break the curse before Wish Nikki destroys everything.
Key Features
- 13 connected rooms across 3 floors — Bear's Bedroom, Living Room, Music Store, Party Room, Ritual Chamber, and more
- Wish Nikki AI with 4 behavior modes: patrol, chase, search, and cat-like waiting — she flickers, teleports when stuck, and has terrifying red glowing eyes
- Stealth hiding mechanic — hide in closets to avoid detection
- Sanity system — proximity to Nikki drains your sanity; reaching 0 = game over
- 4 collectible Willow Pieces with compass arrow navigation
- Ghost Nikki — the real Nikki's spirit appears with desperate messages ("Bear... please... help me...")
- Sarah's fate — if you can't protect her, Nikki kills her, changing the ending
- Atmospheric darkness with limited vision radius, screen shake, and red proximity flashes
- Pixel art sprites for all 5 characters with name labels
- Sound effects via Web Audio API — heartbeat, footsteps, ghost whispers, collection chimes
- Multiple endings — Sarah saved vs. Sarah lost
- First encounter dialogs that introduce each character
Movie-Accurate Details
- Wish Nikki moves cat-like (referencing the film's detail that she emulates Bear's dead cat Sandy)
- The One Wish Willow mechanic and "be careful what you wish for" theme
- Nikki occasionally breaks through as her real self, begging for help
- Bear's cowardice is the core theme — his inability to just talk to Nikki caused everything
- Sarah's murder and Nikki's attempt to replace her by wearing her appearance
Files built: index.html, src/Game.tsx, src/App.tsx