Back to projects
Nov 07, 2026
7 min read

Cozy Cuddle — Technical Lead

Technical leadership, multiplayer lobby architecture, and core gameplay systems for a 4-player co-op survival horror title
Cozy Cuddle Logo

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-ts and 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 Workspace hierarchies 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

Lobby Browser
Lobby Room
Private Lobby and Password
Loading Screen

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 SocialService native invites with eligibility checks and a server-initiated askJoin flow—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 (GameCharId lookup with dummy fallbacks), and React nameplates portaled into BillboardGui.
  • Cross-place teleport & arrival sync: Built a props-driven WAITING X/4 screen with teleport recovery handling, paired with a cross-place party arrival service (NotifyLoaded / SyncArrivals) and ReplicatedFirst preload 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

Cakie Character AI
Inventory Menu
  • Unified Agent & Component Movement: Built an Agent abstraction 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 combining jecs (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 via ProfileStore, 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 Promise chaining for scripted narrative events.

Legacy Luau Prototype Systems (2024–2025)

Animated Proximity Prompt
Briefcase System
Generator Minigame (Wire and Control Panel Puzzle)

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 / VerletNode solver simulating each wire as a chain of GuiObject nodes under gravity (Vector2(0, 196.2)), resolved across five distance-constraint iterations per Heartbeat in 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 Req state table.
  • Procedurally Generated Control-Panel Puzzle
    • Recursive UI collage generator: Assembles randomized panel grids by recursively nesting oriented UIListLayout containers over custom-textured templates, populating cells with modular Knob, Slider (horizontal/vertical, large/small), and Lever prefabs.
    • Multi-control physics & audio feedback: Each control registers a GUID-keyed entry in a Req module 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.
    • Central puzzle controller: A StarterGui controller dispatches minigames on Generator-tagged prompts, locks player input via ContextActionService, and activates the generator once all Req flags resolve.
  • Animated Proximity Prompts
    • Custom BillboardGui replacement: Hooked ProximityPromptService to clone a CozyPrompt interface onto prompt parents on PromptShown, dynamically binding ObjectText, KeyboardKeyCode, and HoldDuration.
    • Procedural motion & hold progress: Centralized easing presets in a PromptTweenInfo module while running a RenderStepped loop 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-time UIGradient keypoint progress with smooth rollback on cancellation and clean connection teardown on PromptHidden.
  • 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) with HITBOX_ volumes and authored open/close animations. A RenderStepped camera raycast (Include filter) resolves hovered tools into a CurToolName state, toggling per-tool Highlight outlines and driving a cursor-following, depth-scaled tooltip fed from a ToolDesc metadata table.

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 UILabs with 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, and LemonSignal for doubly-linked-list event signaling.
  • AI & Simulation: jecs (ECS) with jabby live entity debugger, state-management-package-rbxts (FSM, behavior trees, GOAP, shared blackboard), and QuickZone for high-throughput spatial region queries.
  • Networking & Input: blink IDL binary buffer networking with auto-generated .d.ts bindings (selected after benchmarking Lync and ruling it out due to production stability bugs), plus Illusion-InputActionSystem wrapped with custom TypeScript definitions.
  • UI, Persistence & Debug Tooling: Roblox React, UILabs, ProfileStore, t (runtime type validation), validate-tree (strict Instance hierarchy verification), centurion (decorator-based debug commands), and gizmo (3D spatial/AI debug rendering).