Changeset 5817 for 2014


Ignore:
Timestamp:
2015-03-14 14:54:06 (5 years ago)
Author:
sieerinn
Message:
 
Location:
2014/koodauskerho/38/FransM
Files:
7 added
22 edited

Legend:

Unmodified
Added
Removed
  • 2014/koodauskerho/38/FransM/Rölli/Rölli/Rölli/Rölli.cs

    r5807 r5817  
    1818    Image tahtiKuva = LoadImage("tahti"); 
    1919 
     20    Image kranaattiKuva = LoadImage("Kranaatti"); 
     21    Image sepelihammastiikeriKuva = LoadImage("Sepelihammastiikeri"); 
     22 
    2023    SoundEffect maaliAani = LoadSoundEffect("maali"); 
     24 
    2125 
    2226    public override void Begin() 
     
    3842        kentta.SetTileMethod('*', LisaaTahti); 
    3943        kentta.SetTileMethod('N', LisaaPelaaja); 
     44        kentta.SetTileMethod('V', LisaaVihu); 
     45 
    4046        kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 
    4147        Level.CreateBorders(); 
    4248        Level.Background.CreateGradient(Color.White, Color.SkyBlue); 
     49    } 
     50 
     51    void LisaaVihu(Vector paikka, double leveys, double korkeus) 
     52    { 
     53        PlatformCharacter vihu = new PlatformCharacter(leveys, korkeus); 
     54 
     55        vihu.Position = paikka; 
     56        vihu.Tag = "vihu"; 
     57        PlatformWandererBrain tasoAivot = new PlatformWandererBrain(); 
     58        tasoAivot.Speed = 1000; 
     59        vihu.Brain = tasoAivot; 
     60        vihu.Image = sepelihammastiikeriKuva; 
     61        Add(vihu); 
    4362    } 
    4463 
     
    4867        taso.Position = paikka; 
    4968        taso.Color = Color.Green; 
     69        taso.Tag = "taso"; 
    5070        Add(taso); 
    5171    } 
     
    6888        pelaaja1.Image = pelaajanKuva; 
    6989        AddCollisionHandler(pelaaja1, "tahti", TormaaTahteen); 
    70         Add(pelaaja1); 
     90        Add(pelaaja1);   
    7191    } 
     92 
    7293 
    7394    void LisaaNappaimet() 
     
    87108 
    88109        PhoneBackButton.Listen(ConfirmExit, "Lopeta peli"); 
     110 
     111        Keyboard.Listen(Key.F, ButtonState.Pressed, HeitaKranaatti, "Heittää kranaatti", pelaaja1); 
    89112    } 
    90113 
     
    93116        hahmo.Walk(nopeus); 
    94117    } 
     118 
     119 
     120    private Image[] ukkelinKavely = LoadImages("uk2anoik1", "uk2anoik2", "uk2anoik3"); 
     121 
    95122 
    96123    void Hyppaa(PlatformCharacter hahmo, double nopeus) 
     
    106133    } 
    107134 
    108 } 
     135    //Grenade kranaatti = new Grenade(4.0); 
     136    void HeitaKranaatti(PlatformCharacter pelaaja) 
     137    { 
     138        Grenade kranu = new Grenade(10.25); 
     139        kranu.Image = kranaattiKuva; 
     140        pelaaja.Throw(kranu, Angle.FromDegrees(30), 10000); 
     141        kranu.Explosion.ShockwaveReachesObject += KranaattiOsui; 
     142        kranu.Explosion.AddShockwaveHandler("vihollinen", KranaattiOsui); 
     143 
     144    } 
     145 
     146    void KranaattiOsui(IPhysicsObject rajahdyksenKohde, Vector v) 
     147    { 
     148        if (rajahdyksenKohde.Tag != "taso") 
     149        { 
     150            rajahdyksenKohde.Destroy(); 
     151        } 
     152    } 
     153 
     154    public class Peli : PhysicsGame 
     155{ 
     156    private Animation ukkelinKavely; 
     157 
     158    public override void Begin() 
     159    { 
     160         ukkelinKavely = LoadAnimation("norsu"); 
     161 
     162        { 
     163 
     164 
     165        } 
     166 
     167     
  • 2014/koodauskerho/38/FransM/Rölli/Rölli/Rölli/Rölli.csproj.Debug.cachefile

    r5807 r5817  
    33Content\tahti.xnb 
    44Content\kentta1.xnb 
     5Content\Kranaatti.xnb 
     6Content\Sepelihammastiikeri.xnb 
  • 2014/koodauskerho/38/FransM/Rölli/Rölli/Rölli/obj/x86/Debug/ContentPipeline-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}.xml

    r5807 r5817  
    99      <Options>None</Options> 
    1010      <Output>C:\MyTemp\FransM\Rölli\Rölli\Rölli\bin\x86\Debug\Content\maali.xnb</Output> 
    11       <Time>2015-02-14T12:30:49.0085951+02:00</Time> 
     11      <Time>2015-03-14T10:00:33.505949+02:00</Time> 
    1212    </Item> 
    1313    <Item> 
     
    1818      <Options>None</Options> 
    1919      <Output>C:\MyTemp\FransM\Rölli\Rölli\Rölli\bin\x86\Debug\Content\norsu.xnb</Output> 
    20       <Time>2015-02-14T13:55:22.0338368+02:00</Time> 
     20      <Time>2015-03-14T10:00:33.5527493+02:00</Time> 
    2121    </Item> 
    2222    <Item> 
     
    2727      <Options>None</Options> 
    2828      <Output>C:\MyTemp\FransM\Rölli\Rölli\Rölli\bin\x86\Debug\Content\tahti.xnb</Output> 
    29       <Time>2015-02-14T14:37:00.9016724+02:00</Time> 
     29      <Time>2015-03-14T10:00:33.6151497+02:00</Time> 
    3030    </Item> 
    3131    <Item> 
     
    3636      <Options>None</Options> 
    3737      <Output>C:\MyTemp\FransM\Rölli\Rölli\Rölli\bin\x86\Debug\Content\kentta1.xnb</Output> 
    38       <Time>2015-02-14T12:30:49.0055951+02:00</Time> 
     38      <Time>2015-03-14T13:19:58.6666493+02:00</Time> 
     39    </Item> 
     40    <Item> 
     41      <Source>Kranaatti.png</Source> 
     42      <Name>Kranaatti</Name> 
     43      <Importer>TextureImporter</Importer> 
     44      <Processor>TextureProcessor</Processor> 
     45      <Options>None</Options> 
     46      <Output>C:\MyTemp\FransM\Rölli\Rölli\Rölli\bin\x86\Debug\Content\Kranaatti.xnb</Output> 
     47      <Time>2015-03-14T11:13:08.0307102+02:00</Time> 
     48    </Item> 
     49    <Item> 
     50      <Source>Sepelihammastiikeri.png</Source> 
     51      <Name>Sepelihammastiikeri</Name> 
     52      <Importer>TextureImporter</Importer> 
     53      <Processor>TextureProcessor</Processor> 
     54      <Options>None</Options> 
     55      <Output>C:\MyTemp\FransM\Rölli\Rölli\Rölli\bin\x86\Debug\Content\Sepelihammastiikeri.xnb</Output> 
     56      <Time>2015-03-14T12:56:19.3160987+02:00</Time> 
    3957    </Item> 
    4058    <BuildSuccessful>true</BuildSuccessful> 
     
    85103      <Assembly> 
    86104        <Key>C:\Windows\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Content.Pipeline\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Content.Pipeline.dll</Key> 
    87         <Value>2012-07-09T09:25:47.1768662+03:00</Value> 
     105        <Value>2014-04-23T00:12:49.5168169+03:00</Value> 
    88106      </Assembly> 
    89107    </Assemblies> 
  • 2014/koodauskerho/38/FransM/Rölli/Rölli/Rölli/obj/x86/Debug/Rölli.csproj.FileListAbsolute.txt

    r5807 r5817  
    1111C:\MyTemp\FransM\Rölli\Rölli\Rölli\obj\x86\Debug\Rölli.exe 
    1212C:\MyTemp\FransM\Rölli\Rölli\Rölli\obj\x86\Debug\Rölli.pdb 
     13C:\MyTemp\FransM\Rölli\Rölli\Rölli\bin\x86\Debug\Content\Kranaatti.xnb 
     14C:\MyTemp\FransM\Rölli\Rölli\Rölli\bin\x86\Debug\Content\Sepelihammastiikeri.xnb 
  • 2014/koodauskerho/38/FransM/Rölli/Rölli/Rölli/obj/x86/Debug/cachefile-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}-targetpath.txt

    r5807 r5817  
    33Content\tahti.xnb 
    44Content\kentta1.xnb 
     5Content\Kranaatti.xnb 
     6Content\Sepelihammastiikeri.xnb 
  • 2014/koodauskerho/38/FransM/Rölli/Rölli/RölliContent/RölliContent.contentproj

    r5807 r5817  
    6767    </Compile> 
    6868  </ItemGroup> 
     69  <ItemGroup> 
     70    <Compile Include="Kranaatti.png"> 
     71      <Name>Kranaatti</Name> 
     72      <Importer>TextureImporter</Importer> 
     73      <Processor>TextureProcessor</Processor> 
     74    </Compile> 
     75  </ItemGroup> 
     76  <ItemGroup> 
     77    <Compile Include="Sepelihammastiikeri.png"> 
     78      <Name>Sepelihammastiikeri</Name> 
     79      <Importer>TextureImporter</Importer> 
     80      <Processor>TextureProcessor</Processor> 
     81    </Compile> 
     82  </ItemGroup> 
    6983  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    7084  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
  • 2014/koodauskerho/38/FransM/Rölli/Rölli/RölliContent/kentta1.txt

    r5807 r5817  
    88     ##  ##  ## 
    99 
    10    *    *  *    *      
     10   *    *  *   V *      
    1111   ##  ##  ##  ## 
    1212 
     
    1414 ##  ##  ##  ##  ## 
    1515 
    16         N 
     16        N       V 
    1717###################### 
  • 2014/koodauskerho/38/FransM/Weaporage/Weaporage/Weaporage/Weaporage.cs

    r5807 r5817  
    296296        else if (asenumero == 6) 
    297297        { 
    298             PhysicsObject ase6 = new PhysicsObject(120, 400); 
     298            PhysicsObject ase6 = new PhysicsObject(120, 100); 
    299299            ase6.Position = asepaikka; 
    300300            ase6.Image = Pistoolinkuva; 
  • 2014/koodauskerho/38/FransM/Weaporage/Weaporage/Weaporage/obj/x86/Debug/ContentPipeline-{06B8DCF8-84D5-47F5-8E6A-9758023E8CEC}.xml

    r5807 r5817  
    99      <Options>None</Options> 
    1010      <Output>C:\MyTemp\FransM\Weaporage\Weaporage\Weaporage\bin\x86\Debug\Content\Miekka.xnb</Output> 
    11       <Time>2015-02-14T10:06:31.407468+02:00</Time> 
     11      <Time>2015-03-14T10:00:32.4763424+02:00</Time> 
    1212    </Item> 
    1313    <Item> 
     
    1818      <Options>None</Options> 
    1919      <Output>C:\MyTemp\FransM\Weaporage\Weaporage\Weaporage\bin\x86\Debug\Content\Nuija.xnb</Output> 
    20       <Time>2015-02-14T10:06:31.4354708+02:00</Time> 
     20      <Time>2015-03-14T10:00:32.5075426+02:00</Time> 
    2121    </Item> 
    2222    <Item> 
     
    2727      <Options>None</Options> 
    2828      <Output>C:\MyTemp\FransM\Weaporage\Weaporage\Weaporage\bin\x86\Debug\Content\Tikari.xnb</Output> 
    29       <Time>2015-02-14T10:06:31.4584731+02:00</Time> 
     29      <Time>2015-03-14T10:00:32.5543429+02:00</Time> 
    3030    </Item> 
    3131    <Item> 
     
    3636      <Options>None</Options> 
    3737      <Output>C:\MyTemp\FransM\Weaporage\Weaporage\Weaporage\bin\x86\Debug\Content\Vasara.xnb</Output> 
    38       <Time>2015-02-14T10:06:31.4514724+02:00</Time> 
     38      <Time>2015-03-14T10:00:32.5543429+02:00</Time> 
    3939    </Item> 
    4040    <Item> 
     
    4545      <Options>None</Options> 
    4646      <Output>C:\MyTemp\FransM\Weaporage\Weaporage\Weaporage\bin\x86\Debug\Content\Sauva.xnb</Output> 
    47       <Time>2015-02-14T10:06:31.4554728+02:00</Time> 
     47      <Time>2015-03-14T10:00:32.5543429+02:00</Time> 
    4848    </Item> 
    4949    <Item> 
     
    5454      <Options>None</Options> 
    5555      <Output>C:\MyTemp\FransM\Weaporage\Weaporage\Weaporage\bin\x86\Debug\Content\Pistooli.xnb</Output> 
    56       <Time>2015-02-14T10:06:31.4104683+02:00</Time> 
     56      <Time>2015-03-14T10:00:32.4919425+02:00</Time> 
    5757    </Item> 
    5858    <Item> 
     
    6363      <Options>None</Options> 
    6464      <Output>C:\MyTemp\FransM\Weaporage\Weaporage\Weaporage\bin\x86\Debug\Content\Luoti.xnb</Output> 
    65       <Time>2015-02-14T10:06:31.4034676+02:00</Time> 
     65      <Time>2015-03-14T10:00:32.4763424+02:00</Time> 
    6666    </Item> 
    6767    <Item> 
     
    7272      <Options>None</Options> 
    7373      <Output>C:\MyTemp\FransM\Weaporage\Weaporage\Weaporage\bin\x86\Debug\Content\Pommi1.xnb</Output> 
    74       <Time>2015-02-14T10:06:31.4144687+02:00</Time> 
     74      <Time>2015-03-14T10:00:32.4919425+02:00</Time> 
    7575    </Item> 
    7676    <Item> 
     
    8181      <Options>None</Options> 
    8282      <Output>C:\MyTemp\FransM\Weaporage\Weaporage\Weaporage\bin\x86\Debug\Content\Pommi2.xnb</Output> 
    83       <Time>2015-02-14T10:06:31.417469+02:00</Time> 
     83      <Time>2015-03-14T10:00:32.4919425+02:00</Time> 
    8484    </Item> 
    8585    <Item> 
     
    9090      <Options>None</Options> 
    9191      <Output>C:\MyTemp\FransM\Weaporage\Weaporage\Weaporage\bin\x86\Debug\Content\Pommi3.xnb</Output> 
    92       <Time>2015-02-14T10:06:31.4214694+02:00</Time> 
     92      <Time>2015-03-14T10:00:32.4919425+02:00</Time> 
    9393    </Item> 
    9494    <Item> 
     
    9999      <Options>None</Options> 
    100100      <Output>C:\MyTemp\FransM\Weaporage\Weaporage\Weaporage\bin\x86\Debug\Content\Pommi4.xnb</Output> 
    101       <Time>2015-02-14T10:06:31.4244697+02:00</Time> 
     101      <Time>2015-03-14T10:00:32.5075426+02:00</Time> 
    102102    </Item> 
    103103    <Item> 
     
    108108      <Options>None</Options> 
    109109      <Output>C:\MyTemp\FransM\Weaporage\Weaporage\Weaporage\bin\x86\Debug\Content\Pommi5.xnb</Output> 
    110       <Time>2015-02-14T10:06:31.4384711+02:00</Time> 
     110      <Time>2015-03-14T10:00:32.5387428+02:00</Time> 
    111111    </Item> 
    112112    <Item> 
     
    117117      <Options>None</Options> 
    118118      <Output>C:\MyTemp\FransM\Weaporage\Weaporage\Weaporage\bin\x86\Debug\Content\Pommi6.xnb</Output> 
    119       <Time>2015-02-14T10:06:31.4454718+02:00</Time> 
     119      <Time>2015-03-14T10:00:32.5387428+02:00</Time> 
    120120    </Item> 
    121121    <Item> 
     
    126126      <Options>None</Options> 
    127127      <Output>C:\MyTemp\FransM\Weaporage\Weaporage\Weaporage\bin\x86\Debug\Content\Pallo.xnb</Output> 
    128       <Time>2015-02-14T10:06:31.4414714+02:00</Time> 
     128      <Time>2015-03-14T10:00:32.5387428+02:00</Time> 
    129129    </Item> 
    130130    <Item> 
     
    135135      <Options>None</Options> 
    136136      <Output>C:\MyTemp\FransM\Weaporage\Weaporage\Weaporage\bin\x86\Debug\Content\Rajahdys.xnb</Output> 
    137       <Time>2015-02-14T10:52:30.455574+02:00</Time> 
     137      <Time>2015-03-14T10:00:32.5075426+02:00</Time> 
    138138    </Item> 
    139139    <BuildSuccessful>true</BuildSuccessful> 
     
    184184      <Assembly> 
    185185        <Key>C:\Windows\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Content.Pipeline\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Content.Pipeline.dll</Key> 
    186         <Value>2012-07-09T09:25:47.1768662+03:00</Value> 
     186        <Value>2014-04-23T00:12:49.5168169+03:00</Value> 
    187187      </Assembly> 
    188188    </Assemblies> 
Note: See TracChangeset for help on using the changeset viewer.