Changeset 2402 for 2011/26


Ignore:
Timestamp:
2011-07-01 11:40:07 (12 years ago)
Author:
teeevasa
Message:

updated Jypeli

Location:
2011/26/JaakkoL
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/InsideReactor.txt

    r2397 r2402  
    11====================== 
    22|                    | 
    3 |    a     a         | 
     3| x   a     a        | 
    44|==============      | 
    55|                 == | 
     
    1212|  ========   ====== | 
    1313|                    | 
    14 | P      a       a   | 
     14| P       a      a   | 
    1515====================== 
  • 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Peli.cs

    r2397 r2402  
    8484        Camera.StayInLevel = true; 
    8585 
    86         //AddCollisionHandler(MeleeAlien alien, handleAlienCollision); 
     86        //AddCollisionHandler(alien, handleAlienCollision); 
     87    } 
     88 
     89    void winGame(PhysicsObject victoryPoint, PhysicsObject target) 
     90    { 
     91        if (target.Tag == "Player") 
     92        { 
     93            ClearAll(); 
     94            Label youWon = new Label("You won!"); 
     95            Add(youWon); 
     96        } 
    8797    } 
    8898 
     
    99109        levelSpec['P'] = addPlayer; 
    100110        levelSpec['a'] = addMeleeAlien; 
     111        levelSpec['x'] = addVictoryPoint; 
    101112        levelSpec.Insert(SCREEN_WIDTH, SCREEN_HEIGHT); 
    102113        Level.CreateBorders(); 
     
    131142        return vBlock; 
    132143    } 
     144 
     145    PhysicsObject addVictoryPoint() 
     146    { 
     147        PhysicsObject victoryPoint = PhysicsObject.CreateStaticObject(SCREEN_WIDTH, SCREEN_HEIGHT, Shape.Rectangle); 
     148        AddCollisionHandler(victoryPoint, winGame); 
     149        return victoryPoint; 
     150    } 
    133151} 
  • 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Player.cs

    r2397 r2402  
    2929        this.CollisionIgnoreGroup = 1; 
    3030        this.Mass = mass; 
     31        this.Tag = "Player"; 
    3132 
    3233        // Creating the timer system that is *supposed* to enable a nice walking sound effect 
     
    4647        rifle.ProjectileCollision += bulletReachedTarget; 
    4748 
    48         this.changeWeapon(rifle.name()); 
     49        changeWeapon(rifle.name()); 
    4950        } 
    5051 
     
    109110    private void playWalkingSound(Timer sender) 
    110111    { 
    111         this.walking.Play(); 
     112        // Disabled for now because it doesn't work at all: 
     113        // the walking sound effect is only heard when standing still 
     114        //this.walking.Play(); 
    112115    } 
    113116 
  • 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372.csproj

    r2397 r2402  
    6262  </PropertyGroup> 
    6363  <ItemGroup> 
    64     <Reference Include="Jypeli4"> 
     64    <Reference Include="Jypeli4, Version=4.0.6.0, Culture=neutral, processorArchitecture=x86"> 
     65      <SpecificVersion>False</SpecificVersion> 
     66      <HintPath>..\..\..\Jypeli4.dll</HintPath> 
    6567    </Reference> 
    6668    <Reference Include="Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86"> 
  • 2011/26/JaakkoL/todo.txt

    r2397 r2402  
    11Bugilista: 
    2 Kävelyääni tulee vain seisoessa paikallaan 
    3 Viholliset leijuvat ilmassa 
    4 Aseiden vaihtaminen 
     2Viholliset leijuvat ilmassa -> Jypelin bugi 
     3Aseiden vaihtaminen -> Jypelin torakka 
    54 
    65Featurelista: 
     6Kävelyääni 
    77HP:en visuaalinen dokumentointi 
    88Vihollisten hyökkäykset 
    9 Voittaminen 
Note: See TracChangeset for help on using the changeset viewer.