Changeset 5281 for 2014/27/NoelV/turhakepeli
- Timestamp:
- 2014-07-02 11:00:11 (9 years ago)
- Location:
- 2014/27/NoelV/turhakepeli
- Files:
-
- 7 added
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/27/NoelV/turhakepeli/turhakepeli/turhakepeli/bin/x86/Debug/Jypeli.xml
r5253 r5281 5076 5076 </summary> 5077 5077 </member> 5078 <member name="P:Jypeli.Animation.IsPlaying">5079 <summary>5080 Onko animaatio kÀynnissÀ.5081 </summary>5082 </member>5083 5078 <member name="P:Jypeli.Animation.FPS"> 5084 5079 <summary> -
2014/27/NoelV/turhakepeli/turhakepeli/turhakepeli/obj/x86/Debug/ContentPipeline-{8C608BBB-CC9B-467B-9EA1-3FA736E42C66}.xml
r5247 r5281 9 9 <Options>None</Options> 10 10 <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\pelaaja.xnb</Output> 11 <Time>2014-07-0 1T13:03:23.7166813+03:00</Time>11 <Time>2014-07-02T09:33:20.7060017+03:00</Time> 12 12 </Item> 13 13 <Item> … … 18 18 <Options>None</Options> 19 19 <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\kentta.xnb</Output> 20 <Time>2014-07-0 1T13:41:55.4688935+03:00</Time>20 <Time>2014-07-02T10:48:39.6666897+03:00</Time> 21 21 </Item> 22 22 <Item> … … 36 36 <Options>None</Options> 37 37 <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\hyokkaus.xnb</Output> 38 <Time>2014-07-01T14:53:10.4065277+03:00</Time> 38 <Time>2014-07-02T09:33:20.7216018+03:00</Time> 39 </Item> 40 <Item> 41 <Source>hahmo01.png</Source> 42 <Name>hahmo01</Name> 43 <Importer>TextureImporter</Importer> 44 <Processor>TextureProcessor</Processor> 45 <Options>None</Options> 46 <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\hahmo01.xnb</Output> 47 <Time>2014-07-02T09:33:20.7216018+03:00</Time> 48 </Item> 49 <Item> 50 <Source>hahmo02.png</Source> 51 <Name>hahmo02</Name> 52 <Importer>TextureImporter</Importer> 53 <Processor>TextureProcessor</Processor> 54 <Options>None</Options> 55 <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\hahmo02.xnb</Output> 56 <Time>2014-07-02T09:33:20.7216018+03:00</Time> 57 </Item> 58 <Item> 59 <Source>maa.png</Source> 60 <Name>maa</Name> 61 <Importer>TextureImporter</Importer> 62 <Processor>TextureProcessor</Processor> 63 <Options>None</Options> 64 <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\maa.xnb</Output> 65 <Time>2014-07-02T09:33:20.7372019+03:00</Time> 66 </Item> 67 <Item> 68 <Source>hahmo.anim.txt</Source> 69 <Name>hahmo.anim</Name> 70 <Importer>TextFileImporter</Importer> 71 <Processor>TextFileContentProcessor</Processor> 72 <Options>None</Options> 73 <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\hahmo.anim.xnb</Output> 74 <Time>2014-07-02T09:33:20.8932029+03:00</Time> 75 </Item> 76 <Item> 77 <Source>ala.png</Source> 78 <Name>ala</Name> 79 <Importer>TextureImporter</Importer> 80 <Processor>TextureProcessor</Processor> 81 <Options>None</Options> 82 <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\ala.xnb</Output> 83 <Time>2014-07-02T10:41:08.3736379+03:00</Time> 84 </Item> 85 <Item> 86 <Source>Sivu.png</Source> 87 <Name>Sivu</Name> 88 <Importer>TextureImporter</Importer> 89 <Processor>TextureProcessor</Processor> 90 <Options>None</Options> 91 <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\Sivu.xnb</Output> 92 <Time>2014-07-02T10:39:50.0923361+03:00</Time> 93 </Item> 94 <Item> 95 <Source>oikeaYla.png</Source> 96 <Name>oikeaYla</Name> 97 <Importer>TextureImporter</Importer> 98 <Processor>TextureProcessor</Processor> 99 <Options>None</Options> 100 <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\oikeaYla.xnb</Output> 101 <Time>2014-07-02T10:54:59.9365596+03:00</Time> 39 102 </Item> 40 103 <BuildSuccessful>true</BuildSuccessful> -
2014/27/NoelV/turhakepeli/turhakepeli/turhakepeli/obj/x86/Debug/cachefile-{8C608BBB-CC9B-467B-9EA1-3FA736E42C66}-targetpath.txt
r5253 r5281 3 3 Content\valikko.xnb 4 4 Content\hyokkaus.xnb 5 Content\hahmo.anim.xnb6 5 Content\hahmo01.xnb 7 6 Content\hahmo02.xnb 8 7 Content\maa.xnb 8 Content\hahmo.anim.xnb 9 Content\ala.xnb 10 Content\Sivu.xnb 11 Content\oikeaYla.xnb -
2014/27/NoelV/turhakepeli/turhakepeli/turhakepeli/obj/x86/Debug/turhakepeli.csproj.FileListAbsolute.txt
r5253 r5281 27 27 C:\Users\Poikaset\Desktop\peli\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\hahmo02.xnb 28 28 C:\Users\Poikaset\Desktop\peli\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\maa.xnb 29 C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\hahmo01.xnb 30 C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\hahmo02.xnb 31 C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\maa.xnb 32 C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\hahmo.anim.xnb 33 C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\ala.xnb 34 C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\Sivu.xnb 35 C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\oikeaYla.xnb -
2014/27/NoelV/turhakepeli/turhakepeli/turhakepeli/turhakepeli.cs
r5253 r5281 13 13 Image valikonKuva = LoadImage("valikko"); 14 14 Image hyokkauksenKuva = LoadImage("hyokkaus"); 15 Image alaseina = LoadImage("ala"); 16 Image sivuseina = LoadImage("sivu"); 17 Image oikeayla = LoadImage("oikeaYla"); 15 18 private Image[] hahmonLiike = LoadImages("hahmo01", "hahmo02"); 16 19 Image taustaKuva = LoadImage("maa"); … … 61 64 62 65 63 Keyboard.Listen(Key.S, ButtonState.Down, Animaatio, null); 66 Keyboard.Listen(Key.S, ButtonState.Down, AnimaatioAlas, null); 67 Keyboard.Listen(Key.S, ButtonState.Up, AnimaatioAlasLopetus, null); 64 68 65 69 Keyboard.Listen(Key.W, ButtonState.Down, Liiku, null, new Vector(0, 1000)); … … 120 124 //2. Kerrotaan mitä aliohjelmaa kutsutaan, kun tietyn värinen pikseli tulee vastaan kuvatiedostossa. 121 125 ruudut.SetTileMethod(Color.Blue, LuoPelaaja); 122 ruudut.SetTileMethod(Color.Black, LuoSeina); 123 ruudut.SetTileMethod(Color.Red, LuoNurkka); 126 ruudut.SetTileMethod(Color.Black, LuoSivuseina); 127 ruudut.SetTileMethod(Color.Red, LuoAlaseina); 128 ruudut.SetTileMethod(Color.White, LuoOikeaYla); 124 129 125 130 //3. Execute luo kentän … … 136 141 137 142 } 138 void LuoNurkka(Vector paikka, double leveys, double korkeus) 139 { 140 PhysicsObject nurkka = PhysicsObject.CreateStaticObject(leveys, korkeus); 141 nurkka.Position = paikka; 142 nurkka.CollisionIgnoreGroup = 1; 143 Add(nurkka); 143 void LuoAlaseina(Vector paikka, double leveys, double korkeus) 144 { 145 PhysicsObject ala = PhysicsObject.CreateStaticObject(leveys, korkeus); 146 ala.Position = paikka; 147 ala.CollisionIgnoreGroup = 1; 148 ala.Image = alaseina; 149 Add(ala); 144 150 145 151 … … 160 166 161 167 162 void LuoS eina(Vector paikka, double leveys, double korkeus)168 void LuoSivuseina(Vector paikka, double leveys, double korkeus) 163 169 { 164 170 PhysicsObject taso = PhysicsObject.CreateStaticObject(leveys, korkeus); 165 171 taso.Position = paikka; 166 172 taso.CollisionIgnoreGroup = 1; 173 taso.Image = sivuseina; 167 174 Add(taso); 175 } 176 void LuoOikeaYla(Vector paikka, double leveys, double korkeus) 177 { 178 PhysicsObject ala = PhysicsObject.CreateStaticObject(leveys, korkeus); 179 ala.Position = paikka; 180 ala.CollisionIgnoreGroup = 1; 181 ala.Image = oikeayla; 182 Add(ala); 183 168 184 } 169 185 … … 208 224 } 209 225 210 void Animaatio ()211 { 212 226 void AnimaatioAlas() 227 { 228 if (pelaaja.Velocity != Vector.Zero) return; 213 229 pelaaja.Animation = new Animation(hahmonLiike); 214 230 pelaaja.Animation.FPS = 5; 215 231 pelaaja.Animation.Start(); 216 232 } 233 void AnimaatioAlasLopetus() 234 { 235 pelaaja.Animation.Stop(); 236 pelaaja.Image = hahmo; 237 } 217 238 218 239 -
2014/27/NoelV/turhakepeli/turhakepeli/turhakepeli/turhakepeli.csproj.Debug.cachefile
r5253 r5281 3 3 Content\valikko.xnb 4 4 Content\hyokkaus.xnb 5 Content\hahmo.anim.xnb6 5 Content\hahmo01.xnb 7 6 Content\hahmo02.xnb 8 7 Content\maa.xnb 8 Content\hahmo.anim.xnb 9 Content\ala.xnb 10 Content\Sivu.xnb 11 Content\oikeaYla.xnb -
2014/27/NoelV/turhakepeli/turhakepeli/turhakepeliContent/turhakepeliContent.contentproj
r5253 r5281 101 101 </Compile> 102 102 </ItemGroup> 103 <ItemGroup> 104 <Compile Include="ala.png"> 105 <Name>ala</Name> 106 <Importer>TextureImporter</Importer> 107 <Processor>TextureProcessor</Processor> 108 </Compile> 109 </ItemGroup> 110 <ItemGroup> 111 <Compile Include="Sivu.png"> 112 <Name>Sivu</Name> 113 <Importer>TextureImporter</Importer> 114 <Processor>TextureProcessor</Processor> 115 </Compile> 116 </ItemGroup> 117 <ItemGroup> 118 <Compile Include="oikeaYla.png"> 119 <Name>oikeaYla</Name> 120 <Importer>TextureImporter</Importer> 121 <Processor>TextureProcessor</Processor> 122 </Compile> 123 </ItemGroup> 103 124 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 104 125 <!-- 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.