Changeset 5665 for 2014/30


Ignore:
Timestamp:
2014-07-25 10:56:18 (9 years ago)
Author:
oomahutt
Message:

Työn viimeistelyä.

Location:
2014/30/OonaH
Files:
3 added
14 edited

Legend:

Unmodified
Added
Removed
  • 2014/30/OonaH/GoldenMaknae2/GoldenMaknae2/GoldenMaknae2/GoldenMaknae2.cs

    r5638 r5665  
    1212    PhysicsObject reuna; 
    1313    PhysicsObject tavarat; 
    14     PhysicsObject pilvi; 
    1514    Label pisteNaytto; 
    1615    IntMeter pisteLaskuri; 
     
    2120    Image LetterKuva = LoadImage("Letter"); 
    2221    Image RapmonKuva = LoadImage("Rapmon"); 
    23     Image Pilvi1Kuva = LoadImage("Pilvi1"); 
     22    Image Pilvi1Kuva = LoadImage("Pilvi2"); 
    2423 
    2524    #endregion 
     
    4645        ClearAll(); 
    4746 
    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); 
    7159 
    7260 
     
    8977            Add(valikot); 
    9078        } 
     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); 
    9187    } 
    9288 
     
    174170        alaReuna.SetTileMethod('#', LuoReunaa); 
    175171        alaReuna.SetTileMethod('-', LuoKookie); 
     172        alaReuna.SetTileMethod('%', PilvienLuonti); 
    176173        alaReuna.Execute(20.0,20.0); 
    177174 
     
    184181        vasenReuna.Restitution = 1.0; 
    185182 
    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); 
    189191    } 
    190192 
     
    201203    } 
    202204 
    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     } 
    213205    void ToinenOsuma(PhysicsObject reuna, PhysicsObject Hyung) 
    214206    { 
     
    223215        Kookie.Image = KookieKuva; 
    224216        Kookie.Restitution = 1.0; 
    225         Gravity = new Vector(0,-5000); 
     217        Gravity = new Vector(0,-4000); 
    226218 
    227219        Add(Kookie); 
     
    289281    } 
    290282 
    291     #region Kuolema 
    292283    void Kuolema(PhysicsObject Kookie, PhysicsObject kohde) 
    293284    { 
     
    301292 
    302293    } 
    303     #endregion 
    304294 
    305295    void PisteidenSaanti(PhysicsObject Kookie, PhysicsObject kohde) 
  • 2014/30/OonaH/GoldenMaknae2/GoldenMaknae2/GoldenMaknae2/GoldenMaknae2.csproj.Debug.cachefile

    r5638 r5665  
    44Content\Kentta.xnb 
    55Content\Pilvi1.xnb 
     6Content\Pilvi2.xnb 
    67Content\Kentta.txt 
  • 2014/30/OonaH/GoldenMaknae2/GoldenMaknae2/GoldenMaknae2/bin/x86/Debug/Content/Kentta.txt

    r5638 r5665  
    1919................................................................ 
    2020................................................................ 
     21............................................................... 
    2122................................................................ 
    2223................................................................ 
    2324................................................................ 
    24 ................................................................ 
    25 ................................................................ 
     25...............................................%................ 
    2626................................................................ 
    2727................................................................ 
  • 2014/30/OonaH/GoldenMaknae2/GoldenMaknae2/GoldenMaknae2/obj/x86/Debug/ContentPipeline-{6494C56A-28E2-4B1B-97F3-D805E8298F10}.xml

    r5638 r5665  
    3636      <Options>None</Options> 
    3737      <Output>C:\MyTemp\OonaH\GoldenMaknae2\GoldenMaknae2\GoldenMaknae2\bin\x86\Debug\Content\Kentta.xnb</Output> 
    38       <Time>2014-07-24T14:47:27.786434+03:00</Time> 
     38      <Time>2014-07-25T10:08:22.6435249+03:00</Time> 
    3939    </Item> 
    4040    <Item> 
     
    4646      <Output>C:\MyTemp\OonaH\GoldenMaknae2\GoldenMaknae2\GoldenMaknae2\bin\x86\Debug\Content\Pilvi1.xnb</Output> 
    4747      <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> 
    4857    </Item> 
    4958    <BuildSuccessful>true</BuildSuccessful> 
  • 2014/30/OonaH/GoldenMaknae2/GoldenMaknae2/GoldenMaknae2/obj/x86/Debug/GoldenMaknae2.csproj.FileListAbsolute.txt

    r5638 r5665  
    1313C:\MyTemp\OonaH\GoldenMaknae2\GoldenMaknae2\GoldenMaknae2\bin\x86\Debug\Content\Kentta.txt 
    1414C:\MyTemp\OonaH\GoldenMaknae2\GoldenMaknae2\GoldenMaknae2\bin\x86\Debug\Content\Pilvi1.xnb 
     15C:\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  
    44Content\Kentta.xnb 
    55Content\Pilvi1.xnb 
     6Content\Pilvi2.xnb 
    67Content\Kentta.txt 
  • 2014/30/OonaH/GoldenMaknae2/GoldenMaknae2/GoldenMaknae2Content/GoldenMaknae2Content.contentproj

    r5638 r5665  
    8181    </Compile> 
    8282  </ItemGroup> 
     83  <ItemGroup> 
     84    <Compile Include="Pilvi2.png"> 
     85      <Name>Pilvi2</Name> 
     86      <Importer>TextureImporter</Importer> 
     87      <Processor>TextureProcessor</Processor> 
     88    </Compile> 
     89  </ItemGroup> 
    8390  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    8491  <!--  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  
    1919................................................................ 
    2020................................................................ 
     21............................................................... 
    2122................................................................ 
    2223................................................................ 
    2324................................................................ 
    24 ................................................................ 
    25 ................................................................ 
     25...............................................%................ 
    2626................................................................ 
    2727................................................................ 
Note: See TracChangeset for help on using the changeset viewer.