A research-driven interactive storytelling platform where users construct narratives by manipulating 3D cubes on a dynamic canvas.
The Cube Interactive Game reimagines storytelling as an interactive and participatory experience. Instead of consuming predefined narratives, users actively create stories by selecting, rotating, and connecting cubes representing narrative elements.
Each cube contains six faces with different story fragments. Users build coherent narratives through spatial arrangement and graph-based connections.
https://cube-interactive-game.vercel.app/
- Drag and reposition cubes freely
- Spatial storytelling representation
- Phase-based structured layout (5 phases, 25 cubes)
- CSS-based 3D cube rendering
- Multi-axis rotation
- Supports mouse, touch, and button controls
- Sequential cube connections
- Directed narrative flow
- Constraints enforced:
- No self-loop
- Single incoming and outgoing connection
- Cycle prevention
- Narrative fragments across cube faces
- User-driven story construction
- Combines interaction with creativity
Tracks:
- Cube interactions
- Drag and rotation events
- Session lifecycle
- Connection patterns
Enables behavioral analysis and storytelling research.
- Post-session feedback form (name, rating, review)
- Data stored in Supabase PostgreSQL database
- Optionally linked to session identifiers
- Enables:
- User experience evaluation
- Qualitative + quantitative insights
- System improvement
- Supabase backend
- PostgreSQL database
- Authentication support
- Row Level Security (RLS)
- Guided onboarding flow
- Real-time toast notifications
- Intuitive UI interactions
flowchart LR
A[User Browser] --> B[React 19 + Vite Frontend]
B --> C[Supabase Backend]
C --> D[(PostgreSQL Database)]
C --> E[Authentication]
C --> F[Row Level Security]
D --> G[Session Tracking]
D --> H[Event Logs]
D --> I[Connection Logs]
D --> J[Cube Engagement]
D --> K[User Feedback]
G --> L[Analytics Layer]
H --> L
I --> L
J --> L
K --> L
L --> M[Insights and Reporting]
- React 19
- Vite 7
- JavaScript, JSX, CSS
- Custom CSS 3D transforms
- Supabase
- PostgreSQL
- @supabase/supabase-js
- SQL-based event tracking
- ESLint
- Session Tracking → lifecycle events
- Event Logs → user interactions
- Connection Logs → narrative graph
- Cube Engagement → interaction depth
- User Feedback → ratings and reviews
- Analytics Layer → insights generation
git clone https://github.com/AngelG05/Cube-Interactive-Game.git
cd Cube-Interactive-Gamenpm installCreate a .env file:
VITE_SUPABASE_URL=your_url
VITE_SUPABASE_ANON_KEY=your_keynpm run dev- AI-generated story enhancement
- Multiplayer collaboration
- Advanced analytics dashboard
- Voice-based interaction
- Mobile optimization