Exemple #1
0
 public Bullet(Vector2 position, Vector2 velocity, float width)
 {
     _field = EntitiesOfType<Field>().Single();
     _position = position;
     _velocity = velocity;
     _width = width;
 }
Exemple #2
0
 public Player()
 {
     _pen = new Pen(Ext.ColorFromHsv(120, 0.75, 0.75));
     _brush = new SolidBrush(_pen.Color);
     _field = EntitiesOfType<Field>().Single();
     Respawn();
 }
Exemple #3
0
 public Smoke(Field field, Vector2 position, Vector2 velocity)
 {
     _field = field;
     _position = position;
     _velocity = velocity;
 }