Moodle Plugins directory: PlayerHUD | Moodle.org
PlayerHUD
Blocks ::: block_playerhud
Maintained by
Jean Lúcio Santos Evangelista
A gamification block for Moodle with XP progression, levels, inventory system, and ranking.
Latest release:
15 sites
185 downloads
7 fans
Current versions available: 1
⚠️ Required Companion Plugin: PlayerHUD requires the PlayerHUD Filter to be installed and enabled. Without it, item drops will not render in course content.
PlayerHUD – Structured Gamification Engine for Moodle
The PlayerHUD Block is a modular gamification system for Moodle that introduces structured progression mechanics based on XP, Levels, Inventory, and Ranking.
It provides a dynamic HUD (Head-Up Display) inside courses, allowing students to track their progress in real time while teachers configure engagement mechanics aligned with pedagogical objectives.
✨ Features
- 🎮 XP & Level System: Automatic level progression based on earned XP.
- 🏅 Level Tiers: The level badge changes color at every 5-level milestone (e.g., 5, 10, 15, 20), giving students a visual sense of progression.
- 🎛 Configurable Progression: Teachers define the number of levels and XP required for each level.
- 🎒 Inventory System: Collectible items with configurable Cooldown (Recharge Time) and usage limits.
- 📜 Quest System: NEW Create manual, collection, activity, reputation, and chapter quests with a built-in auto-suggestion tool.
- 🎭 RPG Characters: NEW Students choose characters with unique portraits, lore, and tiers. Items can be restricted to specific characters.
- 📖 Story & Chapters: NEW Interactive branching narratives with scenes, choices, and chapter progression tied to quests.
- 🏪 NPC Shop & Trades: Allow students to exchange collected items for rewards using a secure, rules-based transaction system.
- 📊 Analytics & Reports: Comprehensive audit logs, game economy tracking, progress visualization, and quest completion charts.
- 📍 Drop System: Place collectible items across course sections (labels, pages, descriptions) using shortcodes provided by the PlayerHUD Filter.
- 🎁 Auto Drop Distribution: NEW Automatically distribute item drops to all enrolled students with undo support.
- 🏆 Ranking System: Leaderboard with tie-breaker logic and visibility controls.
- 🔐 Optional Participation: Students may choose to opt in or opt out of the gamification system.
- ⚡ Real-Time Updates: AJAX-based collection using Moodle’s core API.
- 🤖 AI Generator Tools: Optional productivity tools for generating items, story scenes, and character oracles.
- 📱 Mobile-Ready: Compatible with Moodle web services.
🎓 Educational Purpose
PlayerHUD is designed to encourage active engagement, reinforce mastery-based progression, and support competitive/cooperative learning dynamics while keeping pedagogical integrity intact.
📖 Usage
- Install the PlayerHUD Filter and enable it in your site's filter settings. This step is required before using the block.
- Add the PlayerHUD Block to your course.
- Access the Management Panel (Teacher role required) and consult the dedicated Teacher Help page NEW for Game Masters.
- Configure:
- Items and XP values
- Number of levels and XP thresholds
- Drop placements and Auto drop distribution NEW
- Quests, RPG Characters, and Stories NEW
- NPC Trades and exchange rules
- Recharge time (Cooldown) and Collection limits
- Students collect items directly within course sections, complete quests, progress through the story, and trade in the Shop.
- XP, levels, and ranking update automatically. Monitor everything via the Reports tab.
🔗 Ecosystem Integration
- PlayerHUD Filter (Required)
- PlayerHUD Availability Restriction (Optional) — Restricts access to activities based on the student's Level or items.
🔎 Third-party Service Disclosure (AI)
PlayerHUD includes optional AI-powered features for generating items, story scenes, and character oracle responses. These features are not required. The plugin works fully without any external AI service.
- Supported Providers: Google Gemini, Groq, and custom OpenAI-compatible APIs NEW.
- Bring Your Own Key (BYOK): The plugin does not provide API keys. Keys and custom Base URLs must be configured by the institution.
- Data Privacy: No student data, prompts, or raw responses are stored. Data is only transmitted when a teacher explicitly uses the feature to generate course content.
⚙️ Technical Reliability & Security
- Core Standards: Fully compliant with Moodle coding and accessibility (WCAG 2.1 AA) standards.
- Robust Architecture: Capability-based access control, strict
require_sesskey()protection against CSRF, rigorous server-side validation for game rules, and automated test coverage (including new PHPUnit coverage for RPG tables NEW). - Data Security & Privacy: Full implementation of the Moodle Privacy API (GDPR compliant), Backup & Restore support (now extended to all RPG tables NEW), and privacy-aware ranking participation.
- Scalable & API Ready: Optimized database structure with memory-efficient bulk queries that avoid redundant database calls, and fully Moodle External API compliant.
- Bring Your Own Key (BYOK): The plugin does not provide API keys. Keys must be configured by the site administrator or individually by teachers.
Contributors
Jean Lúcio Santos Evangelista (Lead maintainer)
Please login to view contributors details and/or to contact them
Error
X
标
AI离线:Gemini错404
OK 这是报出的错误
非常感谢您的留言以及对 PlayerHUD 的支持。您的建议非常棒,我完全理解您所在地区的 API 网络限制问题。
我会采纳您的建议,并在插件的下一次更新中加入自定义 API 端点(兼容 OpenAI 格式,可用于阿里云、腾讯等模型)的选项。
请您密切关注 PlayerHUD 的后续发布版本。再次感谢您的反馈!
再次感谢您对 PlayerHUD 的支持和耐心等待。
我很高兴地通知您,您之前建议的功能现在已经可用了!在最新版本的插件中,我们已经加入了自定义 AI API 端点的设置选项。现在您可以配置并使用兼容 OpenAI 格式的任何其他大语言模型了,比如您提到的阿里云或腾讯模型。
欢迎您更新并体验。如果您在配置或使用过程中遇到任何问题,请随时在这里留言告诉我。
祝好!