Changeset 3466 for 2012/27/DenisZ


Ignore:
Timestamp:
2012-07-03 11:39:14 (9 years ago)
Author:
dezhidki
Message:

Talletus.

Location:
2012/27/DenisZ/TheDungeonGame/TheDungeonGame/TheDungeonGame
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • 2012/27/DenisZ/TheDungeonGame/TheDungeonGame/TheDungeonGame/Room.cs

    r3462 r3466  
    5454            PhysicsObject wallTop = createWall(Position, width, thickness); 
    5555            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); 
    5757            PhysicsObject wallRight = createWall(VecMath.add(Position, new Vector(width, 0)), thickness, height); 
    5858            roomObjects.Add(wallTop); 
  • 2012/27/DenisZ/TheDungeonGame/TheDungeonGame/TheDungeonGame/TestRoom.cs

    r3462 r3466  
    33using System.Linq; 
    44using System.Text; 
    5 using Rooms; 
    65using Jypeli; 
    76 
    8 namespace TheDungeonGame 
     7namespace Rooms 
    98{ 
    109    class TestRoom : Room 
    1110    { 
     11 
     12        public TestRoom(Game game, Vector pos, Vector size, double thickness) 
     13            : base(game, pos, size, thickness) 
     14        { 
     15            initRoom(); 
     16        } 
     17 
    1218        public override void initRoom() 
    1319        { 
    14  
     20            createBorders(); 
    1521        } 
    1622    } 
  • 2012/27/DenisZ/TheDungeonGame/TheDungeonGame/TheDungeonGame/TheDungeonGame.cs

    r3462 r3466  
    88using MathHelper; 
    99using Entity; 
     10using Rooms; 
    1011 
    1112public class TheDungeonGame : PhysicsGame 
     
    1718        IsMouseVisible = true; 
    1819        SetWindowSize(800, 600); 
     20         
    1921        Level.CreateBorders(); 
    2022        Camera.ZoomToLevel(); 
     23 
     24        TestRoom testroom = new TestRoom(this,new Vector(Level.Left, Level.Top), new Vector(200, 100), 20); 
     25        testroom.buildLevel(); 
    2126 
    2227        player = new Player(Vector.Zero); 
  • 2012/27/DenisZ/TheDungeonGame/TheDungeonGame/TheDungeonGame/TheDungeonGame.csproj

    r3462 r3466  
    111111  </ItemGroup> 
    112112  <ItemGroup> 
    113     <Compile Include="Level.cs" /> 
     113    <Compile Include="Room.cs" /> 
    114114    <Compile Include="Player.cs" /> 
    115115    <Compile Include="MathHelper.cs" /> 
    116116    <Compile Include="Ohjelma.cs" /> 
     117    <Compile Include="TestRoom.cs" /> 
    117118    <Compile Include="TheDungeonGame.cs" /> 
    118119    <Compile Include="Properties\AssemblyInfo.cs" /> 
Note: See TracChangeset for help on using the changeset viewer.