Changeset 7937


Ignore:
Timestamp:
2016-07-07 11:29:42 (3 years ago)
Author:
saalniit
Message:

kentän päivitys ja lisää vihollisia

Location:
2016/27/SamuelN/PlatformJumper
Files:
6 added
4 deleted
13 edited

Legend:

Unmodified
Added
Removed
  • 2016/27/SamuelN/PlatformJumper/PlatformJumper/PlatformJumper/PlatformJumper.cs

    r7900 r7937  
    1919    Image tahtiKuva = LoadImage("Diamond"); 
    2020    Image ruohokuva = LoadImage("ruoho"); 
    21     Image vihukuva = LoadImage("pig"); 
     21    Image vihukuva = LoadImage("invader"); 
    2222 
    2323 
    24     SoundEffect maaliAani = LoadSoundEffect("maali"); 
     24    SoundEffect coinAani = LoadSoundEffect("pickup"); 
     25    SoundEffect jumpAani = LoadSoundEffect("Jump"); 
    2526 
    2627 
     
    106107    { 
    107108        hahmo.Jump(nopeus); 
     109        jumpAani.Play(); 
    108110    } 
    109111 
    110112    void TormaaTahteen(PhysicsObject hahmo, PhysicsObject tahti) 
    111113    { 
    112         maaliAani.Play(); 
     114        coinAani.Play(); 
    113115        pisteLaskuri.Value += 1; 
    114116        tahti.Destroy(); 
    115  
    116         Explosion rajahdys = new Explosion(50); 
    117         rajahdys.Position = tahti.Position; 
    118         Add(rajahdys); 
    119  
    120         rajahdys.Speed = 500.0; 
    121         rajahdys.Force = 10000; 
    122         pelaaja1.IgnoresExplosions = true; 
    123117 
    124118    } 
     
    132126        pisteNaytto.X = Screen.Left + 100; 
    133127        pisteNaytto.Y = Screen.Top - 100; 
    134         pisteNaytto.TextColor = Color.Black; 
    135         pisteNaytto.Color = Color.White; 
     128        pisteNaytto.TextColor = Color.White; 
     129        pisteNaytto.Color = Color.Blue; 
    136130 
    137131        pisteNaytto.BindTo(pisteLaskuri); 
     
    140134    void LisaaVihu(Vector paikka, double korkeus, double leveys) 
    141135    { 
    142     PhysicsObject vihu = new PhysicsObject(korkeus, leveys); 
     136        PlatformCharacter vihu = new PlatformCharacter(korkeus, leveys); 
    143137        vihu.Position = paikka; 
    144138        vihu.Image = vihukuva; 
    145139        Add(vihu); 
     140 
     141        PlatformWandererBrain tasoAivot = new PlatformWandererBrain(); 
     142        tasoAivot.Speed = 100; 
     143 
     144        vihu.Brain = tasoAivot; 
     145        tasoAivot.FallsOffPlatforms = true; 
     146        tasoAivot.JumpSpeed = 700; 
     147        tasoAivot.TriesToJump = true; 
     148 
     149    } 
    146150} 
    147 } 
  • 2016/27/SamuelN/PlatformJumper/PlatformJumper/PlatformJumper/PlatformJumper.csproj.Debug.cachefile

    r7900 r7937  
    1 Content\maali.xnb 
    21Content\kentta1.xnb 
    32Content\player.xnb 
     
    54Content\ruoho.xnb 
    65Content\wallpaper.xnb 
    7 Content\pig.xnb 
     6Content\invader.xnb 
     7Content\pickup.xnb 
     8Content\Jump.xnb 
  • 2016/27/SamuelN/PlatformJumper/PlatformJumper/PlatformJumper/obj/x86/Debug/ContentPipeline-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}.xml

    r7900 r7937  
    22<XnaContent xmlns:Pipeline="Microsoft.Xna.Framework.Content.Pipeline"> 
    33  <Asset Type="Pipeline:BuildItemCollection"> 
    4     <Item> 
    5       <Source>maali.wav</Source> 
    6       <Name>maali</Name> 
    7       <Importer>WavImporter</Importer> 
    8       <Processor>SoundEffectProcessor</Processor> 
    9       <Options>None</Options> 
    10       <Output>C:\MyTemp\SamuelN\PlatformJumper\PlatformJumper\PlatformJumper\bin\x86\Debug\Content\maali.xnb</Output> 
    11       <Time>2016-07-05T14:34:43.2147057+03:00</Time> 
    12     </Item> 
    134    <Item> 
    145      <Source>kentta1.txt</Source> 
     
    189      <Options>None</Options> 
    1910      <Output>C:\MyTemp\SamuelN\PlatformJumper\PlatformJumper\PlatformJumper\bin\x86\Debug\Content\kentta1.xnb</Output> 
    20       <Time>2016-07-06T14:37:30.4950369+03:00</Time> 
     11      <Time>2016-07-07T11:24:05.9606409+03:00</Time> 
    2112    </Item> 
    2213    <Item> 
     
    5748    </Item> 
    5849    <Item> 
    59       <Source>pig.jpg</Source> 
    60       <Name>pig</Name> 
     50      <Source>invader.png</Source> 
     51      <Name>invader</Name> 
    6152      <Importer>TextureImporter</Importer> 
    6253      <Processor>TextureProcessor</Processor> 
    6354      <Options>None</Options> 
    64       <Output>C:\MyTemp\SamuelN\PlatformJumper\PlatformJumper\PlatformJumper\bin\x86\Debug\Content\pig.xnb</Output> 
    65       <Time>2016-07-06T14:53:14.5459367+03:00</Time> 
     55      <Output>C:\MyTemp\SamuelN\PlatformJumper\PlatformJumper\PlatformJumper\bin\x86\Debug\Content\invader.xnb</Output> 
     56      <Time>2016-07-07T11:04:11.1887335+03:00</Time> 
     57    </Item> 
     58    <Item> 
     59      <Source>pickup.wav</Source> 
     60      <Name>pickup</Name> 
     61      <Importer>WavImporter</Importer> 
     62      <Processor>SoundEffectProcessor</Processor> 
     63      <Options>None</Options> 
     64      <Output>C:\MyTemp\SamuelN\PlatformJumper\PlatformJumper\PlatformJumper\bin\x86\Debug\Content\pickup.xnb</Output> 
     65      <Time>2016-07-07T11:06:47.7314605+03:00</Time> 
     66    </Item> 
     67    <Item> 
     68      <Source>Jump.wav</Source> 
     69      <Name>Jump</Name> 
     70      <Importer>WavImporter</Importer> 
     71      <Processor>SoundEffectProcessor</Processor> 
     72      <Options>None</Options> 
     73      <Output>C:\MyTemp\SamuelN\PlatformJumper\PlatformJumper\PlatformJumper\bin\x86\Debug\Content\Jump.xnb</Output> 
     74      <Time>2016-07-07T11:09:36.8611391+03:00</Time> 
    6675    </Item> 
    6776    <BuildSuccessful>true</BuildSuccessful> 
  • 2016/27/SamuelN/PlatformJumper/PlatformJumper/PlatformJumper/obj/x86/Debug/PlatformJumper.csproj.FileListAbsolute.txt

    r7900 r7937  
    11C:\MyTemp\SamuelN\PlatformJumper\PlatformJumper\PlatformJumper\obj\x86\Debug\PlatformJumper.csprojResolveAssemblyReference.cache 
    22C:\MyTemp\SamuelN\PlatformJumper\PlatformJumper\PlatformJumper\obj\x86\Debug\Microsoft.Xna.Framework.RuntimeProfile.txt 
    3 C:\MyTemp\SamuelN\PlatformJumper\PlatformJumper\PlatformJumper\bin\x86\Debug\Content\maali.xnb 
    43C:\MyTemp\SamuelN\PlatformJumper\PlatformJumper\PlatformJumper\bin\x86\Debug\Content\kentta1.xnb 
    54C:\MyTemp\SamuelN\PlatformJumper\PlatformJumper\PlatformJumper\bin\x86\Debug\PlatformJumper.exe 
     
    1312C:\MyTemp\SamuelN\PlatformJumper\PlatformJumper\PlatformJumper\bin\x86\Debug\Content\ruoho.xnb 
    1413C:\MyTemp\SamuelN\PlatformJumper\PlatformJumper\PlatformJumper\bin\x86\Debug\Content\wallpaper.xnb 
    15 C:\MyTemp\SamuelN\PlatformJumper\PlatformJumper\PlatformJumper\bin\x86\Debug\Content\pig.xnb 
     14C:\MyTemp\SamuelN\PlatformJumper\PlatformJumper\PlatformJumper\bin\x86\Debug\Content\invader.xnb 
     15C:\MyTemp\SamuelN\PlatformJumper\PlatformJumper\PlatformJumper\bin\x86\Debug\Content\pickup.xnb 
     16C:\MyTemp\SamuelN\PlatformJumper\PlatformJumper\PlatformJumper\bin\x86\Debug\Content\Jump.xnb 
  • 2016/27/SamuelN/PlatformJumper/PlatformJumper/PlatformJumper/obj/x86/Debug/cachefile-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}-targetpath.txt

    r7900 r7937  
    1 Content\maali.xnb 
    21Content\kentta1.xnb 
    32Content\player.xnb 
     
    54Content\ruoho.xnb 
    65Content\wallpaper.xnb 
    7 Content\pig.xnb 
     6Content\invader.xnb 
     7Content\pickup.xnb 
     8Content\Jump.xnb 
  • 2016/27/SamuelN/PlatformJumper/PlatformJumper/PlatformJumperContent/PlatformJumperContent.contentproj

    r7900 r7937  
    4646  </ItemGroup> 
    4747  <ItemGroup> 
    48     <Compile Include="maali.wav"> 
    49       <Name>maali</Name> 
    50       <Importer>WavImporter</Importer> 
    51       <Processor>SoundEffectProcessor</Processor> 
    52     </Compile> 
    5348    <Compile Include="kentta1.txt"> 
    5449      <Name>kentta1</Name> 
     
    8681  </ItemGroup> 
    8782  <ItemGroup> 
    88     <Compile Include="pig.jpg"> 
    89       <Name>pig</Name> 
     83    <Compile Include="invader.png"> 
     84      <Name>invader</Name> 
    9085      <Importer>TextureImporter</Importer> 
    9186      <Processor>TextureProcessor</Processor> 
     87    </Compile> 
     88  </ItemGroup> 
     89  <ItemGroup> 
     90    <Compile Include="pickup.wav"> 
     91      <Name>pickup</Name> 
     92      <Importer>WavImporter</Importer> 
     93      <Processor>SoundEffectProcessor</Processor> 
     94    </Compile> 
     95  </ItemGroup> 
     96  <ItemGroup> 
     97    <Compile Include="Jump.wav"> 
     98      <Name>Jump</Name> 
     99      <Importer>WavImporter</Importer> 
     100      <Processor>SoundEffectProcessor</Processor> 
    92101    </Compile> 
    93102  </ItemGroup> 
  • 2016/27/SamuelN/PlatformJumper/PlatformJumper/PlatformJumperContent/kentta1.txt

    r7900 r7937  
    1 v..................v..................v 
     1vvvvv.............................vvvvv 
     2#################.....################# 
     3....................................... 
    24...................t................... 
    35..................###.................. 
     
    1517......###.....................###...... 
    1618....................................... 
    17 ....t.............................t.... 
    18 ...###...........................###... 
     19....t..............t..............t.... 
     20...###............###............###... 
    1921....................................... 
    2022.t...................................t. 
    2123###.................................### 
    2224....................................... 
    23 ...................p.................. 
     25...................p................... 
     26..###################################.. 
     27...................t................... 
     28..............t.#######.t.............. 
     29####.........###.......###.........#### 
     30....####.......................####.... 
     31........####...............####........ 
     32............####.......####............ 
     33..................###.................. 
     34...............###...###............... 
     35............###....t....###............ 
     36.........###......###......###......... 
     37......###.....................###...... 
     38...###...........................###... 
     39...............###...###............... 
     40###.........###.........###.........### 
     41..t###...###......###......###...###t.. 
     42.##...###......###...###......###...##. 
     43...................v................... 
     44....................................... 
    2445####################################### 
    25  
Note: See TracChangeset for help on using the changeset viewer.