Changeset 8611 for 2017/24


Ignore:
Timestamp:
2017-06-13 15:00:31 (2 years ago)
Author:
npo17_20
Message:
 
Location:
2017/24/MikoA/Trump vs Meksiko/Trump vs Meksiko1
Files:
16 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

    r8582 r8611  
    8484      <Importer>TextureImporter</Importer> 
    8585      <Processor>TextureProcessor</Processor> 
     86      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 
    8687    </Compile> 
    8788  </ItemGroup> 
  • 2017/24/MikoA/Trump vs Meksiko/Trump vs Meksiko1/Trump vs Meksiko1/Trump_vs_Meksiko1/Trump_vs_Meksiko1.cs

    r8582 r8611  
    99public class Trump_vs_Meksiko1 : PhysicsGame 
    1010{ 
    11     public class Peli : PhysicsGame 
    12     { 
     11     
    1312        Image olionKuva = LoadImage("Meksikon lippu"); 
    14         Image Trump1 = LoadImage("Trump naama 1"); 
    15         Image Trump2 = LoadImage("Trump naama 2"); 
    16         Image Trump3 = LoadImage("Trump naama 3"); 
     13        Image Trump1Kuva = LoadImage("Trump naama 1"); 
     14        Image Trump2Kuva = LoadImage("Trump naama 2"); 
     15        Image Trump3Kuva = LoadImage("Trump naama 3"); 
    1716        Image TrumpinSeinä = LoadImage("Trump seinä"); 
    1817        Image MeksikoMies = LoadImage("Meksiko mies"); 
    1918        Image TrumpvsMeksiko = LoadImage("Trump vs Meksiko"); 
    20         Image Emoji = ("Emoji"); 
     19        Image Emoji = LoadImage("Emoji"); 
    2120        PhysicsObject olio; 
    2221        PhysicsObject Trump1; 
    23         PhysicsObject Trump2; 
    2422        PhysicsObject Trump3; 
    2523        PhysicsObject vasenReuna; 
    2624        PhysicsObject oikeaReuna; 
     25        PhysicsObject alaReuna; 
     26        PhysicsObject ylaReuna; 
    2727 
    2828        public override void Begin() 
     
    3030            LuoKentta(); 
    3131            AsetaOhjaimet(); 
    32             KuunteleLiiketta(); 
     32            LisaaOlio(); 
    3333        } 
     34         
     35        void LisaaOlio() 
    3436        { 
    35             PhysicsObject olio = new PhysicsObject(100, 50); 
     37            olio = new PhysicsObject(150, 75); 
    3638            olio.Image = olionKuva; 
    3739            Add(olio); 
    3840            Mouse.ListenMovement(0.1, KuunteleLiiketta, null); 
    3941        } 
    40         { 
    41         Level.Background.Image = ("Trump vs Meksiko"); 
     42         
    4243         
    4344        void KuunteleLiiketta(AnalogState hiirenTila) 
     
    5253                Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
    5354        } 
    54         void LuoKentta() 
     55    void LuoKentta() 
     56    { 
     57        vasenReuna = Level.CreateLeftBorder(); 
     58        vasenReuna.Color = Color.Red; 
     59        oikeaReuna = Level.CreateRightBorder(); 
     60        oikeaReuna.Color = Color.Red; 
     61        alaReuna = Level.CreateBottomBorder(); 
     62        alaReuna.Color = Color.Red; 
     63        ylaReuna = Level.CreateTopBorder(); 
     64        ylaReuna.Color = Color.Red; 
     65        Level.Background.Color = Color.Black; 
     66        Level.Background.Image = TrumpvsMeksiko; 
     67        } 
     68    DoubleMeter alaspainLaskuri; 
     69    Timer aikaLaskuri; 
     70 
     71    void LuoAikaLaskuri() 
     72    { 
     73        alaspainLaskuri = new DoubleMeter(30); 
     74 
     75        aikaLaskuri = new Timer(); 
     76        aikaLaskuri.Interval = 0.1; 
     77        aikaLaskuri.Timeout += LaskeAlaspain; 
     78        aikaLaskuri.Start(); 
     79 
     80        Label aikaNaytto = new Label(); 
     81        aikaNaytto.TextColor = Color.White; 
     82        aikaNaytto.DecimalPlaces = 1; 
     83        aikaNaytto.BindTo(alaspainLaskuri); 
     84        Add(aikaNaytto); 
     85    } 
     86 
     87        void LaskeAlaspain() 
    5588        { 
    56            vasenReuna = Level.CreateLeftBorder(); 
    57            oikeaReuna = Level.CreateRightBorder(); 
    58            Level.CreateBottomBorder(); 
    59            Level.CreateTopBorder(); 
    60              
    61     } 
    62          
     89            alaspainLaskuri.Value -= 0.1; 
     90 
     91            if (alaspainLaskuri.Value <= 0) 
     92            { 
     93                MessageDisplay.Add("Aika loppui..."); 
     94            } 
     95        } 
    6396} 
  • 2017/24/MikoA/Trump vs Meksiko/Trump vs Meksiko1/Trump vs Meksiko1/Trump_vs_Meksiko1/Trump_vs_Meksiko1.csproj

    r8566 r8611  
    120120  </ItemGroup> 
    121121  <ItemGroup> 
    122     <ProjectReference Include="..\Trump_vs_Meksiko1Content\Trump_vs_Meksiko1Content.contentproj"> 
    123       <Name>Trump_vs_Meksiko1Content</Name> 
    124       <XnaReferenceType>Content</XnaReferenceType> 
    125     </ProjectReference> 
    126   </ItemGroup> 
    127   <ItemGroup> 
    128122    <BootstrapperPackage Include=".NETFramework,Version=v4.0,Profile=Client"> 
    129123      <Visible>False</Visible> 
     
    152146    </BootstrapperPackage> 
    153147  </ItemGroup> 
     148  <ItemGroup> 
     149    <ProjectReference Include="..\Trump vs Meksiko1Content\Trump vs Meksiko1Content.contentproj"> 
     150      <Project>{A680BBDE-6B59-4105-8FE3-4CE04FF55CB2}</Project> 
     151      <Name>Trump vs Meksiko1Content</Name> 
     152      <XnaReferenceType>Content</XnaReferenceType> 
     153    </ProjectReference> 
     154  </ItemGroup> 
    154155  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> 
    155156  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\Microsoft.Xna.GameStudio.targets" /> 
  • 2017/24/MikoA/Trump vs Meksiko/Trump vs Meksiko1/Trump vs Meksiko1/Trump_vs_Meksiko1/obj/x86/Debug/Trump_vs_Meksiko1.csproj.FileListAbsolute.txt

    r8566 r8611  
    33C:\MyTemp\MikoA\Trump vs Meksiko\Trump vs Meksiko1\Trump vs Meksiko1\Trump_vs_Meksiko1\bin\x86\Debug\Jypeli.dll 
    44C:\MyTemp\MikoA\Trump vs Meksiko\Trump vs Meksiko1\Trump vs Meksiko1\Trump_vs_Meksiko1\bin\x86\Debug\Jypeli.xml 
    5 C:\MyTemp\MikoA\Trump vs Meksiko\Trump vs Meksiko1\Trump vs Meksiko1\Trump_vs_Meksiko1\obj\x86\Debug\Trump_vs_Meksiko1.csprojResolveAssemblyReference.cache 
    65C:\MyTemp\MikoA\Trump vs Meksiko\Trump vs Meksiko1\Trump vs Meksiko1\Trump_vs_Meksiko1\obj\x86\Debug\Microsoft.Xna.Framework.RuntimeProfile.txt 
    76C:\MyTemp\MikoA\Trump vs Meksiko\Trump vs Meksiko1\Trump vs Meksiko1\Trump_vs_Meksiko1\obj\x86\Debug\Trump_vs_Meksiko1.exe 
    87C:\MyTemp\MikoA\Trump vs Meksiko\Trump vs Meksiko1\Trump vs Meksiko1\Trump_vs_Meksiko1\obj\x86\Debug\Trump_vs_Meksiko1.pdb 
     8C:\MyTemp\MikoA\Trump vs Meksiko\Trump vs Meksiko1\Trump vs Meksiko1\Trump_vs_Meksiko1\bin\x86\Debug\Content\Meksikon lippu.xnb 
     9C:\MyTemp\MikoA\Trump vs Meksiko\Trump vs Meksiko1\Trump vs Meksiko1\Trump_vs_Meksiko1\bin\x86\Debug\Content\Trump naama 1.xnb 
     10C:\MyTemp\MikoA\Trump vs Meksiko\Trump vs Meksiko1\Trump vs Meksiko1\Trump_vs_Meksiko1\bin\x86\Debug\Content\Trump naama 2.xnb 
     11C:\MyTemp\MikoA\Trump vs Meksiko\Trump vs Meksiko1\Trump vs Meksiko1\Trump_vs_Meksiko1\bin\x86\Debug\Content\Trump naama 3.xnb 
     12C:\MyTemp\MikoA\Trump vs Meksiko\Trump vs Meksiko1\Trump vs Meksiko1\Trump_vs_Meksiko1\bin\x86\Debug\Content\Trump seinÀ.xnb 
     13C:\MyTemp\MikoA\Trump vs Meksiko\Trump vs Meksiko1\Trump vs Meksiko1\Trump_vs_Meksiko1\bin\x86\Debug\Content\Meksiko mies 1.xnb 
     14C:\MyTemp\MikoA\Trump vs Meksiko\Trump vs Meksiko1\Trump vs Meksiko1\Trump_vs_Meksiko1\bin\x86\Debug\Content\Trump vs Meksiko.xnb 
     15C:\MyTemp\MikoA\Trump vs Meksiko\Trump vs Meksiko1\Trump vs Meksiko1\Trump_vs_Meksiko1\bin\x86\Debug\Content\Emoji.xnb 
     16C:\MyTemp\MikoA\Trump vs Meksiko\Trump vs Meksiko1\Trump vs Meksiko1\Trump_vs_Meksiko1\bin\x86\Debug\Content\Trump vs Meksiko.jpg 
     17C:\MyTemp\MikoA\Trump vs Meksiko\Trump vs Meksiko1\Trump vs Meksiko1\Trump_vs_Meksiko1\obj\x86\Debug\Trump_vs_Meksiko1.csprojResolveAssemblyReference.cache 
Note: See TracChangeset for help on using the changeset viewer.