- Timestamp:
- 2012-07-03 11:39:14 (9 years ago)
- Location:
- 2012/27/DenisZ/TheDungeonGame/TheDungeonGame/TheDungeonGame
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
2012/27/DenisZ/TheDungeonGame/TheDungeonGame/TheDungeonGame/Room.cs
r3462 r3466 54 54 PhysicsObject wallTop = createWall(Position, width, thickness); 55 55 PhysicsObject wallLeft = createWall(VecMath.sub(Position, new Vector(0, thickness)), thickness, height); 56 PhysicsObject wallDown = createWall(VecMath.sub(Position, new Vector(0, height)), width , thickness);56 PhysicsObject wallDown = createWall(VecMath.sub(Position, new Vector(0, height)), width+thickness, thickness); 57 57 PhysicsObject wallRight = createWall(VecMath.add(Position, new Vector(width, 0)), thickness, height); 58 58 roomObjects.Add(wallTop); -
2012/27/DenisZ/TheDungeonGame/TheDungeonGame/TheDungeonGame/TestRoom.cs
r3462 r3466 3 3 using System.Linq; 4 4 using System.Text; 5 using Rooms;6 5 using Jypeli; 7 6 8 namespace TheDungeonGame7 namespace Rooms 9 8 { 10 9 class TestRoom : Room 11 10 { 11 12 public TestRoom(Game game, Vector pos, Vector size, double thickness) 13 : base(game, pos, size, thickness) 14 { 15 initRoom(); 16 } 17 12 18 public override void initRoom() 13 19 { 14 20 createBorders(); 15 21 } 16 22 } -
2012/27/DenisZ/TheDungeonGame/TheDungeonGame/TheDungeonGame/TheDungeonGame.cs
r3462 r3466 8 8 using MathHelper; 9 9 using Entity; 10 using Rooms; 10 11 11 12 public class TheDungeonGame : PhysicsGame … … 17 18 IsMouseVisible = true; 18 19 SetWindowSize(800, 600); 20 19 21 Level.CreateBorders(); 20 22 Camera.ZoomToLevel(); 23 24 TestRoom testroom = new TestRoom(this,new Vector(Level.Left, Level.Top), new Vector(200, 100), 20); 25 testroom.buildLevel(); 21 26 22 27 player = new Player(Vector.Zero); -
2012/27/DenisZ/TheDungeonGame/TheDungeonGame/TheDungeonGame/TheDungeonGame.csproj
r3462 r3466 111 111 </ItemGroup> 112 112 <ItemGroup> 113 <Compile Include=" Level.cs" />113 <Compile Include="Room.cs" /> 114 114 <Compile Include="Player.cs" /> 115 115 <Compile Include="MathHelper.cs" /> 116 116 <Compile Include="Ohjelma.cs" /> 117 <Compile Include="TestRoom.cs" /> 117 118 <Compile Include="TheDungeonGame.cs" /> 118 119 <Compile Include="Properties\AssemblyInfo.cs" />
Note: See TracChangeset
for help on using the changeset viewer.