Ejemplo n.º 1
0
 public Particle(Atlas a)
 {
     position         = Vector2.zero;
     atlas            = a;
     timeout          = -1;
     drawable_size    = a.sprites[0].size.magnitude;
     velocity         = Vector2.zero;
     gravity          = Vector2.zero;
     origin           = Vector2.one / 2;
     drag             = Vector2.one;
     scale            = Vector2.one;
     grow             = Vector2.zero;
     angle            = 0;
     spin             = 0;
     color            = Vector4.one;
     color_delta      = Vector4.zero;
     frame            = 0;
     frame_speed      = 0;
     loop             = false;
     loop_start       = 0;
     loop_end         = a.n_sprites;
     remove           = false;
     ground_at        = 600;
     time             = 0;
     collide_behavior = null;
     collides_with    = null;
     tick_behavior    = null;
 }
Ejemplo n.º 2
0
 public void Dispose()
 {
     atlas            = null;
     collides_with    = null;
     collide_behavior = null;
     tick_behavior    = null;
 }