Changeset 8187 for 2016/30/TaavettiV


Ignore:
Timestamp:
2016-07-28 11:15:44 (3 years ago)
Author:
sieerinn
Message:
 
Location:
2016/30/TaavettiV/Street Alien Domination
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • 2016/30/TaavettiV/Street Alien Domination/Street Alien Domination/Street Alien DominationContent/kentta1.txt

    r8184 r8187  
    11#################################################################### 
    22#..................................................................# 
    3 #......................................................P...........# 
     3#..pppp................................................p...........# 
    44#................................................####################............ 
    55#...........................................##...#################### 
    6 #................................P......##..........................# 
     6#................................p......##..........................# 
    77#.............................#####................................# 
    88#.............................######..............................# 
     
    1616#####################################################################...## 
    1717###################################################################......# 
    18 #.........................................................P............###. 
     18#.........................................................p............###. 
    1919########################################################################## 
  • 2016/30/TaavettiV/Street Alien Domination/Street Alien Domination/Street_Alien_Domination/Street_Alien_Domination.cs

    r8184 r8187  
    2323 
    2424    public override void Begin() 
    25     { PhysicsObject kissa = new PhysicsObject(40, 20); 
     25    { 
     26        PhysicsObject kissa = new PhysicsObject(40, 20); 
    2627        kissa.Shape = Shape.Rectangle; 
    2728        kissa.Mass = 10.0; 
     
    7172    void LisaaOlio(Vector paikka, double leveys, double korkeus) 
    7273    { 
    73         PlatformCharacter p = new PlatformCharacter(leveys, korkeus); 
     74        PlatformCharacter p = new PlatformCharacter(leveys*0.9, korkeus*0.9); 
    7475        p.Position = paikka; 
    7576        p.Image = pompKuva; 
     
    7778        p.Tag = "p"; 
    7879 
    79          
     80 
    8081 
    8182        PlatformWandererBrain tasoAivot = new PlatformWandererBrain(); 
    8283        tasoAivot.Speed = 100; 
    8384 
     85        tasoAivot.FallsOffPlatforms = true; 
     86        tasoAivot.TriesToJump = true; 
     87 
    8488        p.Brain = tasoAivot; 
     89 
    8590    } 
    8691 
     
    105110        AddCollisionHandler(pelaaja1, "p", Tormaap); 
    106111        Add(pelaaja1); 
    107          
     112 
    108113 
    109114 
     
    113118        pelaaja1.Weapon.InfiniteAmmo = true; 
    114119        pelaaja1.Weapon.FireRate = 1.0; 
    115         pelaaja1.Weapon.Power.DefaultValue = 2000; 
    116         pelaaja1.Weapon.AmmoIgnoresGravity = false; 
     120        pelaaja1.Weapon.Power.DefaultValue = 1100; 
     121        pelaaja1.Weapon.AmmoIgnoresGravity = true; 
    117122        pelaaja1.Weapon.AmmoIgnoresExplosions = true; 
    118123        pelaaja1.Weapon.CanHitOwner = false; 
     
    158163    { 
    159164        ammus.Destroy(); 
     165 
     166        if (kohde.Tag == "p") 
     167        { 
     168            kohde.Destroy(); 
     169        } 
    160170    } 
    161171 
     
    180190        Grenade kranu = new Grenade(3.0); 
    181191        pelaaja1.Throw(kranu, Angle.FromDegrees(1), 10000); 
    182         kranu.Explosion.ShockwaveReachesObject += KranaattiOsui; 
    183         //Grenade.Destroy (palikan = false); 
    184  
    185         kranu.Explosion.AddShockwaveHandler("vihollinen", KranaattiOsui); 
     192 
     193 
     194        kranu.Explosion.AddShockwaveHandler("p", KranaattiOsui); 
    186195    } 
    187196    void KranaattiOsui(IPhysicsObject rajahdyksenKohde, Vector v) 
  • 2016/30/TaavettiV/Street Alien Domination/Street Alien Domination/Street_Alien_Domination/Street_Alien_Domination.csproj.Debug.cachefile

    r8175 r8187  
    33Content\tahti.xnb 
    44Content\kentta1.xnb 
     5Content\pomp.xnb 
  • 2016/30/TaavettiV/Street Alien Domination/Street Alien Domination/Street_Alien_Domination/obj/x86/Debug/ContentPipeline-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}.xml

    r8175 r8187  
    3636      <Options>None</Options> 
    3737      <Output>C:\MyTemp\TaavettiV\Street Alien Domination\Street Alien Domination\Street_Alien_Domination\bin\x86\Debug\Content\kentta1.xnb</Output> 
    38       <Time>2016-07-27T13:53:45.2383739+03:00</Time> 
     38      <Time>2016-07-28T11:10:42.9011246+03:00</Time> 
     39    </Item> 
     40    <Item> 
     41      <Source>pomp.png</Source> 
     42      <Name>pomp</Name> 
     43      <Importer>TextureImporter</Importer> 
     44      <Processor>TextureProcessor</Processor> 
     45      <Options>None</Options> 
     46      <Output>C:\MyTemp\TaavettiV\Street Alien Domination\Street Alien Domination\Street_Alien_Domination\bin\x86\Debug\Content\pomp.xnb</Output> 
     47      <Time>2016-07-28T10:56:50.2375994+03:00</Time> 
    3948    </Item> 
    4049    <BuildSuccessful>true</BuildSuccessful> 
  • 2016/30/TaavettiV/Street Alien Domination/Street Alien Domination/Street_Alien_Domination/obj/x86/Debug/Street_Alien_Domination.csproj.FileListAbsolute.txt

    r8175 r8187  
    1111C:\MyTemp\TaavettiV\Street Alien Domination\Street Alien Domination\Street_Alien_Domination\bin\x86\Debug\Content\kentta1.xnb 
    1212C:\MyTemp\TaavettiV\Street Alien Domination\Street Alien Domination\Street_Alien_Domination\obj\x86\Debug\Street_Alien_Domination.csprojResolveAssemblyReference.cache 
     13C:\MyTemp\TaavettiV\Street Alien Domination\Street Alien Domination\Street_Alien_Domination\bin\x86\Debug\Content\pomp.xnb 
  • 2016/30/TaavettiV/Street Alien Domination/Street Alien Domination/Street_Alien_Domination/obj/x86/Debug/cachefile-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}-targetpath.txt

    r8175 r8187  
    33Content\tahti.xnb 
    44Content\kentta1.xnb 
     5Content\pomp.xnb 
Note: See TracChangeset for help on using the changeset viewer.