Changeset 8932


Ignore:
Timestamp:
2017-07-05 14:56:35 (6 years ago)
Author:
npo17_53
Message:
 
Location:
2017/27/MillaK/RPG
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • 2017/27/MillaK/RPG/RPG/RPG/RPG.cs

    r8915 r8932  
    2121        LisaaOhjaimet(); 
    2222        LuoKentta(); 
     23        LuoPuut(); 
    2324 
    2425    } 
     
    3839        PhysicsObject ranta = PhysicsObject.CreateStaticObject(Level.Width, Level.Height); 
    3940        ranta.Shape = Shape.FromImage(LoadImage("taustahitbox")); 
     41        ranta.IsVisible = false; 
    4042        Add(ranta); 
    4143         
    4244        LuoSeinat(); 
    43  
    44         PhysicsObject seina2 = PhysicsObject.CreateStaticObject(Level.Width, Level.Height); 
    45         seina2.Shape = Shape.FromImage(LoadImage("taustahitbox2")); 
    46         Add(seina2); 
    47  
     45        LuoHuonekalut(); 
     46         
     47 
     48        //PhysicsObject kuusi = new PhysicsObject(100,300); 
     49        //Add(kuusi); 
     50        
     51     
     52        Level.CreateBorders(1.0, false); 
     53 
     54    } 
     55 
     56    void LuoPuut() 
     57    { 
     58        PhysicsObject kuusi = PhysicsObject.CreateStaticObject(120,230); 
     59        Add(kuusi); 
     60        kuusi.Shape = Shape.Triangle; 
     61        kuusi.Image = LoadImage("kuusi"); 
     62        kuusi.X = 0; 
     63        kuusi.Y = 400; 
     64 
     65        PhysicsObject kuusi2 = PhysicsObject.CreateStaticObject(120, 230); 
     66        Add(kuusi2); 
     67        kuusi2.Shape = Shape.Triangle; 
     68        kuusi2.Image = LoadImage("kuusi"); 
     69        kuusi2.X = 90; 
     70        kuusi2.Y = 360; 
     71 
     72        PhysicsObject kuusi3 = PhysicsObject.CreateStaticObject(120, 230); 
     73        Add(kuusi3); 
     74        kuusi3.Shape = Shape.Triangle; 
     75        kuusi3.Image = LoadImage("kuusi"); 
     76        kuusi3.X = -100; 
     77        kuusi3.Y = 350; 
     78 
     79        PhysicsObject kuusi4 = PhysicsObject.CreateStaticObject(120, 230); 
     80        Add(kuusi4); 
     81        kuusi4.Shape = Shape.Triangle; 
     82        kuusi4.Image = LoadImage("kuusi"); 
     83        kuusi4.X = 300; 
     84        kuusi4.Y = 250; 
     85 
     86        PhysicsObject kuusi5 = PhysicsObject.CreateStaticObject(120, 230); 
     87        Add(kuusi5); 
     88        kuusi5.Shape = Shape.Triangle; 
     89        kuusi5.Image = LoadImage("kuusi"); 
     90        kuusi5.X = 450; 
     91        kuusi5.Y = 425; 
     92    } 
     93 
     94    void LuoHuonekalut() 
     95 
     96    { 
     97 
     98        //keittiön mööpelit 
     99        LuoHuonekalu(-260, -320, 90, 260); 
     100        LuoHuonekalu(-370, -400, 280, 100); 
     101 
     102        //sohva 
     103        LuoHuonekalu(-726, -297, 100, 30); 
     104        LuoHuonekalu(-726, -60, 110, 30); 
     105        LuoHuonekalu(-763, -190, 40, 245); 
     106 
     107        //suihku 
     108        LuoHuonekalu(-740, 216, 75, 82); 
     109 
     110        //pöytä 
    48111        PhysicsObject poyta = new PhysicsObject(155,169); 
    49112        poyta.Shape = Shape.Circle; 
     
    54117        Add(poyta); 
    55118 
    56         //PhysicsObject kuusi = new PhysicsObject(100,300); 
    57         //Add(kuusi); 
    58         
    59      
    60         Level.CreateBorders(1.0, false); 
    61  
    62     } 
    63  
     119 
     120    } 
    64121    void LuoSeinat() 
    65122    { 
     123        //ulkoseinät 
    66124        LuoSeina(-214, 195, 10, 424); 
    67          
     125        LuoSeina(-214, -280 , 10, 349); 
     126 
     127        LuoSeina(-497, 405, 576, 10); 
     128        LuoSeina(-497, -453, 576, 10); 
     129 
     130        LuoSeina(-780, -24, 10, 862); 
     131 
     132        //sisäseinät 
     133        LuoSeina(-565, 360, 10, 95); 
     134        LuoSeina(-565, 175, 10, 130); 
     135 
     136        LuoSeina(-535, 110, 235, 10); 
     137        LuoSeina(-748, 110, 73, 10); 
     138        LuoSeina(-280, 110, 140, 10); 
     139 
    68140    } 
    69141 
     
    76148        Add(seina); 
    77149    } 
     150 
     151    void LuoHuonekalu(double x, double y, double leveys, double korkeus) 
     152    { 
     153        PhysicsObject huone = PhysicsObject.CreateStaticObject(leveys, korkeus); 
     154        huone.X = x; 
     155        huone.Y = y; 
     156        huone.IsVisible = false; 
     157        Add(huone); 
     158    } 
    78159    void LuoHahmot () 
    79160    { 
     
    82163        pelaaja.Image = LoadImage("hemmo"); 
    83164        pelaaja.Shape = Shape.Circle; 
     165        pelaaja.X = -265; 
     166        pelaaja.Y = 350; 
    84167        pelaaja.CanRotate = false; 
    85168        pelaaja.Restitution = 0; 
     
    91174        merenneito.MakeStatic(); 
    92175        merenneito.Restitution = 0; 
    93         merenneito.X = 750; 
     176        merenneito.X = 650; 
    94177        merenneito.Y = -150; 
    95178        Add(merenneito); 
     
    103186        kerjalainen.Y = -50; 
    104187        Add(kerjalainen); 
    105  
    106     } 
    107  
     188        
     189    } 
    108190 
    109191    void LisaaOhjaimet() 
  • 2017/27/MillaK/RPG/RPG/RPG/RPG.csproj.Debug.cachefile

    r8915 r8932  
    22Content\mermaid.xnb 
    33Content\kerjalainen.xnb 
    4 Content\taustalol.xnb 
    54Content\tausta.xnb 
    65Content\taustahitbox.xnb 
    7 Content\taustahitbox1.xnb 
    8 Content\taustahitbox2.xnb 
     6Content\kuusi.xnb 
  • 2017/27/MillaK/RPG/RPG/RPG/obj/x86/Debug/ContentPipeline-{62334C8F-897C-42BC-BEED-F9E03F53EA01}.xml

    r8915 r8932  
    3030    </Item> 
    3131    <Item> 
    32       <Source>taustalol.png</Source> 
    33       <Name>taustalol</Name> 
    34       <Importer>TextureImporter</Importer> 
    35       <Processor>TextureProcessor</Processor> 
    36       <Options>None</Options> 
    37       <Output>C:\MyTemp\MillaK\RPG\RPG\RPG\bin\x86\Debug\Content\taustalol.xnb</Output> 
    38       <Time>2017-07-05T09:42:30.0106914+03:00</Time> 
    39     </Item> 
    40     <Item> 
    4132      <Source>tausta.png</Source> 
    4233      <Name>tausta</Name> 
     
    5748    </Item> 
    5849    <Item> 
    59       <Source>taustahitbox1.png</Source> 
    60       <Name>taustahitbox1</Name> 
     50      <Source>kuusi.png</Source> 
     51      <Name>kuusi</Name> 
    6152      <Importer>TextureImporter</Importer> 
    6253      <Processor>TextureProcessor</Processor> 
    6354      <Options>None</Options> 
    64       <Output>C:\MyTemp\MillaK\RPG\RPG\RPG\bin\x86\Debug\Content\taustahitbox1.xnb</Output> 
    65       <Time>2017-07-05T11:14:52.0402748+03:00</Time> 
    66     </Item> 
    67     <Item> 
    68       <Source>taustahitbox2.png</Source> 
    69       <Name>taustahitbox2</Name> 
    70       <Importer>TextureImporter</Importer> 
    71       <Processor>TextureProcessor</Processor> 
    72       <Options>None</Options> 
    73       <Output>C:\MyTemp\MillaK\RPG\RPG\RPG\bin\x86\Debug\Content\taustahitbox2.xnb</Output> 
    74       <Time>2017-07-05T11:15:42.1214112+03:00</Time> 
     55      <Output>C:\MyTemp\MillaK\RPG\RPG\RPG\bin\x86\Debug\Content\kuusi.xnb</Output> 
     56      <Time>2017-07-05T14:38:35.4494949+03:00</Time> 
    7557    </Item> 
    7658    <BuildSuccessful>true</BuildSuccessful> 
  • 2017/27/MillaK/RPG/RPG/RPG/obj/x86/Debug/RPG.csproj.FileListAbsolute.txt

    r8915 r8932  
    1010C:\MyTemp\MillaK\RPG\RPG\RPG\bin\x86\Debug\Content\mermaid.xnb 
    1111C:\MyTemp\MillaK\RPG\RPG\RPG\bin\x86\Debug\Content\kerjalainen.xnb 
    12 C:\MyTemp\MillaK\RPG\RPG\RPG\bin\x86\Debug\Content\taustalol.xnb 
    1312C:\MyTemp\MillaK\RPG\RPG\RPG\bin\x86\Debug\Content\tausta.xnb 
    1413C:\MyTemp\MillaK\RPG\RPG\RPG\bin\x86\Debug\Content\taustahitbox.xnb 
    15 C:\MyTemp\MillaK\RPG\RPG\RPG\bin\x86\Debug\Content\taustahitbox1.xnb 
    16 C:\MyTemp\MillaK\RPG\RPG\RPG\bin\x86\Debug\Content\taustahitbox2.xnb 
     14C:\MyTemp\MillaK\RPG\RPG\RPG\bin\x86\Debug\Content\kuusi.xnb 
  • 2017/27/MillaK/RPG/RPG/RPG/obj/x86/Debug/cachefile-{62334C8F-897C-42BC-BEED-F9E03F53EA01}-targetpath.txt

    r8915 r8932  
    22Content\mermaid.xnb 
    33Content\kerjalainen.xnb 
    4 Content\taustalol.xnb 
    54Content\tausta.xnb 
    65Content\taustahitbox.xnb 
    7 Content\taustahitbox1.xnb 
    8 Content\taustahitbox2.xnb 
     6Content\kuusi.xnb 
  • 2017/27/MillaK/RPG/RPG/RPGContent/RPGContent.contentproj

    r8915 r8932  
    6767  </ItemGroup> 
    6868  <ItemGroup> 
    69     <Compile Include="taustalol.png"> 
    70       <Name>taustalol</Name> 
    71       <Importer>TextureImporter</Importer> 
    72       <Processor>TextureProcessor</Processor> 
    73     </Compile> 
    74   </ItemGroup> 
    75   <ItemGroup> 
    7669    <Compile Include="tausta.png"> 
    7770      <Name>tausta</Name> 
     
    8881  </ItemGroup> 
    8982  <ItemGroup> 
    90     <Compile Include="taustahitbox1.png"> 
    91       <Name>taustahitbox1</Name> 
    92       <Importer>TextureImporter</Importer> 
    93       <Processor>TextureProcessor</Processor> 
    94     </Compile> 
    95   </ItemGroup> 
    96   <ItemGroup> 
    97     <Compile Include="taustahitbox2.png"> 
    98       <Name>taustahitbox2</Name> 
     83    <Compile Include="kuusi.png"> 
     84      <Name>kuusi</Name> 
    9985      <Importer>TextureImporter</Importer> 
    10086      <Processor>TextureProcessor</Processor> 
Note: See TracChangeset for help on using the changeset viewer.