- Timestamp:
- 2011-06-28 14:51:39 (12 years ago)
- Location:
- 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Enemies.cs
r2231 r2234 6 6 using Jypeli.Widgets; 7 7 8 public class MeleeAlien 8 public class MeleeAlien : GenEnemy 9 9 { 10 public MeleeAlien() 10 public MeleeAlien(double width, double height, Shape shape, int HP, string AI) 11 : base(width, height, shape, HP, AI) 11 12 { 13 12 14 } 13 15 } -
2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Enemy.cs
r2231 r2234 10 10 private string AItype 11 11 { 12 get { return AItype; }13 set { AItype = value; }12 get; 13 set; 14 14 } 15 15 … … 25 25 interface AI 26 26 { 27 void move();27 //void move(); 28 28 } 29 29 30 /* Implementation of the Patrol-AI30 /* Implementation of the "stupid" Patrol-AI 31 31 * The Patrol-AI just walks back and forth, waiting for the player to come into sight 32 32 * and then it attacks the player.*/ … … 36 36 } 37 37 38 /* Implementation of the Murderer-AI39 * The Murder-AI, in contrast to the Patrol-AI, actively seeks the player.*/40 public class MurdererAI : AI38 /* Implementation of the Seeker-AI 39 * The Seeker-AI, in contrast to the Seeker-AI, actively seeks the player.*/ 40 public class SeekerAI : AI 41 41 { 42 42 -
2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/GenCharacter.cs
r2231 r2234 9 9 { 10 10 // The amount of hit points the player/enemy has. Will be defined in their respective classes later on. 11 protected int hitPoints 12 { 13 get { return hitPoints; } 14 set { hitPoints = value; } 15 } 11 protected int hitPoints { get; set; } 16 12 17 13 // The maximum amount of hit points a player can have, which is currently defined as 100. -
2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Peli.cs
r2231 r2234 20 20 //lisaaNappaimet(); 21 21 22 //Camera.Follow(pelaaja1);23 //Camera.ZoomFactor = 1.2;24 //Camera.StayInLevel = true;22 Camera.Follow(player); 23 Camera.ZoomFactor = 1.2; 24 Camera.StayInLevel = true; 25 25 } 26 26 … … 43 43 MeleeAlien addMeleeAlien() 44 44 { 45 MeleeAlien meleeAlien = new MeleeAlien( );45 MeleeAlien meleeAlien = new MeleeAlien(SCREEN_WIDTH, SCREEN_HEIGTH, Shape.Rectangle, 10, "Patrol"); 46 46 return meleeAlien; 47 47 } -
2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Player.cs
r2226 r2234 16 16 { 17 17 hitPoints = 100; 18 addControls();18 AddedToGame += addControls; 19 19 } 20 20 … … 26 26 } 27 27 28 public void moveRight(int s )28 public void moveRight(int speed) 29 29 { 30 this.Walk(s );30 this.Walk(speed); 31 31 } 32 32 -
2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372.csproj
r2205 r2234 111 111 </ItemGroup> 112 112 <ItemGroup> 113 <Compile Include="Enemies.cs" /> 113 114 <Compile Include="Enemy.cs" /> 114 115 <Compile Include="GenCharacter.cs" /> … … 122 123 <Content Include="GameThumbnail.png" /> 123 124 <Content Include="kentta1.txt"> 125 <CopyToOutputDirectory>Always</CopyToOutputDirectory> 126 </Content> 127 <Content Include="ReactorEntrance.txt"> 124 128 <CopyToOutputDirectory>Always</CopyToOutputDirectory> 125 129 </Content>
Note: See TracChangeset
for help on using the changeset viewer.