reaper-arcade-hub 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/js/app.js CHANGED
@@ -220,6 +220,11 @@ class ReaperHubApp {
220
220
  if (window.reaperSFX) window.reaperSFX.playClick();
221
221
  }
222
222
 
223
+ getUserPFP(username) {
224
+ const clean = (username || 'Reaper').toLowerCase().replace(/[^a-z0-9]/g, '');
225
+ return `https://api.dicebear.com/7.x/bottts-neutral/svg?seed=${clean || 'reaper'}&backgroundColor=040a16`;
226
+ }
227
+
223
228
  updateUserUI() {
224
229
  const nameDisplay = document.getElementById('header-username-display');
225
230
  const pfpDisplay = document.getElementById('header-user-pfp');
@@ -229,7 +234,9 @@ class ReaperHubApp {
229
234
 
230
235
  const username = this.currentUser.username || 'Reaper';
231
236
  if (nameDisplay) nameDisplay.textContent = username;
232
- if (pfpDisplay) pfpDisplay.textContent = username.charAt(0).toUpperCase();
237
+ if (pfpDisplay) {
238
+ pfpDisplay.innerHTML = `<img src="${this.getUserPFP(username)}" style="width: 100%; height: 100%; border-radius: 4px; object-fit: cover;" alt="PFP" />`;
239
+ }
233
240
 
234
241
  const rank = this.currentUser.rank || 'member';
235
242
  if (rankBadge) {
@@ -732,7 +739,9 @@ class ReaperHubApp {
732
739
 
733
740
  return `
734
741
  <div class="chat-message-row">
735
- <div class="msg-pfp ${isOwner ? 'msg-pfp-owner' : isMod ? 'msg-pfp-mod' : ''}">${initial}</div>
742
+ <div class="msg-pfp ${isOwner ? 'msg-pfp-owner' : isMod ? 'msg-pfp-mod' : ''}">
743
+ <img src="${this.getUserPFP(msg.username)}" style="width: 100%; height: 100%; object-fit: cover; border-radius: 4px;" alt="PFP" />
744
+ </div>
736
745
  <div class="msg-content-box">
737
746
  <div class="msg-header-meta">
738
747
  <span class="msg-author-name" style="${isOwner ? 'color: var(--gold-owner);' : isMod ? 'color: var(--green-neon);' : ''}">${this.escapeHtml(msg.username || 'Player')}</span>
package/main/js/app.js CHANGED
@@ -220,6 +220,11 @@ class ReaperHubApp {
220
220
  if (window.reaperSFX) window.reaperSFX.playClick();
221
221
  }
222
222
 
223
+ getUserPFP(username) {
224
+ const clean = (username || 'Reaper').toLowerCase().replace(/[^a-z0-9]/g, '');
225
+ return `https://api.dicebear.com/7.x/bottts-neutral/svg?seed=${clean || 'reaper'}&backgroundColor=040a16`;
226
+ }
227
+
223
228
  updateUserUI() {
224
229
  const nameDisplay = document.getElementById('header-username-display');
225
230
  const pfpDisplay = document.getElementById('header-user-pfp');
@@ -229,7 +234,9 @@ class ReaperHubApp {
229
234
 
230
235
  const username = this.currentUser.username || 'Reaper';
231
236
  if (nameDisplay) nameDisplay.textContent = username;
232
- if (pfpDisplay) pfpDisplay.textContent = username.charAt(0).toUpperCase();
237
+ if (pfpDisplay) {
238
+ pfpDisplay.innerHTML = `<img src="${this.getUserPFP(username)}" style="width: 100%; height: 100%; border-radius: 4px; object-fit: cover;" alt="PFP" />`;
239
+ }
233
240
 
234
241
  const rank = this.currentUser.rank || 'member';
235
242
  if (rankBadge) {
@@ -732,7 +739,9 @@ class ReaperHubApp {
732
739
 
733
740
  return `
734
741
  <div class="chat-message-row">
735
- <div class="msg-pfp ${isOwner ? 'msg-pfp-owner' : isMod ? 'msg-pfp-mod' : ''}">${initial}</div>
742
+ <div class="msg-pfp ${isOwner ? 'msg-pfp-owner' : isMod ? 'msg-pfp-mod' : ''}">
743
+ <img src="${this.getUserPFP(msg.username)}" style="width: 100%; height: 100%; object-fit: cover; border-radius: 4px;" alt="PFP" />
744
+ </div>
736
745
  <div class="msg-content-box">
737
746
  <div class="msg-header-meta">
738
747
  <span class="msg-author-name" style="${isOwner ? 'color: var(--gold-owner);' : isMod ? 'color: var(--green-neon);' : ''}">${this.escapeHtml(msg.username || 'Player')}</span>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "reaper-arcade-hub",
3
- "version": "2.0.0",
4
- "description": "Reaper Hub v2.0 - Ground-Up Complete Recode, 788 High-Speed HTML5 Games, Launch Options (In-Site, About:Blank & Fullscreen), Clean Cyberpunk Minimalist Architecture, Zero Emojis, 1-Click Free Key Auth & Realtime Playtime Leaderboard",
3
+ "version": "2.0.1",
4
+ "description": "Reaper Hub v2.0.1 - Ground-Up Complete Recode, 788 High-Speed HTML5 Games, Multi-Mode Launcher (In-Site, Disguised About:Blank & Fullscreen), Cyber Robot Vector PFPs, Minimalist Zero-Emoji Dark Aesthetic, 1-Click Free Key Auth & Playtime Leaderboard",
5
5
  "main": "main/index.html",
6
6
  "unpkg": "main/index.html",
7
7
  "jsdelivr": "main/index.html",