- Timestamp:
- 2016-02-20 14:52:23 (7 years ago)
- Location:
- 2015/27/JaakkoS
- Files:
-
- 38 added
- 11 deleted
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/27/JaakkoS/RPGpeli/RPGpeli/RPGpeli/RPGpeli.cs
r7095 r7126 9 9 public class RPGpeli : PhysicsGame 10 10 { 11 12 11 13 PhysicsObject pelaaja; 14 PhysicsObject Vihu; 15 SoundEffect Karjaisu = LoadSoundEffect("Rpgkarjaisu"); 12 16 Image ritariKuva = LoadImage("ritari"); 13 Image Vihukuva1 = LoadImage("Viholli nen1");17 Image Vihukuva1 = LoadImage("Vihollien1"); 14 18 Image Vihukuva1T = LoadImage("Vihollinen1Taka"); 15 19 Image Vihukuva1O = LoadImage("VihollinenOikea"); 16 20 Image Vihukuva1V = LoadImage("VihollinenVasen"); 21 Image LuolaKuva = LoadImage("luola"); 17 22 18 23 static private Image[] ritariOikealle = LoadImages("Ritarioikealle", "RanimaatioO"); … … 26 31 Image ritariTaka = LoadImage("Ritaritaka"); 27 32 33 static private Image[] Vihueteen = LoadImages("V1AnimaatioE1", "V1AnimaatioE2"); 34 Animation VihuAnim = new Animation(Vihueteen); 35 28 36 29 37 public override void Begin() 30 38 { 39 40 31 41 pelaaja = new PhysicsObject(50, 100); 32 42 pelaaja.Image = ritariKuva; 33 43 pelaaja.LinearDamping = 0.90; 34 44 pelaaja.Tag = "pelaaja"; 45 pelaaja.CanRotate = false; 35 46 Add(pelaaja); 47 48 lisaaLuola(300, 200); 36 49 37 50 PhoneBackButton.Listen(ConfirmExit, "Lopeta peli"); … … 61 74 } 62 75 63 void lisaaVihollinenen( )76 void lisaaVihollinenen(double x, double y) 64 77 { 65 PhysicsObject Vihu = new PhysicsObject(50, 100); 66 Vihu.Image = Vihukuva1; 78 Vihu = new PhysicsObject(50, 70); 79 Vihu.MaximumLifetime = TimeSpan.FromSeconds(10.0); 80 Vihu.X = x; 81 Vihu.Y = y; 82 Vihu.Animation = VihuAnim; 83 Vihu.Animation.FPS = 4; 84 Vihu.Animation.Start(); 85 Vihu.CanRotate = false; 86 Vihu.Tag = "Vihollinen"; 87 88 FollowerBrain seuraajaAivot = new FollowerBrain("pelaaja"); 89 //seuraajaAivot.TargetDistance.AddTrigger(10, TriggerDirection.Down, Karjaise); 90 seuraajaAivot.DistanceToTarget.AddTrigger(60, TriggerDirection.Down, Karjaise); 91 seuraajaAivot.Speed = 150; 92 Vihu.Brain = seuraajaAivot; 93 67 94 Add(Vihu); 68 95 69 96 } 97 void lisaaLuola(double x, double y) 98 { 99 GameObject Luola = new GameObject(50, 50); 100 Luola.X = x; 101 Luola.Y = y; 102 Luola.Image = LuolaKuva; 103 Luola.Tag = "vihuspawn"; 104 Add(Luola); 105 106 Timer vihuAjastin = new Timer(); 107 vihuAjastin.Interval = 2; 108 vihuAjastin.Timeout += delegate { lisaaVihollinenen(x, y); }; 109 110 vihuAjastin.Start(); 111 112 } 113 void Karjaise() 114 { 115 //PlaySound("Karjaisu"); 116 Karjaisu.Play(); 117 } 118 70 119 } -
2015/27/JaakkoS/RPGpeli/RPGpeli/RPGpeli/RPGpeli.csproj.Debug.cachefile
r7095 r7126 1 Content\ritari.xnb2 1 Content\Ritarioikealle.xnb 3 2 Content\pelottavaritari.xnb … … 10 9 Content\RanimaatioT2.xnb 11 10 Content\RanimaatioV.xnb 11 Content\ritari.xnb 12 12 Content\Vihollien1.xnb 13 13 Content\Vihollinen1Taka.xnb 14 14 Content\VihollinenOikea.xnb 15 15 Content\VihollinenVasen.xnb 16 Content\luola.xnb 17 Content\Rpgkarjaisu.xnb 18 Content\V1AnimaatioE1.xnb 19 Content\V1AnimaatioE2.xnb 20 Content\Vihollien1.png -
2015/27/JaakkoS/RPGpeli/RPGpeli/RPGpeli/obj/x86/Debug/ContentPipeline-{387B9DE7-CFA5-49C1-8050-699303AA8829}.xml
r7095 r7126 3 3 <Asset Type="Pipeline:BuildItemCollection"> 4 4 <Item> 5 <Source>Ritarioikealle.png</Source> 6 <Name>Ritarioikealle</Name> 7 <Importer>TextureImporter</Importer> 8 <Processor>TextureProcessor</Processor> 9 <Options>None</Options> 10 <Output>C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\Ritarioikealle.xnb</Output> 11 <Time>2016-02-20T10:03:49.4376839+02:00</Time> 12 </Item> 13 <Item> 14 <Source>pelottavaritari.png</Source> 15 <Name>pelottavaritari</Name> 16 <Importer>TextureImporter</Importer> 17 <Processor>TextureProcessor</Processor> 18 <Options>None</Options> 19 <Output>C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\pelottavaritari.xnb</Output> 20 <Time>2016-02-20T10:03:49.4376839+02:00</Time> 21 </Item> 22 <Item> 23 <Source>Ritaritaka.png</Source> 24 <Name>Ritaritaka</Name> 25 <Importer>TextureImporter</Importer> 26 <Processor>TextureProcessor</Processor> 27 <Options>None</Options> 28 <Output>C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\Ritaritaka.xnb</Output> 29 <Time>2016-02-20T10:03:49.5936839+02:00</Time> 30 </Item> 31 <Item> 32 <Source>Ritarivasemmalle.png</Source> 33 <Name>Ritarivasemmalle</Name> 34 <Importer>TextureImporter</Importer> 35 <Processor>TextureProcessor</Processor> 36 <Options>None</Options> 37 <Output>C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\Ritarivasemmalle.xnb</Output> 38 <Time>2016-02-20T10:03:49.4376839+02:00</Time> 39 </Item> 40 <Item> 41 <Source>RanimaatioE1.png</Source> 42 <Name>RanimaatioE1</Name> 43 <Importer>TextureImporter</Importer> 44 <Processor>TextureProcessor</Processor> 45 <Options>None</Options> 46 <Output>C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\RanimaatioE1.xnb</Output> 47 <Time>2016-02-20T10:03:49.4532839+02:00</Time> 48 </Item> 49 <Item> 50 <Source>RanimaatioE2.png</Source> 51 <Name>RanimaatioE2</Name> 52 <Importer>TextureImporter</Importer> 53 <Processor>TextureProcessor</Processor> 54 <Options>None</Options> 55 <Output>C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\RanimaatioE2.xnb</Output> 56 <Time>2016-02-20T10:03:49.4532839+02:00</Time> 57 </Item> 58 <Item> 59 <Source>RanimaatioO.png</Source> 60 <Name>RanimaatioO</Name> 61 <Importer>TextureImporter</Importer> 62 <Processor>TextureProcessor</Processor> 63 <Options>None</Options> 64 <Output>C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\RanimaatioO.xnb</Output> 65 <Time>2016-02-20T10:03:49.4376839+02:00</Time> 66 </Item> 67 <Item> 68 <Source>RanimaatioT1.png</Source> 69 <Name>RanimaatioT1</Name> 70 <Importer>TextureImporter</Importer> 71 <Processor>TextureProcessor</Processor> 72 <Options>None</Options> 73 <Output>C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\RanimaatioT1.xnb</Output> 74 <Time>2016-02-20T10:03:49.5780839+02:00</Time> 75 </Item> 76 <Item> 77 <Source>RanimaatioT2.png</Source> 78 <Name>RanimaatioT2</Name> 79 <Importer>TextureImporter</Importer> 80 <Processor>TextureProcessor</Processor> 81 <Options>None</Options> 82 <Output>C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\RanimaatioT2.xnb</Output> 83 <Time>2016-02-20T10:03:49.5936839+02:00</Time> 84 </Item> 85 <Item> 86 <Source>RanimaatioV.png</Source> 87 <Name>RanimaatioV</Name> 88 <Importer>TextureImporter</Importer> 89 <Processor>TextureProcessor</Processor> 90 <Options>None</Options> 91 <Output>C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\RanimaatioV.xnb</Output> 92 <Time>2016-02-20T10:03:49.4532839+02:00</Time> 93 </Item> 94 <Item> 5 95 <Source>ritari.png</Source> 6 96 <Name>ritari</Name> … … 9 99 <Options>None</Options> 10 100 <Output>C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\ritari.xnb</Output> 11 <Time>2015-12-12T13:24:52.7229377+02:00</Time> 12 </Item> 13 <Item> 14 <Source>Ritarioikealle.png</Source> 15 <Name>Ritarioikealle</Name> 16 <Importer>TextureImporter</Importer> 17 <Processor>TextureProcessor</Processor> 18 <Options>None</Options> 19 <Output>C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\Ritarioikealle.xnb</Output> 20 <Time>2015-12-12T13:28:30.9733262+02:00</Time> 21 </Item> 22 <Item> 23 <Source>pelottavaritari.png</Source> 24 <Name>pelottavaritari</Name> 25 <Importer>TextureImporter</Importer> 26 <Processor>TextureProcessor</Processor> 27 <Options>None</Options> 28 <Output>C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\pelottavaritari.xnb</Output> 29 <Time>2015-12-12T11:22:42.5082551+02:00</Time> 30 </Item> 31 <Item> 32 <Source>Ritaritaka.png</Source> 33 <Name>Ritaritaka</Name> 34 <Importer>TextureImporter</Importer> 35 <Processor>TextureProcessor</Processor> 36 <Options>None</Options> 37 <Output>C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\Ritaritaka.xnb</Output> 38 <Time>2015-12-12T11:22:42.5082551+02:00</Time> 39 </Item> 40 <Item> 41 <Source>Ritarivasemmalle.png</Source> 42 <Name>Ritarivasemmalle</Name> 43 <Importer>TextureImporter</Importer> 44 <Processor>TextureProcessor</Processor> 45 <Options>None</Options> 46 <Output>C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\Ritarivasemmalle.xnb</Output> 47 <Time>2015-12-12T11:22:42.5082551+02:00</Time> 48 </Item> 49 <Item> 50 <Source>RanimaatioE1.png</Source> 51 <Name>RanimaatioE1</Name> 52 <Importer>TextureImporter</Importer> 53 <Processor>TextureProcessor</Processor> 54 <Options>None</Options> 55 <Output>C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\RanimaatioE1.xnb</Output> 56 <Time>2015-12-12T12:51:09.2620253+02:00</Time> 57 </Item> 58 <Item> 59 <Source>RanimaatioE2.png</Source> 60 <Name>RanimaatioE2</Name> 61 <Importer>TextureImporter</Importer> 62 <Processor>TextureProcessor</Processor> 63 <Options>None</Options> 64 <Output>C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\RanimaatioE2.xnb</Output> 65 <Time>2015-12-12T12:51:09.2776256+02:00</Time> 66 </Item> 67 <Item> 68 <Source>RanimaatioO.png</Source> 69 <Name>RanimaatioO</Name> 70 <Importer>TextureImporter</Importer> 71 <Processor>TextureProcessor</Processor> 72 <Options>None</Options> 73 <Output>C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\RanimaatioO.xnb</Output> 74 <Time>2015-12-12T12:51:31.6032566+02:00</Time> 75 </Item> 76 <Item> 77 <Source>RanimaatioT1.png</Source> 78 <Name>RanimaatioT1</Name> 79 <Importer>TextureImporter</Importer> 80 <Processor>TextureProcessor</Processor> 81 <Options>None</Options> 82 <Output>C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\RanimaatioT1.xnb</Output> 83 <Time>2015-12-12T12:52:25.840518+02:00</Time> 84 </Item> 85 <Item> 86 <Source>RanimaatioT2.png</Source> 87 <Name>RanimaatioT2</Name> 88 <Importer>TextureImporter</Importer> 89 <Processor>TextureProcessor</Processor> 90 <Options>None</Options> 91 <Output>C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\RanimaatioT2.xnb</Output> 92 <Time>2015-12-12T12:52:25.840518+02:00</Time> 93 </Item> 94 <Item> 95 <Source>RanimaatioV.png</Source> 96 <Name>RanimaatioV</Name> 97 <Importer>TextureImporter</Importer> 98 <Processor>TextureProcessor</Processor> 99 <Options>None</Options> 100 <Output>C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\RanimaatioV.xnb</Output> 101 <Time>2015-12-12T12:52:56.0426988+02:00</Time> 101 <Time>2016-02-20T10:03:49.5936839+02:00</Time> 102 102 </Item> 103 103 <Item> … … 108 108 <Options>None</Options> 109 109 <Output>C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\Vihollien1.xnb</Output> 110 <Time>201 5-12-12T14:21:17.6058041+02:00</Time>110 <Time>2016-02-20T10:03:49.4532839+02:00</Time> 111 111 </Item> 112 112 <Item> … … 117 117 <Options>None</Options> 118 118 <Output>C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\Vihollinen1Taka.xnb</Output> 119 <Time>201 5-12-12T14:21:17.6058041+02:00</Time>119 <Time>2016-02-20T10:03:49.5780839+02:00</Time> 120 120 </Item> 121 121 <Item> … … 126 126 <Options>None</Options> 127 127 <Output>C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\VihollinenOikea.xnb</Output> 128 <Time>201 5-12-12T14:21:17.6058041+02:00</Time>128 <Time>2016-02-20T10:03:49.4688839+02:00</Time> 129 129 </Item> 130 130 <Item> … … 135 135 <Options>None</Options> 136 136 <Output>C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\VihollinenVasen.xnb</Output> 137 <Time>2015-12-12T14:23:37.5157434+02:00</Time> 137 <Time>2016-02-20T10:03:49.4376839+02:00</Time> 138 </Item> 139 <Item> 140 <Source>luola.png</Source> 141 <Name>luola</Name> 142 <Importer>TextureImporter</Importer> 143 <Processor>TextureProcessor</Processor> 144 <Options>None</Options> 145 <Output>C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\luola.xnb</Output> 146 <Time>2016-02-20T12:01:18.1395839+02:00</Time> 147 </Item> 148 <Item> 149 <Source>Rpgkarjaisu.wav</Source> 150 <Name>Rpgkarjaisu</Name> 151 <Importer>WavImporter</Importer> 152 <Processor>SoundEffectProcessor</Processor> 153 <Options>None</Options> 154 <Output>C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\Rpgkarjaisu.xnb</Output> 155 <Time>2016-02-20T13:25:54.4423839+02:00</Time> 156 </Item> 157 <Item> 158 <Source>V1AnimaatioE1.png</Source> 159 <Name>V1AnimaatioE1</Name> 160 <Importer>TextureImporter</Importer> 161 <Processor>TextureProcessor</Processor> 162 <Options>None</Options> 163 <Output>C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\V1AnimaatioE1.xnb</Output> 164 <Time>2016-02-20T14:07:09.8454839+02:00</Time> 165 </Item> 166 <Item> 167 <Source>V1AnimaatioE2.png</Source> 168 <Name>V1AnimaatioE2</Name> 169 <Importer>TextureImporter</Importer> 170 <Processor>TextureProcessor</Processor> 171 <Options>None</Options> 172 <Output>C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\V1AnimaatioE2.xnb</Output> 173 <Time>2016-02-20T14:07:09.8610839+02:00</Time> 138 174 </Item> 139 175 <BuildSuccessful>true</BuildSuccessful> … … 184 220 <Assembly> 185 221 <Key>C:\Windows\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Content.Pipeline\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Content.Pipeline.dll</Key> 186 <Value>2015-09-16T 20:00:09.2376023+03:00</Value>222 <Value>2015-09-16T19:09:43.6453658+03:00</Value> 187 223 </Assembly> 188 224 </Assemblies> -
2015/27/JaakkoS/RPGpeli/RPGpeli/RPGpeli/obj/x86/Debug/RPGpeli.csproj.FileListAbsolute.txt
r7095 r7126 22 22 C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\VihollinenOikea.xnb 23 23 C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\VihollinenVasen.xnb 24 C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\luola.xnb 25 C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\Vihollien1.png 26 C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\Rpgkarjaisu.xnb 27 C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\V1AnimaatioE1.xnb 28 C:\MyTemp\JaakkoS\RPGpeli\RPGpeli\RPGpeli\bin\x86\Debug\Content\V1AnimaatioE2.xnb -
2015/27/JaakkoS/RPGpeli/RPGpeli/RPGpeli/obj/x86/Debug/cachefile-{387B9DE7-CFA5-49C1-8050-699303AA8829}-targetpath.txt
r7095 r7126 1 Content\ritari.xnb2 1 Content\Ritarioikealle.xnb 3 2 Content\pelottavaritari.xnb … … 10 9 Content\RanimaatioT2.xnb 11 10 Content\RanimaatioV.xnb 11 Content\ritari.xnb 12 12 Content\Vihollien1.xnb 13 13 Content\Vihollinen1Taka.xnb 14 14 Content\VihollinenOikea.xnb 15 15 Content\VihollinenVasen.xnb 16 Content\luola.xnb 17 Content\Rpgkarjaisu.xnb 18 Content\V1AnimaatioE1.xnb 19 Content\V1AnimaatioE2.xnb 20 Content\Vihollien1.png -
2015/27/JaakkoS/RPGpeli/RPGpeli/RPGpeliContent/RPGpeliContent.contentproj
r7095 r7126 119 119 <Importer>TextureImporter</Importer> 120 120 <Processor>TextureProcessor</Processor> 121 <CopyToOutputDirectory>Always</CopyToOutputDirectory> 121 122 </Compile> 122 123 <Compile Include="Vihollinen1Taka.png"> … … 138 139 </Compile> 139 140 </ItemGroup> 141 <ItemGroup> 142 <Compile Include="luola.png"> 143 <Name>luola</Name> 144 <Importer>TextureImporter</Importer> 145 <Processor>TextureProcessor</Processor> 146 </Compile> 147 </ItemGroup> 148 <ItemGroup> 149 <Compile Include="Rpgkarjaisu.wav"> 150 <Name>Rpgkarjaisu</Name> 151 <Importer>WavImporter</Importer> 152 <Processor>SoundEffectProcessor</Processor> 153 </Compile> 154 </ItemGroup> 155 <ItemGroup> 156 <Compile Include="V1AnimaatioE1.png"> 157 <Name>V1AnimaatioE1</Name> 158 <Importer>TextureImporter</Importer> 159 <Processor>TextureProcessor</Processor> 160 </Compile> 161 <Compile Include="V1AnimaatioE2.png"> 162 <Name>V1AnimaatioE2</Name> 163 <Importer>TextureImporter</Importer> 164 <Processor>TextureProcessor</Processor> 165 </Compile> 166 </ItemGroup> 140 167 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 141 168 <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Note: See TracChangeset
for help on using the changeset viewer.