Example #1
0
 public void Update(nIDrawable Parent, nSprite[] sprites, float seconds)
 {
     _parent = (ScoreDsp) Parent;
       Life += seconds;
       var factor = 1.0f - (Life / Lifespan);
       sprites[0].Color[3] = factor;
       sprites[0].Position[1] += _parent.Float * seconds;
 }
Example #2
0
 /** Create a score node */
 public void CreateScore(Twinkle parent)
 {
     var sc = new ScoreDsp() {
     Position = new float[2] { parent.Position[0], parent.Position[1] },
     Size = new float[2] { 6f, 3f },
     Float = 5.0f
       };
       var m = new nMotion(sc, new ScoreAnim() {
     Lifespan = 2f
       });
       _scores.Add(m);
       _parent.Trigger(new CollectableHit(_parent, parent.Points));
 }