Changeset 7531 for 2016/26


Ignore:
Timestamp:
2016-06-27 14:57:34 (3 years ago)
Author:
karkaite
Message:

tausta on tulessa

Location:
2016/26/SallaK
Files:
10 added
9 edited

Legend:

Unmodified
Added
Removed
  • 2016/26/SallaK/Pingpong/Pingpong/Pingpong/Pingpong.cs

    r7513 r7531  
    1717    PhysicsObject maila2; 
    1818 
     19    PhysicsObject vasenReuna; 
     20    PhysicsObject oikeaReuna; 
     21 
    1922    IntMeter pelaajan1Pisteet; 
    2023    IntMeter pelaajan2Pisteet; 
     24 
     25    Image taustakuva = LoadImage("tausta"); 
    2126 
    2227    public override void Begin() 
     
    4247 
    4348        maila1 = LuoMaila(Level.Left + 20.0, 0.0); 
     49        maila1.Color = Color.Cyan; 
     50 
    4451        maila2 = LuoMaila(Level.Right - 20.0, 0.0); 
     52        maila2.Color = Color.Magenta; 
    4553 
    46         PhysicsObject vasenReuna = Level.CreateLeftBorder(); 
     54        vasenReuna = Level.CreateLeftBorder(); 
    4755        vasenReuna.Restitution = 1.0; 
    4856        vasenReuna.IsVisible = false; 
    4957 
    50         PhysicsObject oikeaReuna = Level.CreateRightBorder(); 
     58        oikeaReuna = Level.CreateRightBorder(); 
    5159        oikeaReuna.Restitution = 1.0; 
    5260        oikeaReuna.IsVisible = false; 
     
    6068        yläReuna.IsVisible = false; 
    6169 
     70        GameObject taustakuva 
    6271        Level.Background.Color = Color.Black; 
    63  
     72        Level.Background.Image = taustakuva; 
    6473        Camera.ZoomToLevel(); 
    6574    } 
     
    6776    void AloitaPeli() 
    6877    { 
    69         Vector impulssi = new Vector(500.0, 0.0); 
     78        Vector impulssi = new Vector(500.0, 600.0); 
    7079        pallo.Hit(impulssi); 
    7180    } 
     
    148157    void KasittelePallonTormays(PhysicsObject pallo, PhysicsObject kohde) 
    149158    { 
     159        if (kohde == oikeaReuna) 
     160        { 
     161            pelaajan1Pisteet.Value += 1; 
     162        } 
     163        else if (kohde == vasenReuna) 
     164        { 
     165            pelaajan2Pisteet.Value += 1; 
     166        } 
    150167 
    151168    } 
  • 2016/26/SallaK/Pingpong/Pingpong/Pingpong/obj/x86/Debug/ContentPipeline-{B4BE52C9-1454-4608-853F-C6AFF2D407D6}.xml

    r7513 r7531  
    22<XnaContent xmlns:Pipeline="Microsoft.Xna.Framework.Content.Pipeline"> 
    33  <Asset Type="Pipeline:BuildItemCollection"> 
     4    <Item> 
     5      <Source>tausta.jpg</Source> 
     6      <Name>tausta</Name> 
     7      <Importer>TextureImporter</Importer> 
     8      <Processor>TextureProcessor</Processor> 
     9      <Options>None</Options> 
     10      <Output>C:\MyTemp\SallaK\Pingpong\Pingpong\Pingpong\bin\x86\Debug\Content\tausta.xnb</Output> 
     11      <Time>2016-06-27T14:52:50.2024517+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>2015-02-09T20:18:44+02: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>2015-02-17T22:27:18+02: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>2015-09-16T18:35:30.082205+03:00</Value> 
  • 2016/26/SallaK/Pingpong/Pingpong/Pingpong/obj/x86/Debug/Pingpong.csproj.FileListAbsolute.txt

    r7513 r7531  
    77C:\MyTemp\SallaK\Pingpong\Pingpong\Pingpong\obj\x86\Debug\Pingpong.exe 
    88C:\MyTemp\SallaK\Pingpong\Pingpong\Pingpong\obj\x86\Debug\Pingpong.pdb 
     9C:\MyTemp\SallaK\Pingpong\Pingpong\Pingpong\bin\x86\Debug\Content\tausta.xnb 
  • 2016/26/SallaK/Pingpong/Pingpong/PingpongContent/PingpongContent.contentproj

    r7513 r7531  
    4545    <Reference Include="AnimationExtension" /> 
    4646  </ItemGroup> 
     47  <ItemGroup> 
     48    <Compile Include="tausta.jpg"> 
     49      <Name>tausta</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.