private void DrawNoteMiss(int pos) { Nova_Particle p = new Nova_Particle(); p.SetTexture((Texture2D)Nova_DataBase.GetResource("NOTE_HIT_" + (pos + 1).ToString()), SpriteEffects.None, Color.Red); p.SetPosition(offNotes[pos].pos); p.SetInflateSpeed(6, 20, 6, 20, Nova_Particle.GrowingType.asc); p.SetLifeTime(300); p.SetFadeOut(300); notes.Add(p); }
private void CreateStep(int posNumber) { Nova_Particle p = new Nova_Particle(); p.SetTexture((List<Texture2D>)Nova_DataBase.GetResource("NOTE_" + (posNumber+1).ToString()), SpriteEffects.None, Color.White); p.SetPosition(new Vector2(posNumber * stepSpace + Nova_Functions.View.Width / 2 - ((numberOfSteps * stepSpace) / 2), -p.texture[0].Height)); p.SetAnimation(4, 1, 120, true); p.SetID(posNumber.ToString()); p.SetDirectionSpeed(new Vector2(0, stepSpeed)); notes.Add(p); }