Changeset 3113


Ignore:
Timestamp:
2012-06-15 12:14:51 (7 years ago)
Author:
tovalile
Message:

Talletus.

Location:
2012/24/ToniV/Try to survive
Files:
8 added
13 edited

Legend:

Unmodified
Added
Removed
  • 2012/24/ToniV/Try to survive/Try to survive/Try to survive/Try to survive.csproj.Debug.cachefile

    r2998 r3113  
    11Content\ukko.xnb 
    22Content\Zombi.xnb 
     3Content\tausta.xnb 
     4Content\skrillex_-_kill_everybody-F21aifX0lZY_fmt18.xnb 
     5Content\skrillex.xnb 
     6Content\skrillex_-_kill_everybody-F21aifX0lZY_fmt18.wma 
     7Content\skrillex.wma 
  • 2012/24/ToniV/Try to survive/Try to survive/Try to survive/Try_to_survive.cs

    r3041 r3113  
    99class Zombi : PhysicsObject 
    1010{ 
    11     public int Elamat = 2; 
     11    public int Elamat = 1; 
    1212 
    1313    public Zombi(double leveys, double korkeus) 
     
    2222    Image ukkokuva = LoadImage("ukko"); 
    2323    Image Zombikuva = LoadImage("Zombi"); 
     24    Image tausta = LoadImage("tausta"); 
     25  //   
    2426 
    2527    public PhysicsObject ukko; 
    26     int healt = 5; 
     28    int healt = 7; 
    2729 
    2830    bool saakoampua = true; 
     
    4345        luoseina(400, 190, 24, 400); 
    4446        luoseina(400, -280, 24, 250); 
    45         luoseina(-400, -10, 200, 700); 
    46         luoseina(-100, -0, 40, 700); 
    47         luoseina(220, 2, 350, 24); 
    48         luoseina(215, -167, 350, 24); 
     47        luoseina(-400, -10, 24, 300); 
     48        luoseina(-100, -0, 40, 300); 
     49        luoseina(220, 2, 200, 24); 
     50        luoseina(215, -167, 200, 24); 
    4951 
    5052 
     
    6365        vasenreuna.Tag = "reuna"; 
    6466        oikeareuna.Tag = "reuna"; 
    65          
     67        Level.Background.Image = tausta; 
     68        Level.Background.FitToLevel(); 
     69 
     70        Camera.FollowedObject = ukko; 
     71 
     72        MediaPlayer.Play("skrillex"); 
     73 
    6674    } 
    6775 
     
    7482        Zombi2.Brain = seuraajanaivot; 
    7583        Zombi2.Tag = "Zombi"; 
    76         seuraajanaivot.Speed = 100; 
     84        seuraajanaivot.Speed = 90; 
    7785        seuraajanaivot.TargetFollowDistance = 60000; 
    7886        seuraajanaivot.FollowAlways = true; 
     
    8896    { 
    8997        PhysicsObject seinä = PhysicsObject.CreateStaticObject(leveys, korkeus); 
    90         seinä.Color = Color.Black; 
     98        seinä.Color = Color.Blue; 
    9199        seinä.X = (X); 
    92100        seinä.Y = (Y); 
     
    99107 
    100108        Timer ajastin = new Timer(); 
    101         ajastin.Interval = 0.1; 
     109        ajastin.Interval = 0.3; 
    102110        ajastin.Timeout += luoZombi; 
    103111        ajastin.Start(200); 
     112 
     113        Timer ajastin2 = new Timer(); 
     114        ajastin2.Start(); 
    104115 
    105116 
     
    126137    { 
    127138        if (saakoampua == false) return; 
    128         PhysicsObject panos = new PhysicsObject(5, 5); 
     139        PhysicsObject panos = new PhysicsObject(50, 50); 
    129140        panos.Shape = Shape.Circle; 
    130         panos.Color = Color.Black; 
     141        panos.Color = Color.Green; 
    131142        panos.Hit(suunta * 1100); 
    132143        panos.Position = ukko.Position; 
     
    137148 
    138149        saakoampua = false; 
    139         Timer.SingleShot(0.25, saaampua); 
     150        Timer.SingleShot(0.3, saaampua); 
    140151    } 
    141152 
     
    156167            ukko.Destroy(); 
    157168            rajahda(); 
     169            peliloppuu(); 
     170            MessageDisplay.Add("GAME OVER"); 
    158171        } 
    159172    } 
     
    184197    } 
    185198 
    186         void kierräeste() 
     199        void peliloppuu () 
    187200        { 
    188              
     201            Exit(); 
    189202        } 
    190203} 
  • 2012/24/ToniV/Try to survive/Try to survive/Try to survive/obj/x86/Debug/Try to survive.csproj.FileListAbsolute.txt

    r3041 r3113  
    99C:\MyTemp\ToniV\Try to survive\Try to survive\Try to survive\bin\x86\Debug\Jypeli.dll 
    1010C:\MyTemp\ToniV\Try to survive\Try to survive\Try to survive\bin\x86\Debug\Jypeli.xml 
     11C:\MyTemp\ToniV\Try to survive\Try to survive\Try to survive\bin\x86\Debug\Content\tausta.xnb 
     12C:\MyTemp\ToniV\Try to survive\Try to survive\Try to survive\bin\x86\Debug\Content\skrillex_-_kill_everybody-F21aifX0lZY_fmt18.xnb 
     13C:\MyTemp\ToniV\Try to survive\Try to survive\Try to survive\bin\x86\Debug\Content\skrillex.xnb 
     14C:\MyTemp\ToniV\Try to survive\Try to survive\Try to survive\bin\x86\Debug\Content\skrillex_-_kill_everybody-F21aifX0lZY_fmt18.wma 
     15C:\MyTemp\ToniV\Try to survive\Try to survive\Try to survive\bin\x86\Debug\Content\skrillex.wma 
  • 2012/24/ToniV/Try to survive/Try to survive/Try to survive/obj/x86/Debug/cachefile-{67FA41DA-80FE-47CB-9F01-C5EE134572DF}-targetpath.txt

    r2998 r3113  
    11Content\ukko.xnb 
    22Content\Zombi.xnb 
     3Content\tausta.xnb 
     4Content\skrillex_-_kill_everybody-F21aifX0lZY_fmt18.xnb 
     5Content\skrillex_-_kill_everybody-F21aifX0lZY_fmt18.wma 
     6Content\skrillex.xnb 
     7Content\skrillex.wma 
  • 2012/24/ToniV/Try to survive/Try to survive/Try to surviveContent/Try to surviveContent.contentproj

    r2998 r3113  
    5858    </Compile> 
    5959  </ItemGroup> 
     60  <ItemGroup> 
     61    <Compile Include="tausta.png"> 
     62      <Name>tausta</Name> 
     63      <Importer>TextureImporter</Importer> 
     64      <Processor>TextureProcessor</Processor> 
     65    </Compile> 
     66  </ItemGroup> 
     67  <ItemGroup> 
     68    <Compile Include="skrillex_-_kill_everybody-F21aifX0lZY_fmt18.mp3"> 
     69      <Name>skrillex_-_kill_everybody-F21aifX0lZY_fmt18</Name> 
     70      <Importer>Mp3Importer</Importer> 
     71      <Processor>SongProcessor</Processor> 
     72    </Compile> 
     73  </ItemGroup> 
     74  <ItemGroup> 
     75    <Compile Include="skrillex.mp3"> 
     76      <Name>skrillex</Name> 
     77      <Importer>Mp3Importer</Importer> 
     78      <Processor>SongProcessor</Processor> 
     79    </Compile> 
     80  </ItemGroup> 
    6081  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    6182  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
  • 2012/24/ToniV/Try to survive/Try to survive/Try to surviveContent/obj/x86/Debug/ContentPipeline.xml

    r2998 r3113  
    1818      <Options>None</Options> 
    1919      <Output>C:\MyTemp\ToniV\Try to survive\Try to survive\Try to survive\bin\x86\Debug\Content\Zombi.xnb</Output> 
    20       <Time>2012-06-13T12:26:21.8919134+03:00</Time> 
     20      <Time>2012-06-15T10:31:04.2867132+03:00</Time> 
     21    </Item> 
     22    <Item> 
     23      <Source>tausta.png</Source> 
     24      <Name>tausta</Name> 
     25      <Importer>TextureImporter</Importer> 
     26      <Processor>TextureProcessor</Processor> 
     27      <Options>None</Options> 
     28      <Output>C:\MyTemp\ToniV\Try to survive\Try to survive\Try to survive\bin\x86\Debug\Content\tausta.xnb</Output> 
     29      <Time>2012-06-15T10:08:25.2909132+03:00</Time> 
     30    </Item> 
     31    <Item> 
     32      <Source>skrillex_-_kill_everybody-F21aifX0lZY_fmt18.mp3</Source> 
     33      <Name>skrillex_-_kill_everybody-F21aifX0lZY_fmt18</Name> 
     34      <Importer>Mp3Importer</Importer> 
     35      <Processor>SongProcessor</Processor> 
     36      <Options>None</Options> 
     37      <Output>C:\MyTemp\ToniV\Try to survive\Try to survive\Try to survive\bin\x86\Debug\Content\skrillex_-_kill_everybody-F21aifX0lZY_fmt18.xnb</Output> 
     38      <Extra>C:\MyTemp\ToniV\Try to survive\Try to survive\Try to survive\bin\x86\Debug\Content\skrillex_-_kill_everybody-F21aifX0lZY_fmt18.wma</Extra> 
     39      <Time>2012-06-15T11:56:39.7672632+03:00</Time> 
     40    </Item> 
     41    <Item> 
     42      <Source>skrillex.mp3</Source> 
     43      <Name>skrillex</Name> 
     44      <Importer>Mp3Importer</Importer> 
     45      <Processor>SongProcessor</Processor> 
     46      <Options>None</Options> 
     47      <Output>C:\MyTemp\ToniV\Try to survive\Try to survive\Try to survive\bin\x86\Debug\Content\skrillex.xnb</Output> 
     48      <Extra>C:\MyTemp\ToniV\Try to survive\Try to survive\Try to survive\bin\x86\Debug\Content\skrillex.wma</Extra> 
     49      <Time>2012-06-15T11:57:06.0372632+03:00</Time> 
    2150    </Item> 
    2251    <BuildSuccessful>true</BuildSuccessful> 
Note: See TracChangeset for help on using the changeset viewer.