Changeset 2027 for 2011/24/AkiR/Fight the Rambo
- Timestamp:
- 2011-06-15 15:00:36 (12 years ago)
- Location:
- 2011/24/AkiR/Fight the Rambo
- Files:
-
- 9 added
- 9 deleted
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
2011/24/AkiR/Fight the Rambo/Fight the Rambo/Fight the Rambo/Fight the Rambo.csproj.Debug.cachefile
r2015 r2027 1 1 Content\maali.xnb 2 Content\norsu.xnb3 Content\tahti.xnb4 Content\rambo.xnb5 2 Content\rambo1.xnb 6 Content\NuHa warrior.xnb 3 Content\Nuhasotilas.xnb 4 Content\shit.xnb 5 Content\shit.wma 7 6 kentta1.txt -
2011/24/AkiR/Fight the Rambo/Fight the Rambo/Fight the Rambo/Peli.cs
r2015 r2027 14 14 15 15 PlatformCharacter pelaaja1; 16 16 PlatformCharacter vihollinen; 17 17 Image pelaajanKuva = LoadImage("rambo1"); 18 Image tahtiKuva = LoadImage("NuHa warrior");18 Image vihollisenkuva = LoadImage("Nuhasotilas"); 19 19 20 20 SoundEffect maaliAani = LoadSoundEffect("maali"); 21 Image paikallaanVasemmalle = LoadImage("rambo1"); 22 Image paikallaanOikealle; 23 24 Image[] kavelyVasemmalle = LoadImages("rambo1"); 25 Image[] kavelyOikealle; 21 26 22 27 23 28 public override void Begin() 24 29 { 30 ClearAll(); 31 32 paikallaanOikealle = Image.Mirror(paikallaanVasemmalle); 33 kavelyOikealle = Image.Mirror(kavelyVasemmalle); 34 25 35 Gravity = new Vector(0, -1000); 26 36 … … 37 47 { 38 48 TileMap kentta = TileMap.FromFile("kentta1.txt"); 49 kentta['E'] = lisaaVihollinen; 39 50 kentta['#'] = lisaaTaso; 40 kentta['*'] = lisaaTahti;41 51 kentta['N'] = lisaaPelaaja; 42 52 kentta.Insert(RUUDUN_KOKO, RUUDUN_KOKO); … … 48 58 { 49 59 PhysicsObject taso = PhysicsObject.CreateStaticObject(RUUDUN_KOKO, RUUDUN_KOKO); 50 taso.Color = Color.B lack;60 taso.Color = Color.Beige; 51 61 return taso; 52 }53 54 PhysicsObject lisaaTahti()55 {56 PhysicsObject tahti = PhysicsObject.CreateStaticObject(RUUDUN_KOKO, RUUDUN_KOKO);57 tahti.Image = tahtiKuva;58 tahti.Tag = "tahti";59 return tahti;60 62 } 61 63 … … 65 67 pelaaja1.Mass = 4.0; 66 68 pelaaja1.Image = pelaajanKuva; 67 AddCollisionHandler(pelaaja1, osuTahteen); 69 pelaaja1.Weapon = new AssaultRifle(40, 15); 70 pelaaja1.Weapon.ProjectileCollision = AmmusOsui; 71 pelaaja1.Weapon.Y = -10; 72 pelaaja1.Weapon.X = 0; 73 pelaaja1.RightIdleAnimation = new Animation(paikallaanVasemmalle); 74 pelaaja1.LeftIdleAnimation = new Animation(paikallaanOikealle); 75 76 pelaaja1.RightWalkingAnimation = new Animation(kavelyVasemmalle); 77 pelaaja1.LeftWalkingAnimation = new Animation(kavelyOikealle); 78 79 80 81 82 68 83 return pelaaja1; 69 84 } … … 77 92 Keyboard.Listen(Key.Right, ButtonState.Down, liikuta, "Liikkuu vasemmalle", pelaaja1, nopeus); 78 93 Keyboard.Listen(Key.Up, ButtonState.Pressed, hyppaa, "Pelaaja hyppää", pelaaja1, hyppyNopeus); 94 Keyboard.Listen(Key.Space, ButtonState.Down, AmmuAseella, "Ammu"); 79 95 80 96 ControllerOne.Listen(Button.Back, ButtonState.Pressed, Exit, "Poistu pelistä"); … … 95 111 } 96 112 97 void osuTahteen(PhysicsObject hahmo, PhysicsObject kohde) 113 114 115 void AmmuAseella() 98 116 { 99 if (kohde.Tag.ToString() == "tahti") 117 PhysicsObject Ammus = pelaaja1.Weapon.Shoot(); 118 if (Ammus != null) 100 119 { 101 maaliAani.Play();102 MessageDisplay.Add("Tuhosit vihollisen!");103 kohde.Destroy(); 120 Ammus.Size *= 4; 121 Ammus.MaximumLifetime = TimeSpan.FromSeconds(1.1); 122 104 123 } 105 124 } 125 void AmmusOsui(PhysicsObject Ammus, PhysicsObject Kohde) 126 { 127 Ammus.Destroy(); 128 Explosion rajahdys = new Explosion(10); 129 rajahdys.Position = Ammus.Position; 130 131 132 } 133 134 135 PlatformCharacter lisaaVihollinen() 136 { 137 vihollinen = new PlatformCharacter(70, 70); 138 vihollinen.Mass = 4.0; 139 vihollinen.Image = vihollisenkuva; 140 141 142 FollowerBrain seuraajanAivot = new FollowerBrain(); 143 vihollinen.Brain = seuraajanAivot; 144 seuraajanAivot.Target = pelaaja1; 145 seuraajanAivot.Speed = 100; 146 seuraajanAivot.TargetFollowDistance = 600; 147 seuraajanAivot.FollowAlways = true; 148 AddCollisionHandler(vihollinen, VihollinenOsui); 149 150 return vihollinen; 151 } 152 void VihollinenOsui(PhysicsObject vihollinen, PhysicsObject kohde) 153 { 154 if (kohde == pelaaja1) 155 { 156 MediaPlayer.Play("shit"); 157 pelaaja1.Destroy(); 158 Begin(); 159 } 160 } 106 161 } 162 163 164 165 166 167 -
2011/24/AkiR/Fight the Rambo/Fight the Rambo/Fight the Rambo/bin/x86/Debug/kentta1.txt
r2015 r2027 2 2 3 3 4 N * 5 ###################### 4 5 6 7 N E ############# 8 ##################################### -
2011/24/AkiR/Fight the Rambo/Fight the Rambo/Fight the Rambo/kentta1.txt
r2015 r2027 2 2 3 3 4 N * 5 ###################### 4 5 6 7 N E ############# 8 ##################################### -
2011/24/AkiR/Fight the Rambo/Fight the Rambo/Fight the Rambo/obj/x86/Debug/Fight the Rambo.csproj.FileListAbsolute.txt
r2015 r2027 1 C:\MyTemp\Fight the Rambo\Fight the Rambo\Fight the Rambo\obj\x86\Debug\ResolveAssemblyReference.cache 2 C:\MyTemp\Fight the Rambo\Fight the Rambo\Fight the Rambo\obj\x86\Debug\Microsoft.Xna.Framework.RuntimeProfile.txt 3 C:\MyTemp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\kentta1.txt 4 C:\MyTemp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\maali.xnb 5 C:\MyTemp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\norsu.xnb 6 C:\MyTemp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\tahti.xnb 7 C:\MyTemp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\rambo.xnb 8 C:\MyTemp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Fight the Rambo.exe 9 C:\MyTemp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Fight the Rambo.pdb 10 C:\MyTemp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Jypeli4.dll 11 C:\MyTemp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Jypeli4.xml 12 C:\MyTemp\Fight the Rambo\Fight the Rambo\Fight the Rambo\obj\x86\Debug\Fight the Rambo.exe 13 C:\MyTemp\Fight the Rambo\Fight the Rambo\Fight the Rambo\obj\x86\Debug\Fight the Rambo.pdb 14 C:\MyTemp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\rambo1.xnb 15 C:\MyTemp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\NuHa warrior.xnb 1 C:\MyTemp\AkiR\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\kentta1.txt 2 C:\MyTemp\AkiR\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Fight the Rambo.exe 3 C:\MyTemp\AkiR\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Fight the Rambo.pdb 4 C:\MyTemp\AkiR\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Jypeli4.dll 5 C:\MyTemp\AkiR\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Jypeli4.xml 6 C:\MyTemp\AkiR\Fight the Rambo\Fight the Rambo\Fight the Rambo\obj\x86\Debug\ResolveAssemblyReference.cache 7 C:\MyTemp\AkiR\Fight the Rambo\Fight the Rambo\Fight the Rambo\obj\x86\Debug\Microsoft.Xna.Framework.RuntimeProfile.txt 8 C:\MyTemp\AkiR\Fight the Rambo\Fight the Rambo\Fight the Rambo\obj\x86\Debug\Fight the Rambo.exe 9 C:\MyTemp\AkiR\Fight the Rambo\Fight the Rambo\Fight the Rambo\obj\x86\Debug\Fight the Rambo.pdb 10 C:\MyTemp\AkiR\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\maali.xnb 11 C:\MyTemp\AkiR\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\rambo1.xnb 12 C:\MyTemp\AkiR\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\Nuhasotilas.xnb 13 C:\MyTemp\AkiR\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\shit.xnb 14 C:\MyTemp\AkiR\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\shit.wma -
2011/24/AkiR/Fight the Rambo/Fight the Rambo/Fight the Rambo/obj/x86/Debug/cachefile-{B0E0BEF2-BE44-4A05-9208-56A1391AC4FE}-targetpath.txt
r2015 r2027 1 1 Content\maali.xnb 2 Content\norsu.xnb3 Content\tahti.xnb4 Content\rambo.xnb5 2 Content\rambo1.xnb 6 Content\NuHa warrior.xnb 3 Content\Nuhasotilas.xnb 4 Content\shit.xnb 5 Content\shit.wma -
2011/24/AkiR/Fight the Rambo/Fight the Rambo/Fight the RamboContent/Fight the RamboContent.contentproj
r2015 r2027 48 48 <Processor>SoundEffectProcessor</Processor> 49 49 </Compile> 50 <Compile Include="norsu.png">51 <Name>norsu</Name>52 <Importer>TextureImporter</Importer>53 <Processor>TextureProcessor</Processor>54 </Compile>55 <Compile Include="tahti.png">56 <Name>tahti</Name>57 <Importer>TextureImporter</Importer>58 <Processor>TextureProcessor</Processor>59 </Compile>60 </ItemGroup>61 <ItemGroup>62 <Compile Include="rambo.png">63 <Name>rambo</Name>64 <Importer>TextureImporter</Importer>65 <Processor>TextureProcessor</Processor>66 </Compile>67 50 </ItemGroup> 68 51 <ItemGroup> … … 74 57 </ItemGroup> 75 58 <ItemGroup> 76 <Compile Include="Nu Ha warrior.png">77 <Name>Nu Ha warrior</Name>59 <Compile Include="Nuhasotilas.png"> 60 <Name>Nuhasotilas</Name> 78 61 <Importer>TextureImporter</Importer> 79 62 <Processor>TextureProcessor</Processor> 63 </Compile> 64 </ItemGroup> 65 <ItemGroup> 66 <Compile Include="shit.mp3"> 67 <Name>shit</Name> 68 <Importer>Mp3Importer</Importer> 69 <Processor>SongProcessor</Processor> 80 70 </Compile> 81 71 </ItemGroup> -
2011/24/AkiR/Fight the Rambo/Fight the Rambo/Fight the RamboContent/obj/x86/Debug/ContentPipeline.xml
r2015 r2027 8 8 <Processor>SoundEffectProcessor</Processor> 9 9 <Options>None</Options> 10 <Output>C:\MyTemp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\maali.xnb</Output> 11 <Time>2011-06-14T17:09:16.817991+03:00</Time> 12 </Item> 13 <Item> 14 <Source>norsu.png</Source> 15 <Name>norsu</Name> 16 <Importer>TextureImporter</Importer> 17 <Processor>TextureProcessor</Processor> 18 <Options>None</Options> 19 <Output>C:\MyTemp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\norsu.xnb</Output> 20 <Time>2011-06-14T17:09:16.8389922+03:00</Time> 21 </Item> 22 <Item> 23 <Source>tahti.png</Source> 24 <Name>tahti</Name> 25 <Importer>TextureImporter</Importer> 26 <Processor>TextureProcessor</Processor> 27 <Options>None</Options> 28 <Output>C:\MyTemp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\tahti.xnb</Output> 29 <Time>2011-06-14T17:09:16.8439925+03:00</Time> 30 </Item> 31 <Item> 32 <Source>rambo.png</Source> 33 <Name>rambo</Name> 34 <Importer>TextureImporter</Importer> 35 <Processor>TextureProcessor</Processor> 36 <Options>None</Options> 37 <Output>C:\MyTemp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\rambo.xnb</Output> 38 <Time>2011-06-14T17:09:16.8259915+03:00</Time> 10 <Output>C:\MyTemp\AkiR\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\maali.xnb</Output> 11 <Time>2011-06-14T13:45:55.38552+03:00</Time> 39 12 </Item> 40 13 <Item> … … 44 17 <Processor>TextureProcessor</Processor> 45 18 <Options>None</Options> 46 <Output>C:\MyTemp\ Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\rambo1.xnb</Output>47 <Time>2011-06-15T0 8:06:53.8627796+03:00</Time>19 <Output>C:\MyTemp\AkiR\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\rambo1.xnb</Output> 20 <Time>2011-06-15T09:51:03.314392+03:00</Time> 48 21 </Item> 49 22 <Item> 50 <Source>Nu Ha warrior.png</Source>51 <Name>Nu Ha warrior</Name>23 <Source>Nuhasotilas.png</Source> 24 <Name>Nuhasotilas</Name> 52 25 <Importer>TextureImporter</Importer> 53 26 <Processor>TextureProcessor</Processor> 54 27 <Options>None</Options> 55 <Output>C:\MyTemp\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\NuHa warrior.xnb</Output> 56 <Time>2011-06-15T08:07:19.4082407+03:00</Time> 28 <Output>C:\MyTemp\AkiR\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\Nuhasotilas.xnb</Output> 29 <Time>2011-06-15T14:35:04.1700348+03:00</Time> 30 </Item> 31 <Item> 32 <Source>shit.mp3</Source> 33 <Name>shit</Name> 34 <Importer>Mp3Importer</Importer> 35 <Processor>SongProcessor</Processor> 36 <Options>None</Options> 37 <Output>C:\MyTemp\AkiR\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\shit.xnb</Output> 38 <Extra>C:\MyTemp\AkiR\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\shit.wma</Extra> 39 <Time>2011-06-15T14:43:13.7854528+03:00</Time> 57 40 </Item> 58 41 <BuildSuccessful>true</BuildSuccessful> … … 62 45 <BuildConfiguration>Debug</BuildConfiguration> 63 46 <CompressContent>false</CompressContent> 64 <RootDirectory>C:\MyTemp\ Fight the Rambo\Fight the Rambo\Fight the RamboContent\</RootDirectory>65 <LoggerRootDirectory>C:\MyTemp\ Fight the Rambo\Fight the Rambo\Fight the Rambo\</LoggerRootDirectory>66 <IntermediateDirectory>C:\MyTemp\ Fight the Rambo\Fight the Rambo\Fight the RamboContent\obj\x86\Debug\</IntermediateDirectory>67 <OutputDirectory>C:\MyTemp\ Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\</OutputDirectory>47 <RootDirectory>C:\MyTemp\AkiR\Fight the Rambo\Fight the Rambo\Fight the RamboContent\</RootDirectory> 48 <LoggerRootDirectory>C:\MyTemp\AkiR\Fight the Rambo\Fight the Rambo\Fight the Rambo\</LoggerRootDirectory> 49 <IntermediateDirectory>C:\MyTemp\AkiR\Fight the Rambo\Fight the Rambo\Fight the RamboContent\obj\x86\Debug\</IntermediateDirectory> 50 <OutputDirectory>C:\MyTemp\AkiR\Fight the Rambo\Fight the Rambo\Fight the Rambo\bin\x86\Debug\Content\</OutputDirectory> 68 51 </Settings> 69 52 <Assemblies> 70 53 <Assembly> 71 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.XImporter.dll</Key>72 <Value>2010-08-23T1 2:41:18+03:00</Value>54 <Key>C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.XImporter.dll</Key> 55 <Value>2010-08-23T13:41:18+03:00</Value> 73 56 </Assembly> 74 57 <Assembly> 75 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.VideoImporters.dll</Key>76 <Value>2010-08-23T1 2:41:18+03:00</Value>58 <Key>C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.VideoImporters.dll</Key> 59 <Value>2010-08-23T13:41:18+03:00</Value> 77 60 </Assembly> 78 61 <Assembly> 79 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.dll</Key>80 <Value>2010-08-23T1 2:41:18+03:00</Value>62 <Key>C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.dll</Key> 63 <Value>2010-08-23T13:41:18+03:00</Value> 81 64 </Assembly> 82 65 <Assembly> 83 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.FBXImporter.dll</Key>84 <Value>2010-08-23T1 2:41:18+03:00</Value>66 <Key>C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.FBXImporter.dll</Key> 67 <Value>2010-08-23T13:41:18+03:00</Value> 85 68 </Assembly> 86 69 <Assembly> 87 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.EffectImporter.dll</Key>88 <Value>2010-08-23T1 2:41:18+03:00</Value>70 <Key>C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.EffectImporter.dll</Key> 71 <Value>2010-08-23T13:41:18+03:00</Value> 89 72 </Assembly> 90 73 <Assembly> 91 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.AudioImporters.dll</Key>92 <Value>2010-08-23T1 2:41:18+03:00</Value>74 <Key>C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.AudioImporters.dll</Key> 75 <Value>2010-08-23T13:41:18+03:00</Value> 93 76 </Assembly> 94 77 <Assembly> 95 <Key>C:\W indows\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Content.Pipeline\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Content.Pipeline.dll</Key>96 <Value>201 1-06-13T18:27:01.0983446+03:00</Value>78 <Key>C:\WINNT\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Content.Pipeline\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Content.Pipeline.dll</Key> 79 <Value>2010-12-30T13:20:25.8660183+02:00</Value> 97 80 </Assembly> 98 81 </Assemblies> -
2011/24/AkiR/Fight the Rambo/Fight the Rambo/Fight the RamboContent/obj/x86/Debug/Fight the RamboContent.contentproj.FileListAbsolute.txt
r2006 r2027 1 C:\MyTemp\ Fight the Rambo\Fight the Rambo\Fight the RamboContent\obj\x86\Debug\ResolveAssemblyReference.cache1 C:\MyTemp\AkiR\Fight the Rambo\Fight the Rambo\Fight the RamboContent\obj\x86\Debug\ResolveAssemblyReference.cache
Note: See TracChangeset
for help on using the changeset viewer.