source: 2012/27/DenisZ/TheDungeonGame/TheDungeonGame/TheDungeonGame/RoomTemplates.cs @ 3563

Revision 3563, 1.2 KB checked in by dezhidki, 9 years ago (diff)

Added some textures
Added basic ingame Gui
Added ability to hold and use items
Camera movement is now totaly fixed and working properly
Added ability to easily add and manage textures
Minor fixes on some stuff

Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using Jypeli;
6using Jypeli.Assets;
7using MathHelper;
8using Entity;
9
10namespace Rooms
11{
12    class TestRoom : Room
13    {
14        public TestRoom(TheDungeonGame game, Vector pos, Vector size, double thickness)
15            : base(game, pos, size, thickness)
16        {
17        }
18
19        public override void initRoom()
20        {
21            int level = Game.LevelGen.level;
22            createBorders(Game.getTopBottomWall(level), Game.getLeftRightWall(level));
23            addDoors(Game.objectTextures[0]);
24            roomDecorations.Add(createBackground(Game.getLevelBackground(level)));
25            ItemEntity testItem = new ItemEntity(new Items.TestItem(TheDungeonGame.LoadImage("items/testItem"), "Test Item", true));
26            addBlock(testItem, 0, 0);
27            //TestEntity entity = new TestEntity(Game, Vector.Zero, new Vector(40, 40), Shape.Rectangle);
28            //addEntityAt(entity, 0, 0);
29            //RandomMoverBrain brain = new RandomMoverBrain(10000);
30            //brain.ChangeMovementSeconds = 0.5;
31            //entity.Brain = brain;
32            //entity.Brain.Active = true;
33        }
34    }
35   
36}
Note: See TracBrowser for help on using the repository browser.