Exemple #1
0
 //CONSTRUCTOR
 public Player(Vector2 pos, Map whichworld)
 {
     World = whichworld;
     obstacles = World.Obstacles;
     initialPosition = pos;
     Hitbox = new Rectangle((int)initialPosition.X, (int)initialPosition.Y, 38, 48);
 }
        //CONSTRUTOR
        public GameManager()
        {
            InitialPos = new Vector2(50,50);

            obstacles = new List<Obstacle>();
            obstacles.Add(new Obstacle(20, 20, Resources.Obstacle));
            obstacles.Add(new Obstacle(100, 120, Resources.Obstacle));
            obstacles.Add(new Obstacle(50, 450, Resources.Obstacle));

            mapTest = new Map(obstacles);

            Test = new Level(InitialPos, mapTest);
        }
Exemple #3
0
 //CONSTRUCTOR
 public Level(Vector2 pos, Map map)
 {
     localMap = map;
     localPlayer = new Player(pos,localMap);
 }