Skip to content

Conversation

@MohammadHamidi
Copy link

Complete migration of the JavaScript/React web app to Unity engine:

Core Systems:

  • GameManager singleton for state management
  • SceneController for mode/scene transitions
  • Event-driven architecture for UI updates

Classification System:

  • NaiveKNNClassifier replacing TensorFlow KNN
  • NaiveSVMClassifier for word modes
  • Simple attribute-based classification (no ML dependencies)

Fish Generation:

  • Procedural fish generation with 19 bodies, 18 eyes, 15 mouths
  • Color tinting system for sprite components
  • FishRenderer for sprite assembly

Animation:

  • FishAnimator with bobbing (sine wave) motion
  • S-curve easing for scanning pauses
  • Smooth scene transitions

UI Components:

  • TrainingUI with Yes/No buttons
  • PredictionUI with colored confidence frames
  • PondUI for results visualization
  • WordSelectionUI for short/long modes
  • GuideUI with typing text effect
  • MainMenuUI for mode selection
  • ConfirmationDialog component
  • AIBot with expression states

Audio:

  • SoundManager with category-based playback
  • Support for yes/no/sort sounds

All 5 game modes supported:

  • Fish vs Trash
  • Creatures vs Trash Demo
  • Creatures vs Trash
  • Short (6 adjectives)
  • Long (15 adjectives)

Assets copied from original project to Unity sprite/audio folders.

Complete migration of the JavaScript/React web app to Unity engine:

Core Systems:
- GameManager singleton for state management
- SceneController for mode/scene transitions
- Event-driven architecture for UI updates

Classification System:
- NaiveKNNClassifier replacing TensorFlow KNN
- NaiveSVMClassifier for word modes
- Simple attribute-based classification (no ML dependencies)

Fish Generation:
- Procedural fish generation with 19 bodies, 18 eyes, 15 mouths
- Color tinting system for sprite components
- FishRenderer for sprite assembly

Animation:
- FishAnimator with bobbing (sine wave) motion
- S-curve easing for scanning pauses
- Smooth scene transitions

UI Components:
- TrainingUI with Yes/No buttons
- PredictionUI with colored confidence frames
- PondUI for results visualization
- WordSelectionUI for short/long modes
- GuideUI with typing text effect
- MainMenuUI for mode selection
- ConfirmationDialog component
- AIBot with expression states

Audio:
- SoundManager with category-based playback
- Support for yes/no/sort sounds

All 5 game modes supported:
- Fish vs Trash
- Creatures vs Trash Demo
- Creatures vs Trash
- Short (6 adjectives)
- Long (15 adjectives)

Assets copied from original project to Unity sprite/audio folders.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants