Changeset 6976 for 2015/30


Ignore:
Timestamp:
2015-07-23 12:42:27 (4 years ago)
Author:
aahalme
Message:

coool game mään

Location:
2015/30/EliasHy/SpaceAdventure
Files:
13 added
15 edited

Legend:

Unmodified
Added
Removed
  • 2015/30/EliasHy/SpaceAdventure/SpaceAdventure/SpaceAdventure/SpaceAdventure.cs

    r6961 r6976  
    1515    Image CoolAsteroidi = LoadImage("cool asteroid bu"); 
    1616    Image taustaKuva = LoadImage("cool space"); 
    17     Image Cloud = LoadImage("cloud"); 
     17    Image Cloud = LoadImage("Stuff"); 
    1818    Image Laser = LoadImage("laser"); 
    1919    Image Boss = LoadImage("Boss Ship_zpspn6osve5"); 
     
    2424    DoubleMeter elamaLaskuri; 
    2525 
    26     double eteenpain = 300; 
     26    double eteenpain = 500; 
    2727    double kaantyminen = 800; 
    2828 
     
    3030 
    3131    { 
    32         Valikko(); 
    33         
     32        Valikko();                
    3433    } 
    3534 
     
    9796        ruudut.SetTileMethod(Color.Gold, LuoAsteroidi); 
    9897        ruudut.SetTileMethod(Color.FromHexCode("FF0000"), LuoVihollinen2); 
    99        // ruudut.SetTileMethod(Color.FromHexCode("B200FF"), LuoReuna); 
    100  
    101         Level.CreateBorders(false); 
     98        ruudut.SetTileMethod(Color.FromHexCode("B200FF"), LuoReuna); 
     99        ruudut.SetTileMethod(Color.FromHexCode("1CFF32"), LuoBossi); 
     100 
     101        //Level.CreateBorders(); 
    102102 
    103103        //3. Execute luo kentän 
     
    106106    } 
    107107 
    108     //void LuoReuna(Vector paikka, double leveys, double korkeus) 
    109     //{ 
     108    void LuoReuna(Vector paikka, double leveys, double korkeus) 
     109    { 
    110110        //PhysicsObject Asteroidi = new PhysicsObject(10, 10); 
    111         //PhysicsObject Reuna = PhysicsObject.CreateStaticObject(Cloud); 
    112         //Reuna.Position = paikka; 
    113         //Reuna.Tag = "reuna"; 
    114       //  Add(Reuna); 
    115     // 
    116     //} 
     111        PhysicsObject Reuna = PhysicsObject.CreateStaticObject(Cloud); 
     112        Reuna.Position = paikka; 
     113        Reuna.Tag = "reuna"; 
     114        Add(Reuna); 
     115 
     116    } 
    117117 
    118118    void LuoPelaaja(Vector paikka, double leveys, double korkeus) 
     
    140140            PelaajaVahingoittuu(A, B, 3); 
    141141        }); 
     142 
     143        AddCollisionHandler(pelaaja, "bossi", delegate(PhysicsObject A, PhysicsObject B) 
     144        { 
     145            PelaajaVahingoittuu(A, B, 4); 
     146        }); 
    142147         
    143148        elamaLaskuri = new DoubleMeter(10); 
     
    170175 
    171176 
    172     } 
     177 
     178    } 
     179 
     180    void LuoBossi(Vector paikka, double leveys, double korkeus) 
     181    { 
     182        //PhysicsObject Vihollinen2 = new PhysicsObject(10, 10); 
     183        PhysicsObject Bossi = new PhysicsObject(Boss); 
     184        Bossi.Size = new Vector(100, 100); 
     185        Add(Bossi); 
     186 
     187        Bossi.Tag = "bossi"; 
     188        Bossi.Mass = 200; 
     189 
     190        FollowerBrain seuraajanAivot = new FollowerBrain("pelaaja"); 
     191        seuraajanAivot.Speed = 200; 
     192        Bossi.Brain = seuraajanAivot; 
     193 
     194    } 
     195 
     196 
     197 
    173198    void LuoAsteroidi(Vector paikka, double leveys, double korkeus) 
    174199    { 
     
    178203        Asteroidi.Position = paikka; 
    179204        Add(Asteroidi); 
     205        Asteroidi.Mass = 70; 
     206 
    180207        Asteroidi.Mass = 100; 
    181208        Asteroidi.Tag = "Asteroidi"; 
     209 
    182210 
    183211 
     
    192220        Add(Vihollinen2); 
    193221        Vihollinen2.Tag = "pahis2"; 
     222        Vihollinen2.Mass = 70; 
    194223 
    195224        //Tehdään uudet satunnaisaivot, jotka liikkuvat nopeudella 200 
     
    208237            kohde.Destroy(); 
    209238            pistelaskuri.Value += 100; 
     239            Explosion rajahdys = new Explosion(27); 
     240            rajahdys.Position = kohde.Position; 
     241            Add(rajahdys); 
     242            //rajahdys.Image = rajahdysKuva; 
     243            //rajahdys.Sound = rajahdysAani; 
     244            pelaaja.IgnoresExplosions = true; 
    210245        } 
    211246        ammus.Destroy(); 
  • 2015/30/EliasHy/SpaceAdventure/SpaceAdventure/SpaceAdventure/SpaceAdventure.csproj.Debug.cachefile

    r6951 r6976  
    77Content\Boss Ship_zpspn6osve5.xnb 
    88Content\enemy ship 2.xnb 
    9 Content\cloud.xnb 
    109Content\laser.xnb 
     10Content\Stuff.xnb 
  • 2015/30/EliasHy/SpaceAdventure/SpaceAdventure/SpaceAdventure/obj/x86/Debug/SpaceAdventure.csproj.FileListAbsolute.txt

    r6954 r6976  
    1717C:\MyTemp\EliasHy\SpaceAdventure\SpaceAdventure\SpaceAdventure\obj\x86\Debug\SpaceAdventure.exe 
    1818C:\MyTemp\EliasHy\SpaceAdventure\SpaceAdventure\SpaceAdventure\obj\x86\Debug\SpaceAdventure.pdb 
     19C:\MyTemp\hyva\SpaceAdventure\SpaceAdventure\obj\x86\Debug\SpaceAdventure.csprojResolveAssemblyReference.cache 
     20C:\MyTemp\hyva\SpaceAdventure\SpaceAdventure\obj\x86\Debug\Microsoft.Xna.Framework.RuntimeProfile.txt 
     21C:\MyTemp\hyva\SpaceAdventure\SpaceAdventure\obj\x86\Debug\SpaceAdventure.exe 
     22C:\MyTemp\hyva\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\cool tausta.xnb 
     23C:\MyTemp\hyva\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\cool alus.xnb 
     24C:\MyTemp\hyva\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\cool asteroid bu.xnb 
     25C:\MyTemp\hyva\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\coolhyvisalus.xnb 
     26C:\MyTemp\hyva\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\coolasteroidya.xnb 
     27C:\MyTemp\hyva\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\cool space.xnb 
     28C:\MyTemp\hyva\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\Boss Ship_zpspn6osve5.xnb 
     29C:\MyTemp\hyva\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\enemy ship 2.xnb 
     30C:\MyTemp\hyva\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\laser.xnb 
     31C:\MyTemp\hyva\SpaceAdventure\SpaceAdventure\bin\x86\Debug\SpaceAdventure.exe 
     32C:\MyTemp\hyva\SpaceAdventure\SpaceAdventure\bin\x86\Debug\SpaceAdventure.pdb 
     33C:\MyTemp\hyva\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Jypeli.dll 
     34C:\MyTemp\hyva\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Jypeli.xml 
     35C:\MyTemp\hyva\SpaceAdventure\SpaceAdventure\obj\x86\Debug\SpaceAdventure.pdb 
     36C:\MyTemp\hyva\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\Stuff.xnb 
  • 2015/30/EliasHy/SpaceAdventure/SpaceAdventure/SpaceAdventure/obj/x86/Debug/cachefile-{A53A8295-A762-4A93-989B-CDE36F5CC9A7}-targetpath.txt

    r6951 r6976  
    77Content\Boss Ship_zpspn6osve5.xnb 
    88Content\enemy ship 2.xnb 
    9 Content\cloud.xnb 
    109Content\laser.xnb 
     10Content\Stuff.xnb 
  • 2015/30/EliasHy/SpaceAdventure/SpaceAdventure/SpaceAdventureContent/SpaceAdventureContent.contentproj

    r6951 r6976  
    102102  </ItemGroup> 
    103103  <ItemGroup> 
    104     <Compile Include="cloud.png"> 
    105       <Name>cloud</Name> 
     104    <Compile Include="laser.png"> 
     105      <Name>laser</Name> 
    106106      <Importer>TextureImporter</Importer> 
    107107      <Processor>TextureProcessor</Processor> 
    108108    </Compile> 
    109     <Compile Include="laser.png"> 
    110       <Name>laser</Name> 
     109  </ItemGroup> 
     110  <ItemGroup> 
     111    <Compile Include="Stuff.png"> 
     112      <Name>Stuff</Name> 
    111113      <Importer>TextureImporter</Importer> 
    112114      <Processor>TextureProcessor</Processor> 
  • 2015/30/EliasHy/SpaceAdventure/SpaceAdventure/SpaceAdventureContent/obj/x86/Debug/ContentPipeline.xml

    r6954 r6976  
    88      <Processor>TextureProcessor</Processor> 
    99      <Options>None</Options> 
    10       <Output>C:\MyTemp\EliasHy\SpaceAdventure\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\cool tausta.xnb</Output> 
    11       <Time>2015-07-22T12:37:40.9096187+03:00</Time> 
     10      <Output>C:\MyTemp\hyva\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\cool tausta.xnb</Output> 
     11      <Time>2015-07-23T12:17:59.4044483+03:00</Time> 
    1212    </Item> 
    1313    <Item> 
     
    1717      <Processor>TextureProcessor</Processor> 
    1818      <Options>None</Options> 
    19       <Output>C:\MyTemp\EliasHy\SpaceAdventure\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\cool alus.xnb</Output> 
    20       <Time>2015-07-21T14:12:05.8146469+03:00</Time> 
     19      <Output>C:\MyTemp\hyva\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\cool alus.xnb</Output> 
     20      <Time>2015-07-23T09:45:06.3229068+03:00</Time> 
    2121    </Item> 
    2222    <Item> 
     
    2626      <Processor>TextureProcessor</Processor> 
    2727      <Options>None</Options> 
    28       <Output>C:\MyTemp\EliasHy\SpaceAdventure\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\cool asteroid bu.xnb</Output> 
    29       <Time>2015-07-21T14:55:03.3357265+03:00</Time> 
     28      <Output>C:\MyTemp\hyva\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\cool asteroid bu.xnb</Output> 
     29      <Time>2015-07-23T09:45:06.3069068+03:00</Time> 
    3030    </Item> 
    3131    <Item> 
     
    3535      <Processor>TextureProcessor</Processor> 
    3636      <Options>None</Options> 
    37       <Output>C:\MyTemp\EliasHy\SpaceAdventure\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\coolhyvisalus.xnb</Output> 
    38       <Time>2015-07-22T11:35:17.1851187+03:00</Time> 
     37      <Output>C:\MyTemp\hyva\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\coolhyvisalus.xnb</Output> 
     38      <Time>2015-07-23T09:45:06.3329068+03:00</Time> 
    3939    </Item> 
    4040    <Item> 
     
    4444      <Processor>TextureProcessor</Processor> 
    4545      <Options>None</Options> 
    46       <Output>C:\MyTemp\EliasHy\SpaceAdventure\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\coolasteroidya.xnb</Output> 
    47       <Time>2015-07-21T14:55:35.1129265+03:00</Time> 
     46      <Output>C:\MyTemp\hyva\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\coolasteroidya.xnb</Output> 
     47      <Time>2015-07-23T09:45:06.3259068+03:00</Time> 
    4848    </Item> 
    4949    <Item> 
     
    5353      <Processor>TextureProcessor</Processor> 
    5454      <Options>None</Options> 
    55       <Output>C:\MyTemp\EliasHy\SpaceAdventure\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\cool space.xnb</Output> 
    56       <Time>2015-07-22T11:05:32.8286354+03:00</Time> 
     55      <Output>C:\MyTemp\hyva\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\cool space.xnb</Output> 
     56      <Time>2015-07-23T09:45:06.4709068+03:00</Time> 
    5757    </Item> 
    5858    <Item> 
     
    6262      <Processor>TextureProcessor</Processor> 
    6363      <Options>None</Options> 
    64       <Output>C:\MyTemp\EliasHy\SpaceAdventure\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\Boss Ship_zpspn6osve5.xnb</Output> 
    65       <Time>2015-07-22T12:56:39.8323187+03:00</Time> 
     64      <Output>C:\MyTemp\hyva\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\Boss Ship_zpspn6osve5.xnb</Output> 
     65      <Time>2015-07-23T09:45:06.3039068+03:00</Time> 
    6666    </Item> 
    6767    <Item> 
     
    7171      <Processor>TextureProcessor</Processor> 
    7272      <Options>None</Options> 
    73       <Output>C:\MyTemp\EliasHy\SpaceAdventure\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\enemy ship 2.xnb</Output> 
    74       <Time>2015-07-22T13:01:57.3205187+03:00</Time> 
    75     </Item> 
    76     <Item> 
    77       <Source>cloud.png</Source> 
    78       <Name>cloud</Name> 
    79       <Importer>TextureImporter</Importer> 
    80       <Processor>TextureProcessor</Processor> 
    81       <Options>None</Options> 
    82       <Output>C:\MyTemp\EliasHy\SpaceAdventure\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\cloud.xnb</Output> 
    83       <Time>2015-07-23T09:57:07.8638619+03:00</Time> 
     73      <Output>C:\MyTemp\hyva\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\enemy ship 2.xnb</Output> 
     74      <Time>2015-07-23T09:45:06.3299068+03:00</Time> 
    8475    </Item> 
    8576    <Item> 
     
    8980      <Processor>TextureProcessor</Processor> 
    9081      <Options>None</Options> 
    91       <Output>C:\MyTemp\EliasHy\SpaceAdventure\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\laser.xnb</Output> 
    92       <Time>2015-07-23T09:57:07.8638619+03:00</Time> 
     82      <Output>C:\MyTemp\hyva\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\laser.xnb</Output> 
     83      <Time>2015-07-23T09:46:46.4089068+03:00</Time> 
     84    </Item> 
     85    <Item> 
     86      <Source>Stuff.png</Source> 
     87      <Name>Stuff</Name> 
     88      <Importer>TextureImporter</Importer> 
     89      <Processor>TextureProcessor</Processor> 
     90      <Options>None</Options> 
     91      <Output>C:\MyTemp\hyva\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\Stuff.xnb</Output> 
     92      <Time>2015-07-23T11:23:12.2378915+03:00</Time> 
    9393    </Item> 
    9494    <BuildSuccessful>true</BuildSuccessful> 
     
    9898      <BuildConfiguration>Debug</BuildConfiguration> 
    9999      <CompressContent>false</CompressContent> 
    100       <RootDirectory>C:\MyTemp\EliasHy\SpaceAdventure\SpaceAdventure\SpaceAdventureContent\</RootDirectory> 
    101       <LoggerRootDirectory>C:\MyTemp\EliasHy\SpaceAdventure\SpaceAdventure\SpaceAdventure\</LoggerRootDirectory> 
    102       <IntermediateDirectory>C:\MyTemp\EliasHy\SpaceAdventure\SpaceAdventure\SpaceAdventureContent\obj\x86\Debug\</IntermediateDirectory> 
    103       <OutputDirectory>C:\MyTemp\EliasHy\SpaceAdventure\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\</OutputDirectory> 
     100      <RootDirectory>C:\MyTemp\hyva\SpaceAdventure\SpaceAdventureContent\</RootDirectory> 
     101      <LoggerRootDirectory>C:\MyTemp\hyva\SpaceAdventure\SpaceAdventure\</LoggerRootDirectory> 
     102      <IntermediateDirectory>C:\MyTemp\hyva\SpaceAdventure\SpaceAdventureContent\obj\x86\Debug\</IntermediateDirectory> 
     103      <OutputDirectory>C:\MyTemp\hyva\SpaceAdventure\SpaceAdventure\bin\x86\Debug\Content\</OutputDirectory> 
    104104    </Settings> 
    105105    <Assemblies> 
     
    138138      <Assembly> 
    139139        <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> 
    140         <Value>2015-07-09T14:51:24.2760228+03:00</Value> 
     140        <Value>2015-07-09T14:19:15.2277481+03:00</Value> 
    141141      </Assembly> 
    142142    </Assemblies> 
Note: See TracChangeset for help on using the changeset viewer.