- Timestamp:
- 2011-07-01 11:40:07 (12 years ago)
- 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 1 1 ====================== 2 2 | | 3 | a a|3 | x a a | 4 4 |============== | 5 5 | == | … … 12 12 | ======== ====== | 13 13 | | 14 | P aa |14 | P a a | 15 15 ====================== -
2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Peli.cs
r2397 r2402 84 84 Camera.StayInLevel = true; 85 85 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 } 87 97 } 88 98 … … 99 109 levelSpec['P'] = addPlayer; 100 110 levelSpec['a'] = addMeleeAlien; 111 levelSpec['x'] = addVictoryPoint; 101 112 levelSpec.Insert(SCREEN_WIDTH, SCREEN_HEIGHT); 102 113 Level.CreateBorders(); … … 131 142 return vBlock; 132 143 } 144 145 PhysicsObject addVictoryPoint() 146 { 147 PhysicsObject victoryPoint = PhysicsObject.CreateStaticObject(SCREEN_WIDTH, SCREEN_HEIGHT, Shape.Rectangle); 148 AddCollisionHandler(victoryPoint, winGame); 149 return victoryPoint; 150 } 133 151 } -
2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Player.cs
r2397 r2402 29 29 this.CollisionIgnoreGroup = 1; 30 30 this.Mass = mass; 31 this.Tag = "Player"; 31 32 32 33 // Creating the timer system that is *supposed* to enable a nice walking sound effect … … 46 47 rifle.ProjectileCollision += bulletReachedTarget; 47 48 48 this.changeWeapon(rifle.name());49 changeWeapon(rifle.name()); 49 50 } 50 51 … … 109 110 private void playWalkingSound(Timer sender) 110 111 { 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(); 112 115 } 113 116 -
2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372.csproj
r2397 r2402 62 62 </PropertyGroup> 63 63 <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> 65 67 </Reference> 66 68 <Reference Include="Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86"> -
2011/26/JaakkoL/todo.txt
r2397 r2402 1 1 Bugilista: 2 Kävelyääni tulee vain seisoessa paikallaan 3 Viholliset leijuvat ilmassa 4 Aseiden vaihtaminen 2 Viholliset leijuvat ilmassa -> Jypelin bugi 3 Aseiden vaihtaminen -> Jypelin torakka 5 4 6 5 Featurelista: 6 Kävelyääni 7 7 HP:en visuaalinen dokumentointi 8 8 Vihollisten hyökkäykset 9 Voittaminen
Note: See TracChangeset
for help on using the changeset viewer.