Skip to content

Repository files navigation

Loki

A competitive typing game with gacha mechanics, built with Tauri 2.x + React + TypeScript.

Features

  • Typing Game - Type prose passages with real-time feedback
  • Combo System - Build combos for higher scores, timer decays between keystrokes
  • Live Stats - WPM, score, and combo displayed during gameplay
  • Mistake Tracking - Wrong inputs advance but show in red, affecting accuracy
  • Gacha System - Earn currency from games to pull collectible keycaps
  • Keyboard Customization - Equip collected keycaps to personalize your keyboard
  • SQLite Persistence - High scores, inventory, and settings saved locally

Tech Stack

Layer Technology
Framework Tauri 2.x
Frontend React 18 + TypeScript
State Zustand
Styling Tailwind CSS 4.x
Animation Framer Motion
Database SQLite (tauri-plugin-sql)
Package Manager Bun

Getting Started

Prerequisites

Installation

# Install dependencies
bun install

# Run in development mode
bun run tauri dev

# Build for production
bun run tauri build

Controls

  • Space - Start game / Play again
  • Type - Match the highlighted characters
  • Navigation - Use bottom nav to switch between Type, Collection, and Editor

Scoring

Score Increment = (comboTimer / maxComboTimer × 10)² × combo
WPM = (characters / 5) / (time in minutes)
Accuracy = (correct characters / total characters) × 100

License

MIT

About

A competitive typing game with gacha mechanics, built with Tauri 2.x + React + TypeScript

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages