Exemple #1
0
 public Item(GraphicsContext g, Collision c, Vector3 pos, Item.Type i, Vector4 uc)
 {
     type = i;
     s = new Sprite(g, new Texture2D("/Application/Assets/weaponbase.png", false));
     s.Position = pos;
     s.SetColor(uc);
     graphics = g;
     col = c;
     IsAlive = true;
 }
Exemple #2
0
 public Bullet(GraphicsContext g, Collision c, float rot, Vector3 pos)
 {
     graphics = g;
     collisions = c;
     Texture2D t = new Texture2D("/Application/Assets/bullet.png",false);
     s = new Sprite (g, t);
     s.SetColor(new Vector4(1,1,1,1));
     isAlive = true;
     velocity = 10;
     s.Position = pos;
     s.Rotation = rot;
     s.Center = new Vector2(0.5f, 0.5f);
 }