Game
Karlo's TD
3 months ago

โ€‹๐Ÿ“‹ Karlo's TD - Development Log Version 1.8.1 - "Live Metrics & Bug Fixes" Update


๐ŸŽฏ Major Improvements

๐Ÿ“Š Live Player Counter - Real-Time Activity Tracking A new visual indicator has been added to the main menu, showing the total number of active players across all platforms in real-time.

What It Tracks:

  • Players with the game open (menu, gameplay, any screen)

  • All platforms: Web (itch.io, CrazyGames), Desktop (Windows, Mac, Linux)

  • Updates every 30 seconds automatically

Visual Design:

  • Positioned next to the MULTIPLAYER button

  • Green pulsing indicator showing live status

  • Format: "โ— 42 ONLINE"

  • Hover tooltip shows exact player count

Technical Implementation:

  • Heartbeat System: Clients send a "ping" every 25 seconds to tracking server

  • Session Tracking: Server tracks all active sessions across platforms

  • Auto-Cleanup: Sessions expire after 60 seconds of inactivity

  • Cross-Platform: Desktop apps count towards the same total as web players

Why This Matters:

  • Social Proof: New players see active community engagement

  • Multiplayer Encouragement: See when others are online

  • Transparency: Real-time visibility into game population

  • Marketing: Shows game activity and growth

Infrastructure:

  • Deployed on Render.com with global availability

  • Lightweight tracking (< 1KB per minute per player)

  • Privacy-Friendly: Only tracks anonymous session IDs, no personal data

  • CORS-Enabled: Works across all domains (itch.io, CrazyGames, desktop)

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐Ÿ”งย Technical Changes

Backend Infrastructure:

  • New Tracking Server: Dedicated lightweight server for player counting

  • Endpoints Added:

    • POST /heartbeat - Player check-in system

    • GET /player-count - Returns total active players

    • GET /stats - Detailed platform breakdown

    • GET /ping - Health check endpoint

Client-Side Updates:

  • Heartbeat Mechanism: Sends status update every 25 seconds

  • Counter Refresh: Fetches total count every 30 seconds

  • Session Management: Automatically stops on page close/refresh

  • Platform Detection: Identifies itch.io vs CrazyGames vs web vs desktop

Performance:

  • Minimal Impact: ~2 HTTP requests per minute per player

  • Data Usage: < 100 bytes per heartbeat

  • No Lag: Runs asynchronously in background

  • Scalable: Can handle 10,000+ concurrent players

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐ŸŽจย UI/UX Changes

Main Menu:

  • New Element: Live player counter badge positioned right of MULTIPLAYER button

  • Animation: Pulsing green border with breathing effect

  • Counter Animation: Number scales briefly when count changes

  • Tooltip: "X players with game open" on hover

Visual Consistency:

  • Matches existing UI style (Orbitron font, neon borders)

  • Green theme indicates "live" status

  • Non-intrusive placement doesn't affect button layout

  • All buttons remain perfectly centered

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐ŸŒ Cross-Platform Compatibility

Desktop Apps: โœ… Windows Standalone - Fully Compatible โœ… Mac Standalone - Fully Compatible โœ… Linux Standalone - Fully Compatible

Web Platforms: โœ… itch.io - Fully Compatible โœ… CrazyGames - Fully Compatible โœ… Direct Web Build - Fully Compatible

All Platforms Count Together: The counter displays the combined total of players across ALL platforms. Example: 20 on web + 15 on Windows + 8 on Mac = 43 ONLINE

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐Ÿ“Š Performance Impact

Client-Side:

  • Network Usage: < 1 KB/min per player

  • CPU Impact: Negligible (async background requests)

  • Memory: ~50 bytes per session

  • No Frame Rate Impact

Server-Side:

  • Free Tier Capable: Runs on Render.com free tier

  • Can Handle: 1000+ players on free plan, 10k+ on paid

  • Response Time: < 100ms average

  • Uptime: 99.9% (with UptimeRobot monitoring)

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐Ÿ”’ Privacy & Security

Data Collection:

  • Anonymous Session IDs Only: No names, emails, or personal data

  • No Tracking: Only counts active sessions

  • Auto-Expiry: Sessions deleted after 60s of inactivity

  • GDPR Compliant: No personal data stored

