Revision 3525,
897 bytes
checked in by dezhidki, 10 years ago
(diff) |
Added basic camera logic.
Added basic templates for Doors
|
Line | |
---|
1 | using System; |
---|
2 | using System.Collections.Generic; |
---|
3 | using System.Linq; |
---|
4 | using System.Text; |
---|
5 | using Jypeli; |
---|
6 | using MathHelper; |
---|
7 | |
---|
8 | namespace 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.