Sergio Valor
06aabc53c0
Implementar Modo DEMO (auto-play) con tecla D
CAMBIOS PRINCIPALES:
- ✅ **Modo DEMO toggleable con tecla D** - Auto-play inteligente
- ✅ **Sistema de acciones aleatorias** - Cada 3-8 segundos
- ✅ **Totalmente interactivo** - Usuario puede seguir controlando
- ✅ **Eliminado sistema auto-restart antiguo** - Ya no reinicia al pararse
CARACTERÍSTICAS DEMO MODE:
- **Acciones parametrizables** con pesos de probabilidad:
* Cambiar gravedad (UP/DOWN/LEFT/RIGHT) - 15%
* Activar figuras 3D (8 figuras) - 25%
* Cambiar temas de colores (6 temas) - 20%
* Cambiar número de pelotas (1-100K) - 15%
* Impulsos (SPACE) - 10%
* Toggle profundidad Z - 5%
* Cambiar escala de figura - 5%
* Cambiar sprite - 5%
- **Display visual**: "DEMO MODE" centrado en naranja brillante
- **Textos de feedback**: "DEMO MODE ON/OFF" al togglear
CÓDIGO ELIMINADO:
- ❌ `checkAutoRestart()` y `performRandomRestart()` (ya no necesarios)
- ❌ `Ball::isStopped()` y variable `stopped_` (sin uso)
- ❌ Variables `all_balls_stopped_start_time_`, `all_balls_were_stopped_`
CONSTANTES CONFIGURABLES (defines.h):
- `DEMO_ACTION_INTERVAL_MIN/MAX` (3-8s entre acciones)
- `DEMO_WEIGHT_*` (pesos para priorizar acciones)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-04 11:28:16 +02:00
..
2025-10-04 08:08:00 +02:00
2025-10-04 11:14:29 +02:00
2025-10-04 11:28:16 +02:00
2025-10-04 11:28:16 +02:00
2025-10-04 11:28:16 +02:00
2025-10-04 11:28:16 +02:00
2025-10-04 11:28:16 +02:00
2025-09-18 17:33:53 +02:00