training-academy/images
fritzsenpai aa3b7d8a1c Fix game freeze with no images loaded
Critical fix for desktop startup:
- Fixed startGame() function to properly handle new customImages object format
- Previously trying to call .length on object instead of array
- Added proper backward compatibility checking for both old array and new object formats
- Added comprehensive logging to debug image management screen freeze
- Now correctly counts custom images from both task and consequence categories

Fixes error where:
- User clicks Start Game with no images
- Game redirects to image management screen but freezes
- TypeError: customImages.length when customImages is {task: [], consequence: []}

Error resolved with proper object structure handling and logging.
2025-09-25 21:03:12 -05:00
..
consequences Fix game freeze with no images loaded 2025-09-25 21:03:12 -05:00
tasks Fix image deletion to remove files from disk 2025-09-25 20:43:57 -05:00
README.md Initial commit: Task Challenge Game v1.4 2025-09-25 19:41:06 -05:00
image-manifest.json Initial commit: Task Challenge Game v1.4 2025-09-25 19:41:06 -05:00

README.md

How It Works:

The game automatically finds and uses ANY images you put in this folder!

Supported Formats:

  • JPG (.jpg)
  • JPEG (.jpeg)
  • PNG (.png)
  • GIF (.gif) - Animated GIFs work too! 🎬

Super Simple Usage:

  1. Drop any images into this images/ folder
  2. Use any filenames you want - the game will find them
  3. Start the game - it will randomly select from your images

Examples of what you can name your files:

  • photo1.jpg, photo2.png, photo3.jpeg, funny.gif
  • cat.jpg, dog.png, sunset.jpeg, dance.gif
  • a.jpg, b.jpg, c.jpg, animated.gif
  • 1.png, 2.png, 3.png, party.gif
  • random_image.jpg, my_pic.png, cool_animation.gif
  • ANY NAME YOU WANT!

Recommendations:

  • Image Size: 200x200 pixels works best
  • GIFs: Keep file sizes reasonable for smooth gameplay
  • Add at least 3-5 images for variety
  • More images = more surprises!
  • Mix static and animated for visual variety

No Images?

If no images are found, the game creates a placeholder automatically.

That's it!

No coding required - just add images and GIFs and play! 🎮