source: 2012/27/DenisZ/TheDungeonGame/TheDungeonGame/TheDungeonGame/TestRoom.cs @ 3525

Revision 3525, 897 bytes checked in by dezhidki, 10 years ago (diff)

Added basic camera logic.
Added basic templates for Doors

Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using Jypeli;
6using MathHelper;
7
8namespace Rooms
9{
10    class TestRoom : Room
11    {
12
13        public TestRoom(Game game, Vector pos, Vector size, double thickness)
14            : base(game, pos, size, thickness)
15        {
16            initRoom();
17        }
18
19        public override void initRoom()
20        {
21            int[] doorLocations = { RoomDirection.North, RoomDirection.South, RoomDirection.West, RoomDirection.East };
22            createBorders();
23            roomObjects.Add(createBackground());
24            addDoors(doorLocations);
25        //    PhysicsObject testblock = PhysicsObject.CreateStaticObject(blockWidth, blockHeight);
26          //  addBlock(testblock, 0, 1);
27          //  addBlock(new PhysicsObject(blockWidth, blockHeight), 0, 0);
28        }
29    }
30
31   
32}
Note: See TracBrowser for help on using the repository browser.