Beispiel #1
0
 public Enemy()
 {
     pos = new Vector2();
     up = new Vector2(0,-1);
     right = new Vector2(1,0);
     sprite = new SpriteEx();
     speed = 0;
     onPlanet = true;
 }
Beispiel #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;
 }
Beispiel #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");
        }
Beispiel #4
0
 public HUD()
 {
     hud = new SpriteEx();
 }
Beispiel #5
0
 public Collectible()
 {
     pos = new Vector2();
     sprite = new SpriteEx();
 }