med-material / Whack_A_Mole_VR

Whack-A-Mole in VR
MIT License
3 stars 15 forks source link

OperationFeedback : Add operation feedback and Modifiers for test pattern #262

Closed tcaruchet closed 11 months ago

tcaruchet commented 11 months ago

Add Operation Feedback as a judgment feedback and Add the way to modify the type of judgment feedback directly inside test patterns

Feature: Operation Feedback πŸš€

Overview:

This update introduces the "Operation Feedback" feature. It's crafted to enhance the game's visual and auditory feedback based on speed and other dynamic factors.

MicrosoftTeams-image

Key Changes:

  1. PointerTrailHandler new:

    • Implemented logic to dynamically adjust trail length and color based on speed.
    • Integrated with SoundManager to adjust sound pitch based on speed.
  2. SoundManager:

    • Added functions to handle sound pitch in real-time.
    • Mechanisms to play, stop, and alter looping sounds.
  3. ModifiersManager:

    • Integrated with the new feedback system.
    • Optimizations and adjustments for improved performance.
  4. PatternInterface:

    • Added feature to change "judgment feedback" on-the-fly during pattern testing.
    • Introduced a new enum JudgementFeedback with the following values:
      • None
      • Operation
      • Action
      • Task
      • All
    1. MainScene_ST :
      • Added gameobjects PointerTrailR ans PointerTrailL at the same level of out of bounds arrows into BubbleDisplay gameobjects for the trail rendering.
      • Added references to PerformanceManager for each PointerTrail, SoundManager, and fields for Trail Sound and Color.
  5. Assets/Ressources/Audio :

    • Added trailPointerMoving.wav as Trail Pointer Moving from Bastian's finds

Goal:

These changes aim to bolster user experience by providing intuitive, responsive and multimodal feedback based on their actions and performance. Stephane Maurin has implemented Action Judgment Feedback, me Operation Judgment Feedback and Bastian will implement Task Judgment Feedback.

tcaruchet commented 11 months ago

I have updated the methods with encapsulation and fix sounds and visibility issues on trail. The perforamnce feedback change well in-execution now.