Mobile game · iOS / Android
Maghribi
Maghribi is a mobile quiz game on Moroccan history and culture, designed around retention and social competition. A personal project taken end to end: game design, full-stack development and art direction (fully in-house identity — zellige, terracotta/gold/green palette, “Jni the genie” mascot). Game logic runs server-side to guarantee security and fairness.
- React Native
- Expo
- TypeScript
- Supabase
- PL/pgSQL
Gallery
Modules
- 01
Daily challenge & national leaderboard
17 identical questions for everyone each day: comparable scores and a fair country-wide leaderboard. A daily return loop that brings players back.
- 02
Snappy, dynamic scoring
Speed-based points (the faster you answer, the more you score), a 3-round escalation (shrinking timer 12→9→7 s, points ×1/×2/×3) and a combo multiplier. Every game is tense.
- 03
Power-ups, coins & avatar collection
Strategic power-ups (50/50, +time, skip, ×2) bought with a currency earned by playing, disabled in ranked mode for fairness. A mascot in themed costumes, server-side random chests and a legendary avatar unlocked by completing a collection.
- 04
RPG progression & retention
XP curve decoupled from score, levels and honorific titles (Beginner → Legend of Morocco), daily streak with an animated medal, illustrated achievements and rewarding feedback (confetti, celebrations).
- 05
Anti-cheat architecture
All scoring is computed server-side (Postgres security definer functions). The client never knows the correct answer: questions exposed via a public view that hides the solution, answer positions shuffled per session and stored server-side.
- 06
Game logic in the database
Score, combo, speed, XP, coins, chest draws, legendary unlocks: everything lives in Postgres RPC (SQL / PL/pgSQL), guaranteeing consistency and security. Guest auth, real-time persistence, relational model (profiles, sessions, progression, inventory).
Technologies
- React Native
- Expo
- TypeScript
- Supabase
- PL/pgSQL
- Daily challenge: 17 identical questions for everyone, fair national leaderboard
- Snappy scoring: speed-based points, 3 rounds (12→9→7 s, ×1/×2/×3), combos
- Gacha-lite avatar collection, coin economy and strategic power-ups
- Anti-cheat: all scoring in Postgres RPC, correct answer never exposed to the client
More work
Your next product starts with a conversation.
Tell us about your brand and your ambition. We come back with a clear path within 24h.
Start the conversation

