Changeset 3106 for 2012/24


Ignore:
Timestamp:
2012-06-15 12:12:27 (7 years ago)
Author:
juiitamm
Message:

Talletus.

Location:
2012/24/MattiV/Space Battle
Files:
8 added
11 edited

Legend:

Unmodified
Added
Removed
  • 2012/24/MattiV/Space Battle/Space Battle/Space Battle/Space Battle.csproj.Debug.cachefile

    r3031 r3106  
    55Content\ottelu musiikki.xnb 
    66Content\The Human Abstract - Crossing The Rubicon 8-Bit.xnb 
     7Content\Zapper 001.xnb 
     8Content\Blip 001.xnb 
     9Content\Blip 003.xnb 
     10Content\menukuva.xnb 
    711Content\ottelu musiikki.wma 
    812Content\The Human Abstract - Crossing The Rubicon 8-Bit.wma 
  • 2012/24/MattiV/Space Battle/Space Battle/Space Battle/Space_Battle.cs

    r3031 r3106  
    99class PeliHahmo : PhysicsObject 
    1010{ 
    11     public IntMeter Elamat = new IntMeter(3); 
     11    public IntMeter Elamat = new IntMeter(2); 
    1212    public IntMeter HP = new IntMeter(100); 
    1313 
     
    6868 
    6969        Cannon tykki = new Cannon(10, 10); 
    70         tykki.Power.DefaultValue = 10000; 
     70        tykki.Power.DefaultValue = 100000; 
     71        tykki.AttackSound = LoadSoundEffect("blip 003"); 
    7172 
    7273        PlasmaCannon plasmaTykki = new PlasmaCannon(10, 10); 
     74        plasmaTykki.AttackSound = LoadSoundEffect("Zapper 001"); 
    7375 
    7476        LaserGun laserPyssy = new LaserGun(10, 10); 
     77        laserPyssy.AttackSound = LoadSoundEffect("blip 001"); 
    7578 
    7679        Ase tykkiAse = new Ase(tykki, 30); 
     
    8790        AddCollisionHandler(alus2, laserAse, PelaajaOsuu); 
    8891        laserAse.Position = RandomGen.NextVector(500, -500); 
     92       
    8993 
    9094        Ase plasmaAse = new Ase(plasmaTykki, 2); 
     
    111115        } 
    112116    } 
    113  
    114117    public override void Begin() 
    115118    { 
    116119        AlustaPeli(); 
     120        MediaPlayer.Play("The Human Abstract - Crossing The Rubicon 8-bit"); 
     121        MultiSelectWindow valikko = new MultiSelectWindow("Tervetuloa peliin", 
     122        "Aloita peli", "Lopeta"); 
     123        valikko.ItemSelected += PainettiinValikonNappia; 
     124        Add(valikko); 
     125 
     126        Level.Background.Image = LoadImage("menukuva"); 
     127        Level.Background.FitToLevel(); 
    117128    } 
    118129    void Kuolema(int hp) 
     
    170181        pyssy.ProjectileCollision = AmmusOsui; 
    171182        pyssy.Ammo.Value = 50000000; 
     183        pyssy.AttackSound = LoadSoundEffect("blip 003"); 
    172184        alus1.Add(pyssy); 
    173         alus1.HP.LowerLimit += Kuolema; 
     185        alus1.HP.LowerLimit += delegate 
     186        { 
     187            Timer.SingleShot(1.0, delegate { Kuolema(0); }); 
     188        }; 
    174189        Add(alus1); 
    175190 
     
    183198        pysy.ProjectileCollision = AmmusOsui; 
    184199        pysy.Ammo.Value = 500000000; 
     200        pysy.AttackSound = LoadSoundEffect("blip 003"); 
    185201        alus2.Add(pysy); 
    186         alus2.HP.LowerLimit += Kuolema; 
     202        alus2.HP.LowerLimit += delegate 
     203        { 
     204            Timer.SingleShot(1.0, delegate { Kuolema(0); }); 
     205        }; 
    187206        Add(alus2); 
    188207 
     
    283302    } 
    284303 
     304    void PainettiinValikonNappia(int valinta) 
     305    { 
     306        switch (valinta) 
     307        { 
     308            case 0: 
     309                // AloitaPeli(); 
     310                Level.Background.Image = taustaKuva; 
     311                MediaPlayer.Play("ottelu musiikki"); 
     312                break; 
     313            case 1: 
     314                Exit(); 
     315                break; 
     316        } 
     317    } 
     318 
     319 
    285320 
    286321 
  • 2012/24/MattiV/Space Battle/Space Battle/Space Battle/obj/x86/Debug/ContentPipeline-{D91FD6EA-91A1-421B-B501-B38BD2CE5C8B}.xml

    r3031 r3106  
    5858      <Time>2012-06-14T11:49:13.1173958+03:00</Time> 
    5959    </Item> 
     60    <Item> 
     61      <Source>Zapper 001.wav</Source> 
     62      <Name>Zapper 001</Name> 
     63      <Importer>WavImporter</Importer> 
     64      <Processor>SoundEffectProcessor</Processor> 
     65      <Options>None</Options> 
     66      <Output>C:\MyTemp\MattiV\Space Battle\Space Battle\Space Battle\bin\x86\Debug\Content\Zapper 001.xnb</Output> 
     67      <Time>2012-06-15T09:46:48.2792246+03:00</Time> 
     68    </Item> 
     69    <Item> 
     70      <Source>Blip 001.wav</Source> 
     71      <Name>Blip 001</Name> 
     72      <Importer>WavImporter</Importer> 
     73      <Processor>SoundEffectProcessor</Processor> 
     74      <Options>None</Options> 
     75      <Output>C:\MyTemp\MattiV\Space Battle\Space Battle\Space Battle\bin\x86\Debug\Content\Blip 001.xnb</Output> 
     76      <Time>2012-06-15T09:46:48.1792246+03:00</Time> 
     77    </Item> 
     78    <Item> 
     79      <Source>Blip 003.wav</Source> 
     80      <Name>Blip 003</Name> 
     81      <Importer>WavImporter</Importer> 
     82      <Processor>SoundEffectProcessor</Processor> 
     83      <Options>None</Options> 
     84      <Output>C:\MyTemp\MattiV\Space Battle\Space Battle\Space Battle\bin\x86\Debug\Content\Blip 003.xnb</Output> 
     85      <Time>2012-06-15T09:46:48.2192246+03:00</Time> 
     86    </Item> 
     87    <Item> 
     88      <Source>menukuva.jpg</Source> 
     89      <Name>menukuva</Name> 
     90      <Importer>TextureImporter</Importer> 
     91      <Processor>TextureProcessor</Processor> 
     92      <Options>None</Options> 
     93      <Output>C:\MyTemp\MattiV\Space Battle\Space Battle\Space Battle\bin\x86\Debug\Content\menukuva.xnb</Output> 
     94      <Time>2012-06-15T11:37:50.6642185+03:00</Time> 
     95    </Item> 
    6096    <BuildSuccessful>true</BuildSuccessful> 
    6197    <Settings> 
  • 2012/24/MattiV/Space Battle/Space Battle/Space Battle/obj/x86/Debug/Space Battle.csproj.FileListAbsolute.txt

    r3031 r3106  
    1515C:\MyTemp\MattiV\Space Battle\Space Battle\Space Battle\bin\x86\Debug\Jypeli.dll 
    1616C:\MyTemp\MattiV\Space Battle\Space Battle\Space Battle\bin\x86\Debug\Jypeli.xml 
     17C:\MyTemp\MattiV\Space Battle\Space Battle\Space Battle\bin\x86\Debug\Content\Zapper 001.xnb 
     18C:\MyTemp\MattiV\Space Battle\Space Battle\Space Battle\bin\x86\Debug\Content\Blip 001.xnb 
     19C:\MyTemp\MattiV\Space Battle\Space Battle\Space Battle\bin\x86\Debug\Content\Blip 003.xnb 
     20C:\MyTemp\MattiV\Space Battle\Space Battle\Space Battle\bin\x86\Debug\Content\menukuva.xnb 
  • 2012/24/MattiV/Space Battle/Space Battle/Space Battle/obj/x86/Debug/cachefile-{D91FD6EA-91A1-421B-B501-B38BD2CE5C8B}-targetpath.txt

    r3031 r3106  
    77Content\The Human Abstract - Crossing The Rubicon 8-Bit.xnb 
    88Content\The Human Abstract - Crossing The Rubicon 8-Bit.wma 
     9Content\Zapper 001.xnb 
     10Content\Blip 001.xnb 
     11Content\Blip 003.xnb 
     12Content\menukuva.xnb 
  • 2012/24/MattiV/Space Battle/Space Battle/Space BattleContent/Space BattleContent.contentproj

    r3031 r3106  
    8686    </Compile> 
    8787  </ItemGroup> 
     88  <ItemGroup> 
     89    <Compile Include="Blip 001.wav"> 
     90      <Name>Blip 001</Name> 
     91      <Importer>WavImporter</Importer> 
     92      <Processor>SoundEffectProcessor</Processor> 
     93    </Compile> 
     94    <Compile Include="Blip 003.wav"> 
     95      <Name>Blip 003</Name> 
     96      <Importer>WavImporter</Importer> 
     97      <Processor>SoundEffectProcessor</Processor> 
     98    </Compile> 
     99    <Compile Include="Zapper 001.wav"> 
     100      <Name>Zapper 001</Name> 
     101      <Importer>WavImporter</Importer> 
     102      <Processor>SoundEffectProcessor</Processor> 
     103    </Compile> 
     104  </ItemGroup> 
     105  <ItemGroup> 
     106    <Compile Include="menukuva.jpg"> 
     107      <Name>menukuva</Name> 
     108      <Importer>TextureImporter</Importer> 
     109      <Processor>TextureProcessor</Processor> 
     110    </Compile> 
     111  </ItemGroup> 
    88112  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    89113  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
Note: See TracChangeset for help on using the changeset viewer.