Changeset 5619


Ignore:
Timestamp:
2014-07-24 11:16:02 (9 years ago)
Author:
sidatogr
Message:

Peli melkein valmis.

Location:
2014/30/SimonG
Files:
4 added
1 deleted
9 edited

Legend:

Unmodified
Added
Removed
  • 2014/30/SimonG/OmaPeli2014/OmaPeli2014/OmaPeli2014/OmaPeli2014.cs

    r5592 r5619  
    1212    AssaultRifle PelaajanAse; 
    1313    Timer aikaLaskuri; 
    14  
     14    Image PelaajaKuva = LoadImage("Pelaaja123"); 
    1515    public override void Begin() 
    1616    { 
     
    2828        LuoAikaLaskuri(); 
    2929         
     30        // TODO - Background (!!2d camo background) (minecraft grass block top!!) 
     31        // TODO -  Alien Paint.Net 
     32 
    3033        Level.CreateBorders (); 
    3134        Camera.ZoomToLevel(); 
     
    4245         
    4346        Level.Background.Color = Color.DarkForestGreen; 
    44  
    45         // TODO: Kirjoita ohjelmakoodisi tähän 
    4647         
    4748        PhoneBackButton.Listen(ConfirmExit, "Lopeta peli"); 
     
    6162            MessageDisplay.Add("Hävisit"); 
    6263 
    63             Explosion rajahdys = new Explosion(1000); 
     64            Explosion rajahdys = new Explosion(500); 
    6465            rajahdys.Position = Pelaaja.Position; 
    6566            Add(rajahdys); 
    66             rajahdys.Speed = 400.0; 
    67             rajahdys.Force = 1000; 
     67            rajahdys.Speed = 600.0; 
     68            rajahdys.Force = 500; 
    6869 
    69             Timer.SingleShot(4, AloitaPeli); 
     70            Timer.SingleShot(2.5, AloitaPeli); 
    7071        } 
    7172         
     
    8788    { 
    8889        Pelaaja = new PhysicsObject(60, 60); 
    89         Pelaaja.Shape = Shape.Circle; 
    90         Pelaaja.Color = Color.Blue; 
    9190        Pelaaja.Tag = "Pelaaja"; 
     91        Pelaaja.Image = PelaajaKuva; 
    9292        Add(Pelaaja); 
    9393        Pelaaja.LinearDamping = 0.9; 
     
    9999        PelaajanAse.AttackSound = null; 
    100100         
    101         Mouse.Listen (MouseButton.Left, ButtonState.Pressed, AmmuAseella, "Ammu", PelaajanAse); 
     101        Mouse.Listen (MouseButton.Left, ButtonState.Down, AmmuAseella, "Ammu", PelaajanAse); 
    102102 
    103103        Mouse.ListenMovement(0.0, Tahtaa, "Tähtää aseella"); 
     
    105105    void LuoHyokkaaja() 
    106106    { 
    107         for (int i = 0; i < 18; i++) 
     107        for (int i = 0; i < 30; i++) 
    108108        { 
    109109            FollowerBrain SeuraajanAivot = new FollowerBrain("Pelaaja"); 
    110110            SeuraajanAivot.Speed = 200; 
    111111            SeuraajanAivot.DistanceFar = 8000; 
    112             SeuraajanAivot.DistanceClose = 56; 
     112            SeuraajanAivot.DistanceClose = 55; 
    113113            SeuraajanAivot.StopWhenTargetClose = false; 
    114114            SeuraajanAivot.TargetClose += KunOllaanLahella; 
     
    150150        PhysicsObject ammus = ase.Shoot(); 
    151151    } 
    152  
    153152} 
  • 2014/30/SimonG/OmaPeli2014/OmaPeli2014/OmaPeli2014/obj/x86/Debug/ContentPipeline-{BE2A82B7-4ED4-4853-BE88-99F6EE96FB2C}.xml

    r5571 r5619  
    22<XnaContent xmlns:Pipeline="Microsoft.Xna.Framework.Content.Pipeline"> 
    33  <Asset Type="Pipeline:BuildItemCollection"> 
     4    <Item> 
     5      <Source>Pelaaja123.png</Source> 
     6      <Name>Pelaaja123</Name> 
     7      <Importer>TextureImporter</Importer> 
     8      <Processor>TextureProcessor</Processor> 
     9      <Options>None</Options> 
     10      <Output>C:\MyTemp\SimonG\OmaPeli2014\OmaPeli2014\OmaPeli2014\bin\x86\Debug\Content\Pelaaja123.xnb</Output> 
     11      <Time>2014-07-24T10:54:26.4214196+03:00</Time> 
     12    </Item> 
    413    <BuildSuccessful>true</BuildSuccessful> 
    514    <Settings> 
     
    1625    <Assemblies> 
    1726      <Assembly> 
     27        <Key>C:\Program Files (x86)\Jypeli\lib\ContentExtensions\TextFileContentExtension.dll</Key> 
     28        <Value>2013-09-06T09:39:14+03:00</Value> 
     29      </Assembly> 
     30      <Assembly> 
     31        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.XImporter.dll</Key> 
     32        <Value>2011-09-01T16:22:30+03:00</Value> 
     33      </Assembly> 
     34      <Assembly> 
     35        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.VideoImporters.dll</Key> 
     36        <Value>2011-09-01T16:22:30+03:00</Value> 
     37      </Assembly> 
     38      <Assembly> 
     39        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.dll</Key> 
     40        <Value>2011-09-01T16:22:30+03:00</Value> 
     41      </Assembly> 
     42      <Assembly> 
     43        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.FBXImporter.dll</Key> 
     44        <Value>2011-09-01T16:22:30+03:00</Value> 
     45      </Assembly> 
     46      <Assembly> 
     47        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.EffectImporter.dll</Key> 
     48        <Value>2011-09-01T16:22:30+03:00</Value> 
     49      </Assembly> 
     50      <Assembly> 
     51        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.AudioImporters.dll</Key> 
     52        <Value>2011-09-01T16:22:30+03:00</Value> 
     53      </Assembly> 
     54      <Assembly> 
     55        <Key>C:\Program Files (x86)\Jypeli\lib\ContentExtensions\AnimationExtension.dll</Key> 
     56        <Value>2013-09-06T09:39:16+03:00</Value> 
     57      </Assembly> 
     58      <Assembly> 
    1859        <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> 
    1960        <Value>2014-04-22T21:32:12.354917+03:00</Value> 
  • 2014/30/SimonG/OmaPeli2014/OmaPeli2014/OmaPeli2014/obj/x86/Debug/OmaPeli2014.csproj.FileListAbsolute.txt

    r5571 r5619  
    77C:\MyTemp\SimonG\OmaPeli2014\OmaPeli2014\OmaPeli2014\obj\x86\Debug\OmaPeli2014.exe 
    88C:\MyTemp\SimonG\OmaPeli2014\OmaPeli2014\OmaPeli2014\obj\x86\Debug\OmaPeli2014.pdb 
     9C:\MyTemp\SimonG\OmaPeli2014\OmaPeli2014\OmaPeli2014\bin\x86\Debug\Content\Pelaaja123.xnb 
  • 2014/30/SimonG/OmaPeli2014/OmaPeli2014/OmaPeli2014Content/OmaPeli2014Content.contentproj

    r5571 r5619  
    4545    <Reference Include="AnimationExtension" /> 
    4646  </ItemGroup> 
     47  <ItemGroup> 
     48    <Compile Include="Pelaaja123.png"> 
     49      <Name>Pelaaja123</Name> 
     50      <Importer>TextureImporter</Importer> 
     51      <Processor>TextureProcessor</Processor> 
     52    </Compile> 
     53  </ItemGroup> 
    4754  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    4855  <!--  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.