Skip to content
0

0xKid

Level Up with Every Line of Code

Created on 29th June 2025

•

0

0xKid

Level Up with Every Line of Code

The problem 0xKid solves

0xKid addresses the growing chasm between traditional schooling and skills in the digital age, especially among children. While coding is now a 21st-century imperative, it is intimidating, boring, or inaccessible to many young learners through traditional means.

✨ What 0xKid Offers:
Gamified Learning Experience
Engages coding in a fun and interactive way by expressing abstract programming ideas in terms of quests, challenges, and levels, similar to a video game.

Practice Hands-On
Students don't just read code—they write games, complete coding exercises, and see their changes come to life in front of them, reinforcing confidence and learning.

Safety Learning Environment: Provides an age-appropriate interface with moderation features, a distraction-free and safe space for creativity and discovery.

Global Learning Map:

Traces progress through various themed paths (e.g., from "Novice Forest" to "Master Citadel"), thereby allowing learners to visualize their journey and stay motivated. ???? Customized Growth: Provides avatars, rewards, XP points, and streaks, allowing for a gamified and customized growth system that motivates students to remain active and develop.

Challenges we ran into

🐞 Challenges I Ran Into
While building 0xKid, we encountered several technical and design-related hurdles that tested our creativity and problem-solving skills.

🎮 1. Phaser.js Integration with React
Phaser, being a game engine that directly manipulates the DOM canvas, didn’t play well with React’s virtual DOM. Rendering and rerendering scenes without full page reloads was a major issue.

✅ Solution:
We isolated the game logic inside a separate Phaser.Game instance and controlled its lifecycle using useEffect() and ref hooks. This ensured proper mounting and unmounting without DOM conflicts.

🧠 2. Managing Game State with React
Syncing user actions (like drag-drop object placement) with React’s state while also updating Phaser’s canvas in real-time was tricky. A small delay or mismatch would desync the UI and the game world.

✅ Solution:
We created a gameObjects state array that stores all elements added via the UI. This array was passed to the Phaser scene via an init() method using Phaser’s postBoot callback, allowing us to align the React state with game logic.

💾 3. Persistent User Profiles
Storing user data like avatars, XP, and preferences in a way that persists across sessions—while also ensuring real-time updates—posed both technical and security concerns.

✅ Solution:
We built a custom AuthContext using React Context API to manage and update user state globally. For now, we use localStorage for mock persistence and designed the system to be backend-ready for future scaling.

👩‍🎨 4. Designing a Kid-Friendly UI
Making the UI playful yet intuitive across various devices was an iterative design challenge. Kids needed to find features easily without getting overwhelmed.

✅ Solution:
We used TailwindCSS with responsive design utilities, added emojis and vibrant colors, and kept the layout simple. We also conducted peer reviews to make sure the UI was child-friendly and accessible.

Discussion

Builders also viewed

See more projects on Devfolio