コード例 #1
0
 public void AddShape(Shape shape, string id, float intensity, bool randomness)
 {
     var activeShape = new ActiveShape()
     {
         Shape = shape,
         Offsets = new float[shape.m_resolution],
         Intensity = intensity,
         Randomness = randomness,
         ID = id
     };
     _shapes.Add(id, activeShape);
 }
コード例 #2
0
 private void TimerTick(object sender, EventArgs e)
 {
     ActiveShape.Move(Direction.Down);
 }