Esempio n. 1
0
 public Enemy()
 {
     pos = new Vector2();
     up = new Vector2(0,-1);
     right = new Vector2(1,0);
     sprite = new SpriteEx();
     speed = 0;
     onPlanet = true;
 }
Esempio n. 2
0
 public Planet()
 {
     mountain = new SpriteEx();
     tree = new SpriteEx();
     grass = new SpriteEx();
     planet = new SpriteEx();
     pos = new Vector2();
     gravity = 0;
     radius = 2048;
     gravityField = 3048;
 }
Esempio n. 3
0
        public Player()
        {
            sprite = new SpriteEx();
            pos = new Vector2();
            up = new Vector2(0, -1);
            right = new Vector2(1, 0);
            speed = 600;
            jumping = -0.1f;
            charge = 0;

            animationManager = AnimationManager.CreateFromFile("Content\\mainchar.XML");
        }
Esempio n. 4
0
 public HUD()
 {
     hud = new SpriteEx();
 }
Esempio n. 5
0
 public Collectible()
 {
     pos = new Vector2();
     sprite = new SpriteEx();
 }