- Timestamp:
- 2014-07-25 10:56:18 (9 years ago)
- Location:
- 2014/30/OonaH
- Files:
-
- 3 added
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/30/OonaH/GoldenMaknae2/GoldenMaknae2/GoldenMaknae2/GoldenMaknae2.cs
r5638 r5665 12 12 PhysicsObject reuna; 13 13 PhysicsObject tavarat; 14 PhysicsObject pilvi;15 14 Label pisteNaytto; 16 15 IntMeter pisteLaskuri; … … 21 20 Image LetterKuva = LoadImage("Letter"); 22 21 Image RapmonKuva = LoadImage("Rapmon"); 23 Image Pilvi1Kuva = LoadImage("Pilvi 1");22 Image Pilvi1Kuva = LoadImage("Pilvi2"); 24 23 25 24 #endregion … … 46 45 ClearAll(); 47 46 48 Level.BackgroundColor = Color.Ivory; 49 50 //Widget lista = new Widget(new VerticalLayout()); 51 // lista.BorderColor = Color.Black; 52 //lista.Color = Color.Transparent; 53 //Add(lista); 54 55 //lista.Add(new Label("kissa")); 56 57 //Widget laatikko = new Widget(100, 20); 58 //laatikko.Color = Color.Blue; 59 //lista.Add(laatikko); 60 61 //lista.Add(new Widget(taulunKuva)); 62 63 //lista.Add(new Label("koira")); 64 65 Widget tausta = new Widget(new VerticalLayout()); 66 tausta.Color = Color.Ivory; 67 Add(tausta); 68 69 tausta.Add(new Label("falkjhfaögafjöa")); 70 47 Level.Background.Color = Color.Ivory; 48 49 Label KuvauksenTeksti = new Label(" Golden Maknaen tarkoitus on kerätä\n fanien lähettämiä kirjeitä. \n Oletettavasti huonoa tuuria, \n mutta Maknae onnistui suututtamaan \n Rapmonin, joten nyt hänen täytyy vältellä \n häntä."); 50 KuvauksenTeksti.Position = new Vector(0, -100); 51 KuvauksenTeksti.TextColor = Color.Blue; 52 Add(KuvauksenTeksti); 53 54 PilvienLuonti(new Vector(-100, 300), 15,15); 55 KuvienTuominenValikkoon(new Vector(200, 150), 10, 10, KookieKuva); 56 KuvienTuominenValikkoon(new Vector(-200, -300), 10, 10, RapmonKuva); 57 KuvienTuominenValikkoon(new Vector(0, -250), 10, 10, RapmonKuva); 58 KuvienTuominenValikkoon(new Vector(200, -320), 10, 10, RapmonKuva); 71 59 72 60 … … 89 77 Add(valikot); 90 78 } 79 } 80 81 void KuvienTuominenValikkoon(Vector paikka, double leveys, double korkeus, Image Kuva) 82 { 83 Widget Kuvia = new Widget(leveys * 10, korkeus * 10); 84 Kuvia.Position = paikka; 85 Kuvia.Image = Kuva; 86 Add(Kuvia); 91 87 } 92 88 … … 174 170 alaReuna.SetTileMethod('#', LuoReunaa); 175 171 alaReuna.SetTileMethod('-', LuoKookie); 172 alaReuna.SetTileMethod('%', PilvienLuonti); 176 173 alaReuna.Execute(20.0,20.0); 177 174 … … 184 181 vasenReuna.Restitution = 1.0; 185 182 186 //täälläkin pilviä 187 LuoPilvia(-100, 500, Pilvi1Kuva); 188 183 } 184 185 void PilvienLuonti(Vector paikka, double leveys, double korkeus) 186 { 187 Widget pilvenKuva = new Widget(Pilvi1Kuva); 188 pilvenKuva.Size = new Vector(leveys * 20, korkeus * 10); 189 pilvenKuva.Position = paikka; 190 Add(pilvenKuva,-1); 189 191 } 190 192 … … 201 203 } 202 204 203 void LuoPilvia(double x, double y, Image Kuva)204 {205 206 //TODO: pilvien luomisessa häikkää.207 208 pilvi.X = x;209 pilvi.Y = y;210 pilvi.Image = Kuva;211 Add(pilvi);212 }213 205 void ToinenOsuma(PhysicsObject reuna, PhysicsObject Hyung) 214 206 { … … 223 215 Kookie.Image = KookieKuva; 224 216 Kookie.Restitution = 1.0; 225 Gravity = new Vector(0,- 5000);217 Gravity = new Vector(0,-4000); 226 218 227 219 Add(Kookie); … … 289 281 } 290 282 291 #region Kuolema292 283 void Kuolema(PhysicsObject Kookie, PhysicsObject kohde) 293 284 { … … 301 292 302 293 } 303 #endregion304 294 305 295 void PisteidenSaanti(PhysicsObject Kookie, PhysicsObject kohde) -
2014/30/OonaH/GoldenMaknae2/GoldenMaknae2/GoldenMaknae2/GoldenMaknae2.csproj.Debug.cachefile
r5638 r5665 4 4 Content\Kentta.xnb 5 5 Content\Pilvi1.xnb 6 Content\Pilvi2.xnb 6 7 Content\Kentta.txt -
2014/30/OonaH/GoldenMaknae2/GoldenMaknae2/GoldenMaknae2/bin/x86/Debug/Content/Kentta.txt
r5638 r5665 19 19 ................................................................ 20 20 ................................................................ 21 ............................................................... 21 22 ................................................................ 22 23 ................................................................ 23 24 ................................................................ 24 ................................................................ 25 ................................................................ 25 ...............................................%................ 26 26 ................................................................ 27 27 ................................................................ -
2014/30/OonaH/GoldenMaknae2/GoldenMaknae2/GoldenMaknae2/obj/x86/Debug/ContentPipeline-{6494C56A-28E2-4B1B-97F3-D805E8298F10}.xml
r5638 r5665 36 36 <Options>None</Options> 37 37 <Output>C:\MyTemp\OonaH\GoldenMaknae2\GoldenMaknae2\GoldenMaknae2\bin\x86\Debug\Content\Kentta.xnb</Output> 38 <Time>2014-07-2 4T14:47:27.786434+03:00</Time>38 <Time>2014-07-25T10:08:22.6435249+03:00</Time> 39 39 </Item> 40 40 <Item> … … 46 46 <Output>C:\MyTemp\OonaH\GoldenMaknae2\GoldenMaknae2\GoldenMaknae2\bin\x86\Debug\Content\Pilvi1.xnb</Output> 47 47 <Time>2014-07-24T14:42:33.720434+03:00</Time> 48 </Item> 49 <Item> 50 <Source>Pilvi2.png</Source> 51 <Name>Pilvi2</Name> 52 <Importer>TextureImporter</Importer> 53 <Processor>TextureProcessor</Processor> 54 <Options>None</Options> 55 <Output>C:\MyTemp\OonaH\GoldenMaknae2\GoldenMaknae2\GoldenMaknae2\bin\x86\Debug\Content\Pilvi2.xnb</Output> 56 <Time>2014-07-25T10:53:59.1781745+03:00</Time> 48 57 </Item> 49 58 <BuildSuccessful>true</BuildSuccessful> -
2014/30/OonaH/GoldenMaknae2/GoldenMaknae2/GoldenMaknae2/obj/x86/Debug/GoldenMaknae2.csproj.FileListAbsolute.txt
r5638 r5665 13 13 C:\MyTemp\OonaH\GoldenMaknae2\GoldenMaknae2\GoldenMaknae2\bin\x86\Debug\Content\Kentta.txt 14 14 C:\MyTemp\OonaH\GoldenMaknae2\GoldenMaknae2\GoldenMaknae2\bin\x86\Debug\Content\Pilvi1.xnb 15 C:\MyTemp\OonaH\GoldenMaknae2\GoldenMaknae2\GoldenMaknae2\bin\x86\Debug\Content\Pilvi2.xnb -
2014/30/OonaH/GoldenMaknae2/GoldenMaknae2/GoldenMaknae2/obj/x86/Debug/cachefile-{6494C56A-28E2-4B1B-97F3-D805E8298F10}-targetpath.txt
r5638 r5665 4 4 Content\Kentta.xnb 5 5 Content\Pilvi1.xnb 6 Content\Pilvi2.xnb 6 7 Content\Kentta.txt -
2014/30/OonaH/GoldenMaknae2/GoldenMaknae2/GoldenMaknae2Content/GoldenMaknae2Content.contentproj
r5638 r5665 81 81 </Compile> 82 82 </ItemGroup> 83 <ItemGroup> 84 <Compile Include="Pilvi2.png"> 85 <Name>Pilvi2</Name> 86 <Importer>TextureImporter</Importer> 87 <Processor>TextureProcessor</Processor> 88 </Compile> 89 </ItemGroup> 83 90 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 84 91 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2014/30/OonaH/GoldenMaknae2/GoldenMaknae2/GoldenMaknae2Content/Kentta.txt
r5638 r5665 19 19 ................................................................ 20 20 ................................................................ 21 ............................................................... 21 22 ................................................................ 22 23 ................................................................ 23 24 ................................................................ 24 ................................................................ 25 ................................................................ 25 ...............................................%................ 26 26 ................................................................ 27 27 ................................................................
Note: See TracChangeset
for help on using the changeset viewer.