Changeset 8668


Ignore:
Timestamp:
2017-06-14 15:00:25 (2 years ago)
Author:
npo17_20
Message:
 
Location:
2017/24/MikoA/Trump vs Meksiko/Trump vs Meksiko1
Files:
7 added
11 edited

Legend:

Unmodified
Added
Removed
  • 2017/24/MikoA/Trump vs Meksiko/Trump vs Meksiko1/Trump vs Meksiko1/Trump vs Meksiko1Content/Trump vs Meksiko1Content.contentproj

    r8636 r8668  
    101101    </Compile> 
    102102  </ItemGroup> 
     103  <ItemGroup> 
     104    <Compile Include="China.wav"> 
     105      <Name>China</Name> 
     106      <Importer>WavImporter</Importer> 
     107      <Processor>SoundEffectProcessor</Processor> 
     108    </Compile> 
     109  </ItemGroup> 
     110  <ItemGroup> 
     111    <Compile Include="Sonic.mp3"> 
     112      <Name>Sonic</Name> 
     113      <Importer>Mp3Importer</Importer> 
     114      <Processor>SongProcessor</Processor> 
     115    </Compile> 
     116  </ItemGroup> 
    103117  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    104118  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
  • 2017/24/MikoA/Trump vs Meksiko/Trump vs Meksiko1/Trump vs Meksiko1/Trump_vs_Meksiko1/Trump_vs_Meksiko1.cs

    r8636 r8668  
    1818    Image Emoji = LoadImage("Emoji"); 
    1919    SoundEffect ImReallyRich = LoadSoundEffect("rich"); 
     20    SoundEffect ChinaSound = LoadSoundEffect("China"); 
    2021    PhysicsObject olio; 
    2122    PhysicsObject Trump1; 
     
    2526    PhysicsObject alaReuna; 
    2627    PhysicsObject ylaReuna; 
    27  
     28    int kenttanro = 1; 
    2829    public override void Begin() 
    2930    { 
     
    3132        AsetaOhjaimet(); 
    3233        LisaaOlio(); 
     34        Sonic(); 
    3335        LuoAikaLaskuri(0.0, 500.0); 
    3436        LisaaTrump1(-360.0, 300.0); 
     
    3941        LisaaTrump3(-640.0, 0.0); 
    4042    } 
    41  
    42     void LisaaOlio() 
     43        void LisaaOlio() 
    4344    { 
    4445        olio = new PhysicsObject(150, 75); 
     
    4748        Add(olio); 
    4849        Mouse.ListenMovement(0.1, KuunteleLiiketta, null); 
     50        olio.Tag = "Pelaaja"; 
    4951    } 
    5052    void LisaaTrump1(double x, double y) 
     
    5355        Trump1.X = x; 
    5456        Trump1.Y = y; 
     57        AddCollisionHandler(Trump1, "Pelaaja", Huuda2); 
    5558        RandomMoverBrain satunnaisAivot = new RandomMoverBrain(200); 
    5659        satunnaisAivot.ChangeMovementSeconds = 2; 
     
    6164        Add(Trump1); 
    6265    } 
     66    void SeuraavaKentta() 
     67    { 
     68        ClearAll(); 
     69        if (kenttanro > 3) 
     70        { 
     71 
     72        } 
     73        else 
     74        { 
     75         //   LuoKentta("kentta" + kenttanro); 
     76        } 
     77 
     78         AsetaOhjaimet(); 
     79    } 
     80    void Huuda2(PhysicsObject trump1, PhysicsObject pelaaja) 
     81    { 
     82        ChinaSound.Play(); 
     83    } 
     84    void Sonic() 
     85    { 
     86        MediaPlayer.Play("Sonic"); 
     87        MediaPlayer.IsRepeating = true; 
     88    } 
    6389    void LisaaTrump3(double x, double y) 
    6490    { 
     
    6793        Trump3.Y = y; 
    6894        FollowerBrain seuraajanAivot = new FollowerBrain(olio); 
    69         seuraajanAivot.DistanceToTarget.AddTrigger(50, TriggerDirection.Down, Huuda); 
     95        seuraajanAivot.DistanceToTarget.AddTrigger(0, TriggerDirection.Down, Huuda); 
    7096        Trump3.Brain = seuraajanAivot; 
    7197        seuraajanAivot.Speed = 350; 
     
    91117    void KuunteleLiiketta(AnalogState hiirenTila) 
    92118    { 
    93         olio.X = Mouse.PositionOnWorld.X; 
    94         olio.Y = Mouse.PositionOnWorld.Y; 
     119        if ( Mouse.PositionOnWorld.X > Level.Left  &&  Mouse.PositionOnWorld.X < Level.Right 
     120             && Mouse.PositionOnWorld.Y >Level.Bottom && Mouse.PositionOnWorld.Y < Level.Top) 
     121        { 
     122            olio.X = Mouse.PositionOnWorld.X; 
     123            olio.Y = Mouse.PositionOnWorld.Y; 
     124        } 
     125         
    95126        Vector hiirenLiike = hiirenTila.MouseMovement; 
    96127    } 
     
    122153    { 
    123154        alaspainLaskuri = new DoubleMeter(30); 
    124  
     155        alaspainLaskuri.LowerLimit += SeuraavaKentta; 
    125156        aikaLaskuri = new Timer(); 
    126157        aikaLaskuri.Interval = 0.1; 
  • 2017/24/MikoA/Trump vs Meksiko/Trump vs Meksiko1/Trump vs Meksiko1/Trump_vs_Meksiko1/Trump_vs_Meksiko1.csproj.Debug.cachefile

    r8636 r8668  
    88Content\Emoji.xnb 
    99Content\rich.xnb 
     10Content\China.xnb 
     11Content\Sonic.xnb 
     12Content\Sonic.wma 
    1013Content\Trump vs Meksiko.jpg 
  • 2017/24/MikoA/Trump vs Meksiko/Trump vs Meksiko1/Trump vs Meksiko1/Trump_vs_Meksiko1/obj/x86/Debug/ContentPipeline-{A680BBDE-6B59-4105-8FE3-4CE04FF55CB2}.xml

    r8636 r8668  
    8383      <Time>2017-06-14T10:47:34.1834534+03:00</Time> 
    8484    </Item> 
     85    <Item> 
     86      <Source>China.wav</Source> 
     87      <Name>China</Name> 
     88      <Importer>WavImporter</Importer> 
     89      <Processor>SoundEffectProcessor</Processor> 
     90      <Options>None</Options> 
     91      <Output>C:\MyTemp\MikoA\Trump vs Meksiko\Trump vs Meksiko1\Trump vs Meksiko1\Trump_vs_Meksiko1\bin\x86\Debug\Content\China.xnb</Output> 
     92      <Time>2017-06-14T12:56:37.4200023+03:00</Time> 
     93    </Item> 
     94    <Item> 
     95      <Source>Sonic.mp3</Source> 
     96      <Name>Sonic</Name> 
     97      <Importer>Mp3Importer</Importer> 
     98      <Processor>SongProcessor</Processor> 
     99      <Options>None</Options> 
     100      <Output>C:\MyTemp\MikoA\Trump vs Meksiko\Trump vs Meksiko1\Trump vs Meksiko1\Trump_vs_Meksiko1\bin\x86\Debug\Content\Sonic.xnb</Output> 
     101      <Extra>C:\MyTemp\MikoA\Trump vs Meksiko\Trump vs Meksiko1\Trump vs Meksiko1\Trump_vs_Meksiko1\bin\x86\Debug\Content\Sonic.wma</Extra> 
     102      <Time>2017-06-14T14:55:52.0729586+03:00</Time> 
     103    </Item> 
    85104    <BuildSuccessful>true</BuildSuccessful> 
    86105    <Settings> 
  • 2017/24/MikoA/Trump vs Meksiko/Trump vs Meksiko1/Trump vs Meksiko1/Trump_vs_Meksiko1/obj/x86/Debug/Trump_vs_Meksiko1.csproj.FileListAbsolute.txt

    r8636 r8668  
    1717C:\MyTemp\MikoA\Trump vs Meksiko\Trump vs Meksiko1\Trump vs Meksiko1\Trump_vs_Meksiko1\obj\x86\Debug\Trump_vs_Meksiko1.csprojResolveAssemblyReference.cache 
    1818C:\MyTemp\MikoA\Trump vs Meksiko\Trump vs Meksiko1\Trump vs Meksiko1\Trump_vs_Meksiko1\bin\x86\Debug\Content\rich.xnb 
     19C:\MyTemp\MikoA\Trump vs Meksiko\Trump vs Meksiko1\Trump vs Meksiko1\Trump_vs_Meksiko1\bin\x86\Debug\Content\China.xnb 
     20C:\MyTemp\MikoA\Trump vs Meksiko\Trump vs Meksiko1\Trump vs Meksiko1\Trump_vs_Meksiko1\bin\x86\Debug\Content\Sonic.xnb 
     21C:\MyTemp\MikoA\Trump vs Meksiko\Trump vs Meksiko1\Trump vs Meksiko1\Trump_vs_Meksiko1\bin\x86\Debug\Content\Sonic.wma 
  • 2017/24/MikoA/Trump vs Meksiko/Trump vs Meksiko1/Trump vs Meksiko1/Trump_vs_Meksiko1/obj/x86/Debug/cachefile-{A680BBDE-6B59-4105-8FE3-4CE04FF55CB2}-targetpath.txt

    r8636 r8668  
    88Content\Emoji.xnb 
    99Content\rich.xnb 
     10Content\China.xnb 
     11Content\Sonic.xnb 
     12Content\Sonic.wma 
    1013Content\Trump vs Meksiko.jpg 
Note: See TracChangeset for help on using the changeset viewer.