Changeset 8798 for 2017/24


Ignore:
Timestamp:
2017-06-16 12:55:44 (2 years ago)
Author:
npo17_26
Message:
 
Location:
2017/24/EllaT/The Dinosaur
Files:
5 added
1 deleted
15 edited

Legend:

Unmodified
Added
Removed
  • 2017/24/EllaT/The Dinosaur/The Dinosaur/The DinosaurContent/The DinosaurContent.contentproj

    r8734 r8798  
    5353  </ItemGroup> 
    5454  <ItemGroup> 
    55     <Compile Include="se ilkee possuli.jpg"> 
    56       <Name>se ilkee possuli</Name> 
    57       <Importer>TextureImporter</Importer> 
    58       <Processor>TextureProcessor</Processor> 
    59     </Compile> 
    6055    <Compile Include="DINOOOOOOO.png"> 
    6156      <Name>DINOOOOOOO</Name> 
     
    6358      <Processor>TextureProcessor</Processor> 
    6459    </Compile> 
    65     <Content Include="taso1.txt"> 
     60    <Compile Include="se ilkee possuli.png"> 
     61      <Name>se ilkee possuli</Name> 
     62      <Importer>TextureImporter</Importer> 
     63      <Processor>TextureProcessor</Processor> 
     64    </Compile> 
     65    <Compile Include="taso1.txt"> 
    6666      <Name>taso1</Name> 
    6767      <Importer>TextFileImporter</Importer> 
    68     </Content> 
     68      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 
     69    </Compile> 
    6970    <Compile Include="Timantti.png"> 
    7071      <Name>Timantti</Name> 
     72      <Importer>TextureImporter</Importer> 
     73      <Processor>TextureProcessor</Processor> 
     74    </Compile> 
     75  </ItemGroup> 
     76  <ItemGroup> 
     77    <Compile Include="lavava.png"> 
     78      <Name>lavava</Name> 
    7179      <Importer>TextureImporter</Importer> 
    7280      <Processor>TextureProcessor</Processor> 
  • 2017/24/EllaT/The Dinosaur/The Dinosaur/The DinosaurContent/taso1.txt

    r8734 r8798  
    1 ................................................................................................................. 
    2 ................................................................................................................. 
    3 ...........................................p....d.......d........................................................ 
    4 ...............................................###......#........................................................ 
    5 ................................d........................................d....................................... 
    6 ...d..........................####......................................##....................................... 
    7 ...##..............p............................................................................................. 
    8 ..............d........................d.d................####...................d...........##.................. 
    9 .............###.....................#######....................................###................p............. 
    10 .€..................................................................d.d.d..................................d.... 
    11 ###########...............###...................##.................#######...............................######## 
    12 lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll 
     1..................................................................................................................................................... 
     2..................................................................................................................................................... 
     3...........................................p.d..........d......d..................................................................................... 
     4.........................................########......#########..................................................................................... 
     5...................................d................................................................................................................. 
     6...d..........d...............##########.....................................############............................................................ 
     7..##############.......................................p..........d........................................................d......................... 
     8...................d...............................d..........##########...........................d..................##########..................... 
     9.............##############.....................#########....................................###########....................................p........ 
     10.....D.................................................................................d............................................................. 
     11###########...............###############...................###########...........##############........................................############# 
     12lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll 
  • 2017/24/EllaT/The Dinosaur/The Dinosaur/The_Dinosaur/The_Dinosaur.csproj.Debug.cachefile

    r8734 r8798  
     1Content\kivi.xnb 
    12Content\DINOOOOOOO.xnb 
    2 Content\kivi.xnb 
     3Content\se ilkee possuli.xnb 
    34Content\Timantti.xnb 
    4 Content\se ilkee possuli.xnb 
     5Content\taso1.xnb 
     6Content\lavava.xnb 
     7Content\taso1.txt 
  • 2017/24/EllaT/The Dinosaur/The Dinosaur/The_Dinosaur/The_Dinosauriu.cs

    r8734 r8798  
    2222    Image timu = LoadImage("Timantti"); 
    2323 
     24    PhysicsObject laava; 
     25    Image laavaa = LoadImage("lavava"); 
     26 
    2427 
    2528    public override void Begin() 
     
    2730    { 
    2831 
    29          
    30  
    31         dino = new PlatformCharacter(175.0, 150.0); 
    32         dino.Image = dinokuva; 
    33         dino.Tag = "dino"; 
    34         Add(dino); 
    35         dino.X = -750.0; 
    36         dino.Y = 0.0; 
    37  
     32        LuoKentta(); 
     33 
     34        Luopistelaskuri(); 
     35 
     36         
     37 
     38         
    3839         
    3940 
    4041        Level.Background.Color = Color.SkyBlue; 
    4142 
    42         PhysicsObject palikka = new PhysicsObject(100.0, 100.0); 
    43         palikka.Image = kivikuva; 
    44         palikka.MakeStatic(); 
    45         Add(palikka); 
    46  
    47  
    48  
    49         PhysicsObject sika = new PhysicsObject(150.0, 150.0); 
    50         sika.Image = possukuva; 
    51         sika.MakeStatic(); 
    52         sika.Tag = "sika"; 
    53         Add(sika); 
    54         sika.Oscillate(new Vector(1.0, 0.0), 500.0, 0.15); 
    55  
    56         PhysicsObject timantti = PhysicsObject.CreateStaticObject(30.0, 25.0); 
    57         timantti.Image = timu; 
    58         timantti.Tag = "timantti"; 
    59         Add(timantti); 
    60  
    61         PhysicsObject laava = PhysicsObject.CreateStaticObject(1000.0, 75.0); 
    62         laava.Tag = "laava"; 
    63         Add(laava); 
    64  
     43 
     44 
     45        Level.CreateBorders(1.0, false); 
     46 
     47        Camera.ZoomToLevel(); 
     48        
     49 
     50         
     51 
     52         
     53 
     54         
    6555        Gravity = new Vector(0.0, -600.0); 
    6656 
    6757 
    68         Vector impulssi = new Vector(500.0, 0.0); 
    69         sika.Hit(impulssi); 
     58         
    7059 
    7160 
     
    10594        ruudut.SetTileMethod('d', LuoTimantti); 
    10695        ruudut.SetTileMethod('l', LuoLaava); 
    107         ruudut.SetTileMethod('¤', LuoDino); 
     96        ruudut.SetTileMethod('D', LuoDino); 
     97        ruudut.Execute(); 
     98         
    10899    } 
    109100 
    110101    void LuoPalikka(Vector paikka, double leveys, double korkeus) 
    111102    { 
    112         PhysicsObject palikka = PhysicsObject.CreateStaticObject(100, 100); 
     103        PhysicsObject palikka = PhysicsObject.CreateStaticObject(leveys, korkeus); 
     104        palikka.Image = kivikuva; 
    113105        palikka.Position = paikka; 
    114         palikka.Shape = Shape.Rectangle; 
    115106        Add(palikka); 
    116107 
     108 
    117109    } 
    118110 
    119111    void LuoSika(Vector paikka, double leveys, double korkeus) 
    120112    { 
    121         PhysicsObject sika = PhysicsObject.CreateStaticObject(150.0, 150.0); 
     113        PhysicsObject sika = new PhysicsObject(50.0, 50.0); 
     114        sika.Image = possukuva; 
     115        sika.MakeStatic(); 
    122116        sika.Position = paikka; 
     117        sika.Tag = "sika"; 
    123118        Add(sika); 
     119        sika.Oscillate(new Vector(0.5, 0.0), 200.0, 0.10); 
     120 
     121        Vector impulssi = new Vector(500.0, 0.0); 
     122        sika.Hit(impulssi); 
     123 
     124        //AddCollisionHandler<PlatformCharacter, PhysicsObject>(dino, Tormays);    
    124125    } 
    125126 
    126127    void LuoTimantti(Vector paikka, double leveys, double korkeus) 
    127128    { 
    128         PhysicsObject timantti = PhysicsObject.CreateStaticObject(30.0, 25.0); 
     129        PhysicsObject timantti = PhysicsObject.CreateStaticObject(25.0, 20.0); 
     130        timantti.Image = timu; 
     131        timantti.Tag = "timantti"; 
    129132        timantti.Position = paikka; 
    130133        Add(timantti); 
     
    134137    void LuoLaava(Vector paikka, double leveys, double korkeus) 
    135138    { 
    136         PhysicsObject laava = PhysicsObject.CreateStaticObject(1000.0, 75.0); 
     139        PhysicsObject laava = PhysicsObject.CreateStaticObject(leveys, korkeus); 
     140        laava.Tag = "laava"; 
     141        laava.Image = laavaa; 
    137142        laava.Position = paikka; 
    138143        Add(laava); 
    139144 
     145 
    140146    } 
    141147 
    142148    void LuoDino(Vector paikka, double leveys, double korkeus) 
    143149    { 
    144         dino = new PlatformCharacter(215.0, 200.0); 
     150        dino = new PlatformCharacter(50.0, 41.3); 
    145151        dino.Image = dinokuva; 
    146152        dino.Tag = "dino"; 
     153        dino.Position = paikka; 
     154        Add(dino); 
     155        AddCollisionHandler(dino, "sika", Tormays); 
     156        AddCollisionHandler(dino, "timantti", TimanttienKeraaminen); 
     157        AddCollisionHandler(dino, "laava", LaavaanTippuminen); 
     158 
     159    } 
     160 
     161     
     162 
     163    void Tormays( PhysicsObject dino, PhysicsObject sika) 
     164    { 
     165        dino.Destroy(); 
     166        MessageDisplay.Add("Hävisit :("); 
     167     } 
     168 
     169    void TimanttienKeraaminen( PhysicsObject dino, PhysicsObject timantti) 
     170    { 
     171        timantti.Destroy(); 
     172        pisteLaskuri.Value += 1; 
     173        if (pisteLaskuri.Value == 12) 
     174        { 
     175            KaikkiKeratty(); 
     176 
     177        } 
     178    } 
     179 
     180    void Tuhoutuminen() 
     181    { 
    147182        AddCollisionHandler(dino, sika, CollisionHandler.DestroyObject); 
    148         Add(dino); 
    149  
    150     } 
    151  
     183            } 
     184 
     185    void LaavaanTippuminen(PhysicsObject dino, PhysicsObject laava) 
     186    { 
     187        dino.Destroy(); 
     188        MessageDisplay.Add("Hävisit :("); 
     189    } 
     190 
     191    IntMeter pisteLaskuri; 
     192    void Luopistelaskuri() 
     193    { 
     194        pisteLaskuri = new IntMeter(0); 
     195 
     196        Label pisteNaytto = new Label(); 
     197        pisteNaytto.X = Screen.Left + 100; 
     198        pisteNaytto.Y = Screen.Top - 100; 
     199        pisteNaytto.TextColor = Color.Black; 
     200        pisteNaytto.Color = Color.SkyBlue; 
     201 
     202         
     203 
     204        pisteNaytto.BindTo(pisteLaskuri); 
     205        IntMeter laskuri = new IntMeter(1); 
     206        pisteNaytto.Title = "Timantit"; 
     207        IntMeter keratytEsineet = new IntMeter(0); 
     208        laskuri.MaxValue = 12; 
     209        laskuri.UpperLimit += KaikkiKeratty; 
     210        Add(pisteNaytto); 
     211    } 
    152212    
     213    void KaikkiKeratty() 
     214    { 
     215        MessageDisplay.Add("Voitit pelin!"); 
     216 
     217    } 
     218 
     219     
    153220 
    154221} 
  • 2017/24/EllaT/The Dinosaur/The Dinosaur/The_Dinosaur/obj/x86/Debug/ContentPipeline-{EAFFB680-83BD-447F-868C-DA316CC3F253}.xml

    r8734 r8798  
    22<XnaContent xmlns:Pipeline="Microsoft.Xna.Framework.Content.Pipeline"> 
    33  <Asset Type="Pipeline:BuildItemCollection"> 
     4    <Item> 
     5      <Source>kivi.jpg</Source> 
     6      <Name>kivi</Name> 
     7      <Importer>TextureImporter</Importer> 
     8      <Processor>TextureProcessor</Processor> 
     9      <Options>None</Options> 
     10      <Output>C:\MyTemp\EllaT\The Dinosaur\The Dinosaur\The_Dinosaur\bin\x86\Debug\Content\kivi.xnb</Output> 
     11      <Time>2017-06-15T10:07:03.6089808+03:00</Time> 
     12    </Item> 
    413    <Item> 
    514      <Source>DINOOOOOOO.png</Source> 
     
    1221    </Item> 
    1322    <Item> 
    14       <Source>kivi.jpg</Source> 
    15       <Name>kivi</Name> 
     23      <Source>se ilkee possuli.png</Source> 
     24      <Name>se ilkee possuli</Name> 
    1625      <Importer>TextureImporter</Importer> 
    1726      <Processor>TextureProcessor</Processor> 
    1827      <Options>None</Options> 
    19       <Output>C:\MyTemp\EllaT\The Dinosaur\The Dinosaur\The_Dinosaur\bin\x86\Debug\Content\kivi.xnb</Output> 
    20       <Time>2017-06-15T10:07:03.6089808+03:00</Time> 
     28      <Output>C:\MyTemp\EllaT\The Dinosaur\The Dinosaur\The_Dinosaur\bin\x86\Debug\Content\se ilkee possuli.xnb</Output> 
     29      <Time>2017-06-16T09:33:50.8402354+03:00</Time> 
    2130    </Item> 
    2231    <Item> 
     
    3039    </Item> 
    3140    <Item> 
    32       <Source>se ilkee possuli.jpg</Source> 
    33       <Name>se ilkee possuli</Name> 
     41      <Source>taso1.txt</Source> 
     42      <Name>taso1</Name> 
     43      <Importer>TextFileImporter</Importer> 
     44      <Options>None</Options> 
     45      <Output>C:\MyTemp\EllaT\The Dinosaur\The Dinosaur\The_Dinosaur\bin\x86\Debug\Content\taso1.xnb</Output> 
     46      <Time>2017-06-16T11:11:10.317088+03:00</Time> 
     47    </Item> 
     48    <Item> 
     49      <Source>lavava.png</Source> 
     50      <Name>lavava</Name> 
    3451      <Importer>TextureImporter</Importer> 
    3552      <Processor>TextureProcessor</Processor> 
    3653      <Options>None</Options> 
    37       <Output>C:\MyTemp\EllaT\The Dinosaur\The Dinosaur\The_Dinosaur\bin\x86\Debug\Content\se ilkee possuli.xnb</Output> 
    38       <Time>2017-06-15T14:30:49.7660836+03:00</Time> 
     54      <Output>C:\MyTemp\EllaT\The Dinosaur\The Dinosaur\The_Dinosaur\bin\x86\Debug\Content\lavava.xnb</Output> 
     55      <Time>2017-06-16T10:14:35.601102+03:00</Time> 
    3956    </Item> 
    4057    <BuildSuccessful>true</BuildSuccessful> 
  • 2017/24/EllaT/The Dinosaur/The Dinosaur/The_Dinosaur/obj/x86/Debug/The_Dinosaur.csproj.FileListAbsolute.txt

    r8734 r8798  
    1111C:\MyTemp\EllaT\The Dinosaur\The Dinosaur\The_Dinosaur\bin\x86\Debug\Jypeli.dll 
    1212C:\MyTemp\EllaT\The Dinosaur\The Dinosaur\The_Dinosaur\bin\x86\Debug\Jypeli.xml 
    13 C:\MyTemp\EllaT\The Dinosaur\The Dinosaur\The_Dinosaur\obj\x86\Debug\The_Dinosaur.csprojResolveAssemblyReference.cache 
    1413C:\MyTemp\EllaT\The Dinosaur\The Dinosaur\The_Dinosaur\obj\x86\Debug\Microsoft.Xna.Framework.RuntimeProfile.txt 
    1514C:\MyTemp\EllaT\The Dinosaur\The Dinosaur\The_Dinosaur\obj\x86\Debug\The_Dinosaur.exe 
     
    1918C:\MyTemp\EllaT\The Dinosaur\The Dinosaur\The_Dinosaur\bin\x86\Debug\Content\kivi.xnb 
    2019C:\MyTemp\EllaT\The Dinosaur\The Dinosaur\The_Dinosaur\bin\x86\Debug\Content\Timantti.xnb 
     20C:\MyTemp\EllaT\The Dinosaur\The Dinosaur\The_Dinosaur\bin\x86\Debug\Content\taso1.txt 
     21C:\MyTemp\EllaT\The Dinosaur\The Dinosaur\The_Dinosaur\bin\x86\Debug\Content\taso1.xnb 
     22C:\MyTemp\EllaT\The Dinosaur\The Dinosaur\The_Dinosaur\bin\x86\Debug\Content\lavava.xnb 
     23C:\MyTemp\EllaT\The Dinosaur\The Dinosaur\The_Dinosaur\obj\x86\Debug\The_Dinosaur.csprojResolveAssemblyReference.cache 
  • 2017/24/EllaT/The Dinosaur/The Dinosaur/The_Dinosaur/obj/x86/Debug/cachefile-{EAFFB680-83BD-447F-868C-DA316CC3F253}-targetpath.txt

    r8734 r8798  
     1Content\kivi.xnb 
    12Content\DINOOOOOOO.xnb 
    2 Content\kivi.xnb 
     3Content\se ilkee possuli.xnb 
    34Content\Timantti.xnb 
    4 Content\se ilkee possuli.xnb 
     5Content\taso1.xnb 
     6Content\lavava.xnb 
     7Content\taso1.txt 
Note: See TracChangeset for help on using the changeset viewer.