- Timestamp:
- 2012-06-15 12:14:51 (11 years ago)
- 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 1 1 Content\ukko.xnb 2 2 Content\Zombi.xnb 3 Content\tausta.xnb 4 Content\skrillex_-_kill_everybody-F21aifX0lZY_fmt18.xnb 5 Content\skrillex.xnb 6 Content\skrillex_-_kill_everybody-F21aifX0lZY_fmt18.wma 7 Content\skrillex.wma -
2012/24/ToniV/Try to survive/Try to survive/Try to survive/Try_to_survive.cs
r3041 r3113 9 9 class Zombi : PhysicsObject 10 10 { 11 public int Elamat = 2;11 public int Elamat = 1; 12 12 13 13 public Zombi(double leveys, double korkeus) … … 22 22 Image ukkokuva = LoadImage("ukko"); 23 23 Image Zombikuva = LoadImage("Zombi"); 24 Image tausta = LoadImage("tausta"); 25 // 24 26 25 27 public PhysicsObject ukko; 26 int healt = 5;28 int healt = 7; 27 29 28 30 bool saakoampua = true; … … 43 45 luoseina(400, 190, 24, 400); 44 46 luoseina(400, -280, 24, 250); 45 luoseina(-400, -10, 2 00, 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); 49 51 50 52 … … 63 65 vasenreuna.Tag = "reuna"; 64 66 oikeareuna.Tag = "reuna"; 65 67 Level.Background.Image = tausta; 68 Level.Background.FitToLevel(); 69 70 Camera.FollowedObject = ukko; 71 72 MediaPlayer.Play("skrillex"); 73 66 74 } 67 75 … … 74 82 Zombi2.Brain = seuraajanaivot; 75 83 Zombi2.Tag = "Zombi"; 76 seuraajanaivot.Speed = 100;84 seuraajanaivot.Speed = 90; 77 85 seuraajanaivot.TargetFollowDistance = 60000; 78 86 seuraajanaivot.FollowAlways = true; … … 88 96 { 89 97 PhysicsObject seinä = PhysicsObject.CreateStaticObject(leveys, korkeus); 90 seinä.Color = Color.Bl ack;98 seinä.Color = Color.Blue; 91 99 seinä.X = (X); 92 100 seinä.Y = (Y); … … 99 107 100 108 Timer ajastin = new Timer(); 101 ajastin.Interval = 0. 1;109 ajastin.Interval = 0.3; 102 110 ajastin.Timeout += luoZombi; 103 111 ajastin.Start(200); 112 113 Timer ajastin2 = new Timer(); 114 ajastin2.Start(); 104 115 105 116 … … 126 137 { 127 138 if (saakoampua == false) return; 128 PhysicsObject panos = new PhysicsObject(5 , 5);139 PhysicsObject panos = new PhysicsObject(50, 50); 129 140 panos.Shape = Shape.Circle; 130 panos.Color = Color. Black;141 panos.Color = Color.Green; 131 142 panos.Hit(suunta * 1100); 132 143 panos.Position = ukko.Position; … … 137 148 138 149 saakoampua = false; 139 Timer.SingleShot(0. 25, saaampua);150 Timer.SingleShot(0.3, saaampua); 140 151 } 141 152 … … 156 167 ukko.Destroy(); 157 168 rajahda(); 169 peliloppuu(); 170 MessageDisplay.Add("GAME OVER"); 158 171 } 159 172 } … … 184 197 } 185 198 186 void kierräeste()199 void peliloppuu () 187 200 { 188 201 Exit(); 189 202 } 190 203 } -
2012/24/ToniV/Try to survive/Try to survive/Try to survive/obj/x86/Debug/Try to survive.csproj.FileListAbsolute.txt
r3041 r3113 9 9 C:\MyTemp\ToniV\Try to survive\Try to survive\Try to survive\bin\x86\Debug\Jypeli.dll 10 10 C:\MyTemp\ToniV\Try to survive\Try to survive\Try to survive\bin\x86\Debug\Jypeli.xml 11 C:\MyTemp\ToniV\Try to survive\Try to survive\Try to survive\bin\x86\Debug\Content\tausta.xnb 12 C:\MyTemp\ToniV\Try to survive\Try to survive\Try to survive\bin\x86\Debug\Content\skrillex_-_kill_everybody-F21aifX0lZY_fmt18.xnb 13 C:\MyTemp\ToniV\Try to survive\Try to survive\Try to survive\bin\x86\Debug\Content\skrillex.xnb 14 C:\MyTemp\ToniV\Try to survive\Try to survive\Try to survive\bin\x86\Debug\Content\skrillex_-_kill_everybody-F21aifX0lZY_fmt18.wma 15 C:\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 1 1 Content\ukko.xnb 2 2 Content\Zombi.xnb 3 Content\tausta.xnb 4 Content\skrillex_-_kill_everybody-F21aifX0lZY_fmt18.xnb 5 Content\skrillex_-_kill_everybody-F21aifX0lZY_fmt18.wma 6 Content\skrillex.xnb 7 Content\skrillex.wma -
2012/24/ToniV/Try to survive/Try to survive/Try to surviveContent/Try to surviveContent.contentproj
r2998 r3113 58 58 </Compile> 59 59 </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> 60 81 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 61 82 <!-- 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 18 18 <Options>None</Options> 19 19 <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> 21 50 </Item> 22 51 <BuildSuccessful>true</BuildSuccessful>
Note: See TracChangeset
for help on using the changeset viewer.