@@ -24,6 +24,9 @@ public partial class NotePlacementBar : Node
2424 [ Export ]
2525 private Sprite2D _nextNote ;
2626
27+ [ Export ]
28+ private CpuParticles2D fullBarParticles ;
29+
2730 private Note [ ] _noteDeck ;
2831 private Queue < Note > _noteQueue = new Queue < Note > ( ) ;
2932
@@ -105,13 +108,6 @@ private Note GetNote(bool getNextNote = false)
105108 return result ;
106109 }
107110
108- public void ComboText ( string text )
109- {
110- TextParticle newText = new TextParticle ( ) ;
111- AddChild ( newText ) ;
112- newText . Text = text + $ " { _currentCombo } ";
113- }
114-
115111 // Hitting a note increases combo, combo mult, and note placement bar
116112 public void HitNote ( )
117113 {
@@ -120,6 +116,7 @@ public void HitNote()
120116 _currentBarValue = Math . Min ( _currentBarValue + comboMult , MaxValue ) ;
121117 UpdateNotePlacementBar ( _currentBarValue ) ;
122118 UpdateComboMultText ( ) ;
119+ //fullBarParticles.Emitting = CanPlaceNote();
123120 }
124121
125122 // Missing a note resets combo
@@ -136,6 +133,7 @@ public Note PlacedNote()
136133 _currentBarValue -= ( int ) ( _currentNoteInstance . CostModifier * MaxValue ) ;
137134
138135 UpdateNotePlacementBar ( _currentBarValue ) ;
136+ //fullBarParticles.Emitting = false;
139137 return GetNote ( ) ;
140138 }
141139
@@ -149,6 +147,11 @@ private void DetermineComboMult()
149147 comboMult = _currentCombo / notesToIncreaseCombo + 1 ;
150148 }
151149
150+ public int GetCurrentCombo ( )
151+ {
152+ return _currentCombo ;
153+ }
154+
152155 private void UpdateNotePlacementBar ( int newValue )
153156 {
154157 notePlacementBar . Value = newValue ;
0 commit comments