Changeset 2985 for 2012/24


Ignore:
Timestamp:
2012-06-13 13:09:34 (11 years ago)
Author:
juiitamm
Message:

Talletus.

Location:
2012/24/ElinaN
Files:
10 added
15 edited

Legend:

Unmodified
Added
Removed
  • 2012/24/ElinaN/Kuumailmapallolento/Kuumailmapallolento/Kuumailmapallolento/Kuumailmapallolento.cs

    r2970 r2985  
    1010{ 
    1111    Image pallo = LoadImage("Kuumailmapallo"); 
     12    Image talokuva1 = LoadImage("kellotorni"); 
     13    Image talokuva2 = LoadImage("kerrostalo"); 
     14    Image talokuva3 = LoadImage("omakotitalo"); 
     15    Image talokuva4 = LoadImage("rivitalo"); 
    1216    PhysicsObject pelaaja; 
    1317    public override void Begin() 
    14  
    1518    { 
    1619        AsetaOhjaimet(); 
     
    2124        pelaaja = new PhysicsObject(pallo); 
    2225        pelaaja.X = (-500); 
     26        pelaaja.CanRotate = false; 
     27        AddCollisionHandler(pelaaja, "talo", PelaajaKuolee); 
     28        Add(pelaaja); 
     29 
     30        Level.CreateBottomBorder(); 
    2331         
    24         Add(pelaaja); 
     32 
     33        Timer ajastin = new Timer(); 
     34        ajastin.Interval = 3; 
     35        ajastin.Timeout += LuoTalo; 
     36        ajastin.Start(); 
    2537 
    2638    } 
     
    4456        pelaaja.Stop(); 
    4557    } 
     58 
     59    void PelaajaKuolee(PhysicsObject pelaaja, PhysicsObject kohde) 
     60    { 
     61        MessageDisplay.Add("Peli alkaa alusta"); 
     62    } 
     63 
     64    void LuoTalo() 
     65    {  
     66        PhysicsObject talo = new PhysicsObject (talokuva1); 
     67        talo.Shape = Shape.FromImage(talokuva1); 
     68        talo.Width *= 0.5; 
     69        talo.Height *= 0.5; 
     70        talo.X = Level.Right + 300; 
     71        talo.Bottom = Level.Bottom; 
     72        talo.Tag = "talo"; 
     73        talo.IgnoresCollisionResponse = true; 
     74        talo.Hit(new Vector(-200, 0)); 
     75        Add(talo); 
     76    } 
    4677} 
    4778 
  • 2012/24/ElinaN/Kuumailmapallolento/Kuumailmapallolento/Kuumailmapallolento/Kuumailmapallolento.csproj

    r2963 r2985  
    6262  </PropertyGroup> 
    6363  <ItemGroup> 
    64     <Reference Include="Jypeli4"> 
     64    <Reference Include="Jypeli"> 
     65      <HintPath>..\..\..\Jypeli.dll</HintPath> 
    6566    </Reference> 
    6667    <Reference Include="Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86"> 
  • 2012/24/ElinaN/Kuumailmapallolento/Kuumailmapallolento/Kuumailmapallolento/Kuumailmapallolento.csproj.Debug.cachefile

    r2963 r2985  
    11Content\Kuumailmapallo.xnb 
    22Content\Lintu.xnb 
     3Content\kellotorni.xnb 
     4Content\kerrostalo.xnb 
     5Content\omakotitalo.xnb 
     6Content\rivitalo.xnb 
  • 2012/24/ElinaN/Kuumailmapallolento/Kuumailmapallolento/Kuumailmapallolento/obj/x86/Debug/Kuumailmapallolento.csproj.FileListAbsolute.txt

    r2963 r2985  
    11C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Kuumailmapallolento.exe 
    22C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Kuumailmapallolento.pdb 
    3 C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Jypeli4.dll 
    4 C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Jypeli4.xml 
    53C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\obj\x86\Debug\ResolveAssemblyReference.cache 
    64C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\obj\x86\Debug\Microsoft.Xna.Framework.RuntimeProfile.txt 
     
    97C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Content\Kuumailmapallo.xnb 
    108C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Content\Lintu.xnb 
     9C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Content\kellotorni.xnb 
     10C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Content\kerrostalo.xnb 
     11C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Content\omakotitalo.xnb 
     12C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Content\rivitalo.xnb 
     13C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Jypeli.dll 
     14C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Jypeli.xml 
  • 2012/24/ElinaN/Kuumailmapallolento/Kuumailmapallolento/Kuumailmapallolento/obj/x86/Debug/cachefile-{1E9415B6-81E8-41E7-A1AE-53D5AC5C8506}-targetpath.txt

    r2963 r2985  
    11Content\Kuumailmapallo.xnb 
    22Content\Lintu.xnb 
     3Content\kellotorni.xnb 
     4Content\kerrostalo.xnb 
     5Content\omakotitalo.xnb 
     6Content\rivitalo.xnb 
  • 2012/24/ElinaN/Kuumailmapallolento/Kuumailmapallolento/KuumailmapallolentoContent/KuumailmapallolentoContent.contentproj

    r2963 r2985  
    5858    </Compile> 
    5959  </ItemGroup> 
     60  <ItemGroup> 
     61    <Compile Include="kellotorni.png"> 
     62      <Name>kellotorni</Name> 
     63      <Importer>TextureImporter</Importer> 
     64      <Processor>TextureProcessor</Processor> 
     65    </Compile> 
     66    <Compile Include="kerrostalo.png"> 
     67      <Name>kerrostalo</Name> 
     68      <Importer>TextureImporter</Importer> 
     69      <Processor>TextureProcessor</Processor> 
     70    </Compile> 
     71    <Compile Include="omakotitalo.png"> 
     72      <Name>omakotitalo</Name> 
     73      <Importer>TextureImporter</Importer> 
     74      <Processor>TextureProcessor</Processor> 
     75    </Compile> 
     76    <Compile Include="rivitalo.png"> 
     77      <Name>rivitalo</Name> 
     78      <Importer>TextureImporter</Importer> 
     79      <Processor>TextureProcessor</Processor> 
     80    </Compile> 
     81  </ItemGroup> 
    6082  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    6183  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
  • 2012/24/ElinaN/Kuumailmapallolento/Kuumailmapallolento/KuumailmapallolentoContent/obj/x86/Debug/ContentPipeline.xml

    r2970 r2985  
    1919      <Output>C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Content\Lintu.xnb</Output> 
    2020      <Time>2012-06-12T14:06:01.441324+03:00</Time> 
     21    </Item> 
     22    <Item> 
     23      <Source>kellotorni.png</Source> 
     24      <Name>kellotorni</Name> 
     25      <Importer>TextureImporter</Importer> 
     26      <Processor>TextureProcessor</Processor> 
     27      <Options>None</Options> 
     28      <Output>C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Content\kellotorni.xnb</Output> 
     29      <Time>2012-06-13T12:29:07.6652224+03:00</Time> 
     30    </Item> 
     31    <Item> 
     32      <Source>kerrostalo.png</Source> 
     33      <Name>kerrostalo</Name> 
     34      <Importer>TextureImporter</Importer> 
     35      <Processor>TextureProcessor</Processor> 
     36      <Options>None</Options> 
     37      <Output>C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Content\kerrostalo.xnb</Output> 
     38      <Time>2012-06-13T12:09:44.3519627+03:00</Time> 
     39    </Item> 
     40    <Item> 
     41      <Source>omakotitalo.png</Source> 
     42      <Name>omakotitalo</Name> 
     43      <Importer>TextureImporter</Importer> 
     44      <Processor>TextureProcessor</Processor> 
     45      <Options>None</Options> 
     46      <Output>C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Content\omakotitalo.xnb</Output> 
     47      <Time>2012-06-13T10:42:46.6211582+03:00</Time> 
     48    </Item> 
     49    <Item> 
     50      <Source>rivitalo.png</Source> 
     51      <Name>rivitalo</Name> 
     52      <Importer>TextureImporter</Importer> 
     53      <Processor>TextureProcessor</Processor> 
     54      <Options>None</Options> 
     55      <Output>C:\MyTemp\ElinaN\Kuumailmapallolento\Kuumailmapallolento\Kuumailmapallolento\bin\x86\Debug\Content\rivitalo.xnb</Output> 
     56      <Time>2012-06-13T12:09:40.6703627+03:00</Time> 
    2157    </Item> 
    2258    <BuildSuccessful>true</BuildSuccessful> 
Note: See TracChangeset for help on using the changeset viewer.