Changeset 8932
- Timestamp:
- 2017-07-05 14:56:35 (6 years ago)
- Location:
- 2017/27/MillaK/RPG
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
2017/27/MillaK/RPG/RPG/RPG/RPG.cs
r8915 r8932 21 21 LisaaOhjaimet(); 22 22 LuoKentta(); 23 LuoPuut(); 23 24 24 25 } … … 38 39 PhysicsObject ranta = PhysicsObject.CreateStaticObject(Level.Width, Level.Height); 39 40 ranta.Shape = Shape.FromImage(LoadImage("taustahitbox")); 41 ranta.IsVisible = false; 40 42 Add(ranta); 41 43 42 44 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ä 48 111 PhysicsObject poyta = new PhysicsObject(155,169); 49 112 poyta.Shape = Shape.Circle; … … 54 117 Add(poyta); 55 118 56 //PhysicsObject kuusi = new PhysicsObject(100,300); 57 //Add(kuusi); 58 59 60 Level.CreateBorders(1.0, false); 61 62 } 63 119 120 } 64 121 void LuoSeinat() 65 122 { 123 //ulkoseinät 66 124 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 68 140 } 69 141 … … 76 148 Add(seina); 77 149 } 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 } 78 159 void LuoHahmot () 79 160 { … … 82 163 pelaaja.Image = LoadImage("hemmo"); 83 164 pelaaja.Shape = Shape.Circle; 165 pelaaja.X = -265; 166 pelaaja.Y = 350; 84 167 pelaaja.CanRotate = false; 85 168 pelaaja.Restitution = 0; … … 91 174 merenneito.MakeStatic(); 92 175 merenneito.Restitution = 0; 93 merenneito.X = 750;176 merenneito.X = 650; 94 177 merenneito.Y = -150; 95 178 Add(merenneito); … … 103 186 kerjalainen.Y = -50; 104 187 Add(kerjalainen); 105 106 } 107 188 189 } 108 190 109 191 void LisaaOhjaimet() -
2017/27/MillaK/RPG/RPG/RPG/RPG.csproj.Debug.cachefile
r8915 r8932 2 2 Content\mermaid.xnb 3 3 Content\kerjalainen.xnb 4 Content\taustalol.xnb5 4 Content\tausta.xnb 6 5 Content\taustahitbox.xnb 7 Content\taustahitbox1.xnb 8 Content\taustahitbox2.xnb 6 Content\kuusi.xnb -
2017/27/MillaK/RPG/RPG/RPG/obj/x86/Debug/ContentPipeline-{62334C8F-897C-42BC-BEED-F9E03F53EA01}.xml
r8915 r8932 30 30 </Item> 31 31 <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>41 32 <Source>tausta.png</Source> 42 33 <Name>tausta</Name> … … 57 48 </Item> 58 49 <Item> 59 <Source> taustahitbox1.png</Source>60 <Name> taustahitbox1</Name>50 <Source>kuusi.png</Source> 51 <Name>kuusi</Name> 61 52 <Importer>TextureImporter</Importer> 62 53 <Processor>TextureProcessor</Processor> 63 54 <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> 75 57 </Item> 76 58 <BuildSuccessful>true</BuildSuccessful> -
2017/27/MillaK/RPG/RPG/RPG/obj/x86/Debug/RPG.csproj.FileListAbsolute.txt
r8915 r8932 10 10 C:\MyTemp\MillaK\RPG\RPG\RPG\bin\x86\Debug\Content\mermaid.xnb 11 11 C:\MyTemp\MillaK\RPG\RPG\RPG\bin\x86\Debug\Content\kerjalainen.xnb 12 C:\MyTemp\MillaK\RPG\RPG\RPG\bin\x86\Debug\Content\taustalol.xnb13 12 C:\MyTemp\MillaK\RPG\RPG\RPG\bin\x86\Debug\Content\tausta.xnb 14 13 C:\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 14 C:\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 2 2 Content\mermaid.xnb 3 3 Content\kerjalainen.xnb 4 Content\taustalol.xnb5 4 Content\tausta.xnb 6 5 Content\taustahitbox.xnb 7 Content\taustahitbox1.xnb 8 Content\taustahitbox2.xnb 6 Content\kuusi.xnb -
2017/27/MillaK/RPG/RPG/RPGContent/RPGContent.contentproj
r8915 r8932 67 67 </ItemGroup> 68 68 <ItemGroup> 69 <Compile Include="taustalol.png">70 <Name>taustalol</Name>71 <Importer>TextureImporter</Importer>72 <Processor>TextureProcessor</Processor>73 </Compile>74 </ItemGroup>75 <ItemGroup>76 69 <Compile Include="tausta.png"> 77 70 <Name>tausta</Name> … … 88 81 </ItemGroup> 89 82 <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> 99 85 <Importer>TextureImporter</Importer> 100 86 <Processor>TextureProcessor</Processor>
Note: See TracChangeset
for help on using the changeset viewer.