What We Track: โœ… Anonymous session ID (random string) โœ… Platform type (itch.io / crazygames / web) โœ… Timestamp of last heartbeat

What We DON'T Track: โŒ IP Addresses โŒ User Names โŒ Email Addresses โŒ Location Data โŒ Browser Fingerprints โŒ Any Personal Information

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐Ÿ› Bug Fixes & Improvements

General:

  • Fixed counter positioning to not affect button centering

  • Optimized heartbeat timing to prevent server spam

  • Added error handling for network timeouts

  • Improved fallback behavior when server is offline

Edge Cases:

  • Counter shows "0" gracefully when server is starting

  • Handles CORS properly across all domains

  • Continues working even if tracking server goes down

  • Game functions normally regardless of counter status

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐ŸŽฎ Gameplay Impact

Player Experience:

  • No Gameplay Changes: This is purely a visual/social feature

  • No Performance Impact: Runs silently in background

  • Optional Feature: Game works identically if counter fails

  • Enhanced Social: See community activity at a glance

Multiplayer Benefits:

  • See when others are online before joining

  • Know if it's worth hosting a lobby

  • Community feels more alive and active

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•๐Ÿ“ˆ Statistics & Monitoring

Available Endpoints:

  • /player-count - Total active players (public)

  • /stats - Platform breakdown (public)

  • /ping - Server health check (public)

Example Stats Response:

json

		
			{ "totalActive": 156, "platforms": { "itch": 50, "crazygames": 30, "web": 76 }, "averageSessionDuration": 845 }
		
	

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐Ÿ”ฎ Looking Forward

Planned Improvements:

  • Peak hours indicator showing when most players are online

  • Historical player count graph (last 24 hours)

  • Platform-specific breakdowns in UI (optional toggle)

  • Integration with multiplayer lobby system

Community Goals:

  • ๐ŸŽฏ Milestone: 100 concurrent players

  • ๐ŸŽฏ Milestone: 500 concurrent players

  • ๐ŸŽฏ Milestone: 1000 concurrent players

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐Ÿ“ Version Summary

Version: 1.8.1 Release Date: February 2026 Update Type: Quality of Life + Social Features Breaking Changes: None Required Actions: None (automatic for all players)

New Features: 1

  • Live Player Counter

Technical Changes: 4

  • Tracking server deployment

  • Heartbeat system implementation

  • Session management logic

  • CORS configuration

Bug Fixes: Minor positioning and timing adjustments

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐ŸŒŸ Community Impact

Why This Update Matters:

  1. Transparency: Players can see real activity

  2. Social Proof: New players see active community

  3. Engagement: Encourages multiplayer participation

  4. Trust: Shows honest player counts

  5. Growth Tracking: Community can watch game grow

This is a small but meaningful update focused on community visibility and social engagement. The counter helps showcase our growing player base and encourages multiplayer interaction!

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐Ÿ™ Special Thanks

  • Community feedback for requesting player count visibility

  • Render.com for reliable free tier hosting

  • All players who make this counter worth having!

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐ŸŽฎ Platform Links

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

Version 1.8.1 represents a focused update on community visibility and social features. See you in-game! ๐ŸŽฎ๐ŸŒ

  • Karlo



0 comments

Loading...

Next up

Bandana Dee the Dream Friend

Heya there! I really wanted to show you all a little gameplay preview of the first boss fight i'm currently working on i hope you like it ^^

Another house i made long time ago.

Protege el conocimiento, salva la historia. Guardian of Lore es un platformer 2D en el que debes luchar para mantener viva la memoria de la mitologรญa latinoamericana. El juego llegarรก a Steam el 18 de mayo: https://steam.pm/app/1211740 #ScreenshotSaturday

"Our work is never over" they said.

The whole squad is here!

Interested? Follow me!

So here's the first of the zodiac signs i will make for the next weeks.

One of the most critical update for Sunblaze demo. Now you are able to pet a cat! Finally!

Microsoft Windows XP Unprofessional (windows logo prototype)

Today I tackled drawing different variations of facial expressions for one of the main characters in Eden. What do you think of it? :) Eden: https://gamejolt.com/games/Eden/592698