Cozy Cuddle is a 4-player co-op survival horror game set in an abandoned children’s complex nineteen years after its shutdown. Players select distinct characters and work together to solve puzzles, uncover lore, and survive hostile animatronics.
Disclaimer: Development concluded prior to release after studio funding ran out. 3D character models, environment art, and maps showcased here are the property of PixelMob Studios and are displayed with permission for portfolio demonstration.
Role & Technical Leadership
I served as Technical Lead, owning client-server architecture, multiplayer infrastructure, core gameplay systems, and build tooling across a multi-month production cycle.
- Type-safe codebase migration: Led the transition from an initial 2024–2025 Luau prototype to a strictly typed
roblox-tsand Flamework architecture to enforce compile-time contracts and prevent runtime regressions. - Team coordination & studio standards: Managed task delegation, code architecture, and engineering workflows while coordinating fellow programmers during active production. Defined standardized Roblox
Workspacehierarchies for level areas, loot spawns, AI waypoints, and environment configuration so level design and engineering could scale in parallel. - UI direction & brand identity: Designed the game’s stylized black-and-white logo, authored vector UI layout concepts for core menus, and directed a UI designer before integrating designs into interactive Roblox React prototypes.
Multiplayer & Cross-Place Lobby Architecture
Built a production-hardened multiplayer lobby and matchmaking pipeline designed to prevent state desyncs across place teleports:
- Authoritative networking & bridge pattern: Engineered authoritative lobby and waiting-room services over Flamework networking, isolated from React UI via a custom bridge layer and a single-source room state projection (
ClientRoomData). - Lobby discovery & lifecycle management: Built a live-synced public lobby browser with search, capacity/privacy filters, and join-by-code/password validation. Enforced strict host lifecycle rules (host transfer, kick/ban authority, disband-on-host-leave, and empty-room teardown) alongside ready-gating and force-ready match starts.
- Password-safe friend invites: Integrated
SocialServicenative invites with eligibility checks and a server-initiatedaskJoinflow—allowing invited friends to join private lobbies directly without ever exposing the room password to the invitee’s client. - 3D lobby presentation: Implemented config-driven, tweened camera framing (map-swappable without code changes), per-member character rig spawning (
GameCharIdlookup with dummy fallbacks), and React nameplates portaled intoBillboardGui. - Cross-place teleport & arrival sync: Built a props-driven
WAITING X/4screen with teleport recovery handling, paired with a cross-place party arrival service (NotifyLoaded/SyncArrivals) andReplicatedFirstpreload gating so character and item actions remain locked until all party members finish loading. - Multi-client QA hardening: Validated host/guest transitions, mid-session disconnects, kick/ban edge cases, and topbar/layering regressions across Roblox Studio Local Server simulations and live peer-playtest environments.
Gameplay, AI & Character Systems
- Unified Agent & Component Movement: Built an
Agentabstraction allowing the same character pipeline to be driven by either human players or server-controlled AI bots. Engineered modular Movement (with jumping disabled for horror pacing) and 1st/3rd-person Camera systems using object composition for clean per-entity system assignment. - Animation-Graph Character Renderer: Implemented a custom character rendering pipeline driven by an animation graph and runtime state parameters.
- ECS + Behavior Tree AI (
Cakie AI): Architected an extensible AI framework combiningjecs(ECS) with behavior trees to drive animatronic patrol/chase loops and locker hiding interactions. - Cooperative Carry & Interaction Systems: Implemented a downed-state carry mechanic usable by both players and AI bots, backed by a custom Proximity Prompt Group and Authority system and a map voting system.
- Multi-Cell Spatial Inventory & Lore System: Built a Resident Evil-style multi-slot grid inventory in
roblox-ts+ React with region-touch checkpoint persistence viaProfileStore, alongside a dedicated lore document reader and client-rendered external visuals (flashlights, weapon muzzles) for equipped items. - Async Cutscene Sequencer: Created a sequence-based cutscene framework powered by asynchronous
Promisechaining for scripted narrative events.
Legacy Luau Prototype Systems (2024–2025)
Prior to migrating the codebase to roblox-ts, I engineered several interactive puzzle and world-interaction systems in native Luau:
- 2D Verlet-Rope Wire Generator Minigame
- Custom UI rope physics: Built a
Rope/VerletNodesolver simulating each wire as a chain ofGuiObjectnodes under gravity (Vector2(0, 196.2)), resolved across five distance-constraint iterations perHeartbeatin scaled UI space. - Randomized layouts & collision: Drawn from a weighted count distribution (2–5 wires) using color-coded templates (Red, Blue, Green, Yellow, Black) with shuffled endpoints and deliberately mismatched initial connections, sliding around circular UI barrier colliders.
- Tactile feedback & state tracking: Dragging a wire head lerps toward the cursor with tweened color states (green for valid matches, white for neutral, red for wrong grabs), locking solved wires in place and reporting completion through a shared
Reqstate table.
- Custom UI rope physics: Built a
- Procedurally Generated Control-Panel Puzzle
- Recursive UI collage generator: Assembles randomized panel grids by recursively nesting oriented
UIListLayoutcontainers over custom-textured templates, populating cells with modularKnob,Slider(horizontal/vertical, large/small), andLeverprefabs. - Multi-control physics & audio feedback: Each control registers a GUID-keyed entry in a
Reqmodule and disconnects its listeners upon completion:- Knobs snap across 32 detents over a
±157.5°range with ratchet audio against a hidden target angle. - Sliders resolve across 88 detents, pairing a sprite-sheet indicator lamp with proximity ping cues to guide alignment.
- Levers run damped spring-gravity Verlet integration with layered wood-groan, metal-creak, and metal-thump audio—physically jamming short of full throw until all other panel controls are solved.
- Knobs snap across 32 detents over a
- Central puzzle controller: A
StarterGuicontroller dispatches minigames onGenerator-tagged prompts, locks player input viaContextActionService, and activates the generator once allReqflags resolve.
- Recursive UI collage generator: Assembles randomized panel grids by recursively nesting oriented
- Animated Proximity Prompts
- Custom
BillboardGuireplacement: HookedProximityPromptServiceto clone aCozyPromptinterface onto prompt parents onPromptShown, dynamically bindingObjectText,KeyboardKeyCode, andHoldDuration. - Procedural motion & hold progress: Centralized easing presets in a
PromptTweenInfomodule while running aRenderSteppedloop to orbit a glowing star around a debug-tunable pivot, jitter keycap labels, scroll fill textures, and resize wrapped text containers. Hold interactions drive real-timeUIGradientkeypoint progress with smooth rollback on cancellation and clean connection teardown onPromptHidden.
- Custom
- Briefcase Interaction Prototype
- Raycast inspection & depth-scaled tooltips: Built an inspect-and-equip briefcase (
BRIEFCASE_PLACEHOLD) housing interactive tools (Flashlight, UV Flashlight, Mega Flashlight, Batteries, LockPicks) withHITBOX_volumes and authored open/close animations. ARenderSteppedcamera raycast (Includefilter) resolves hovered tools into aCurToolNamestate, toggling per-toolHighlightoutlines and driving a cursor-following, depth-scaled tooltip fed from aToolDescmetadata table.
- Raycast inspection & depth-scaled tooltips: Built an inspect-and-equip briefcase (
Reusable UI & Tooling Pipeline
- Reusable React UI Component Library: Engineered a modular UI toolkit featuring a Z-index-managed modal stack with portal rendering, confirm/cancel dialog semantics, settings tabs, and validated input controls (cyclers, sliders, text-box steppers, and length-validated text inputs) to reduce development overhead across menus.
- Component Storybook Workflow: Integrated
UILabswith Roblox React so UI components could be developed and visually verified in isolation without full game playtests.
Tech Stack
- Core & Architecture:
roblox-ts, Flamework (dependency injection, singleton lifecycles, typed networking),better-janitor(rbx-janitor) for stack-based memory cleanup, andLemonSignalfor doubly-linked-list event signaling. - AI & Simulation:
jecs(ECS) withjabbylive entity debugger,state-management-package-rbxts(FSM, behavior trees, GOAP, shared blackboard), andQuickZonefor high-throughput spatial region queries. - Networking & Input:
blinkIDL binary buffer networking with auto-generated.d.tsbindings (selected after benchmarkingLyncand ruling it out due to production stability bugs), plusIllusion-InputActionSystemwrapped with custom TypeScript definitions. - UI, Persistence & Debug Tooling:
Roblox React,UILabs,ProfileStore,t(runtime type validation),validate-tree(strictInstancehierarchy verification),centurion(decorator-based debug commands), andgizmo(3D spatial/AI debug rendering).