Changeset 5292
- Timestamp:
- 2014-07-02 14:56:00 (9 years ago)
- Location:
- 2014/27/NoelV/turhakepeli
- Files:
-
- 13 added
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/27/NoelV/turhakepeli/turhakepeli/turhakepeli/obj/x86/Debug/ContentPipeline-{8C608BBB-CC9B-467B-9EA1-3FA736E42C66}.xml
r5281 r5292 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-02T1 0:48:39.6666897+03:00</Time>20 <Time>2014-07-02T12:54:25.2717311+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-02T 09:33:20.7216018+03:00</Time>38 <Time>2014-07-02T14:03:34.3771133+03:00</Time> 39 39 </Item> 40 40 <Item> … … 90 90 <Options>None</Options> 91 91 <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\Sivu.xnb</Output> 92 <Time>2014-07-02T1 0:39:50.0923361+03:00</Time>92 <Time>2014-07-02T13:13:15.611386+03:00</Time> 93 93 </Item> 94 94 <Item> … … 100 100 <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\oikeaYla.xnb</Output> 101 101 <Time>2014-07-02T10:54:59.9365596+03:00</Time> 102 </Item> 103 <Item> 104 <Source>SivuOikea.png</Source> 105 <Name>SivuOikea</Name> 106 <Importer>TextureImporter</Importer> 107 <Processor>TextureProcessor</Processor> 108 <Options>None</Options> 109 <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\SivuOikea.xnb</Output> 110 <Time>2014-07-02T12:17:03.6855365+03:00</Time> 111 </Item> 112 <Item> 113 <Source>oikeaAla.png</Source> 114 <Name>oikeaAla</Name> 115 <Importer>TextureImporter</Importer> 116 <Processor>TextureProcessor</Processor> 117 <Options>None</Options> 118 <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\oikeaAla.xnb</Output> 119 <Time>2014-07-02T12:37:49.5261446+03:00</Time> 120 </Item> 121 <Item> 122 <Source>vasenAla.png</Source> 123 <Name>vasenAla</Name> 124 <Importer>TextureImporter</Importer> 125 <Processor>TextureProcessor</Processor> 126 <Options>None</Options> 127 <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\vasenAla.xnb</Output> 128 <Time>2014-07-02T13:01:53.3358031+03:00</Time> 129 </Item> 130 <Item> 131 <Source>vasenYla.png</Source> 132 <Name>vasenYla</Name> 133 <Importer>TextureImporter</Importer> 134 <Processor>TextureProcessor</Processor> 135 <Options>None</Options> 136 <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\vasenYla.xnb</Output> 137 <Time>2014-07-02T13:20:14.4530283+03:00</Time> 138 </Item> 139 <Item> 140 <Source>pelaajaHyokkaa.png</Source> 141 <Name>pelaajaHyokkaa</Name> 142 <Importer>TextureImporter</Importer> 143 <Processor>TextureProcessor</Processor> 144 <Options>None</Options> 145 <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\pelaajaHyokkaa.xnb</Output> 146 <Time>2014-07-02T13:55:50.5427327+03:00</Time> 102 147 </Item> 103 148 <BuildSuccessful>true</BuildSuccessful> -
2014/27/NoelV/turhakepeli/turhakepeli/turhakepeli/obj/x86/Debug/cachefile-{8C608BBB-CC9B-467B-9EA1-3FA736E42C66}-targetpath.txt
r5281 r5292 10 10 Content\Sivu.xnb 11 11 Content\oikeaYla.xnb 12 Content\SivuOikea.xnb 13 Content\oikeaAla.xnb 14 Content\vasenAla.xnb 15 Content\vasenYla.xnb 16 Content\pelaajaHyokkaa.xnb -
2014/27/NoelV/turhakepeli/turhakepeli/turhakepeli/obj/x86/Debug/turhakepeli.csproj.FileListAbsolute.txt
r5281 r5292 34 34 C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\Sivu.xnb 35 35 C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\oikeaYla.xnb 36 C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\SivuOikea.xnb 37 C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\oikeaAla.xnb 38 C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\vasenAla.xnb 39 C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\vasenYla.xnb 40 C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\pelaajaHyokkaa.xnb -
2014/27/NoelV/turhakepeli/turhakepeli/turhakepeli/turhakepeli.cs
r5281 r5292 16 16 Image sivuseina = LoadImage("sivu"); 17 17 Image oikeayla = LoadImage("oikeaYla"); 18 private Image[] hahmonLiike = LoadImages("hahmo01", "hahmo02"); 18 Image oikeaSeina = LoadImage("sivuOikea"); 19 Image OikeaAla = LoadImage("oikeaAla"); 20 Image VasenAla = LoadImage("vasenAla"); 21 Image VasenYla = LoadImage("vasenYla"); 22 Image hahmoHyokkaa = LoadImage("pelaajaHyokkaa"); 23 24 private Image[] hahmonLiikeAlas = LoadImages("hahmo01", "hahmo02"); 25 private Image[] hahmonLiikeYlos = LoadImages("hahmo01", "hahmo02"); 19 26 Image taustaKuva = LoadImage("maa"); 20 27 … … 51 58 Camera.FollowedObject = pelaaja; 52 59 53 //PhysicsObject turhake = new PhysicsObject(10, 10); 54 // Add(turhake); 60 PhysicsObject turhake = new PhysicsObject(10, 10); 61 turhake.Color = Color.Gray; 62 Add(turhake); 55 63 56 64 … … 64 72 65 73 66 Keyboard.Listen(Key.S, ButtonState.Down, AnimaatioAlas, null); 67 Keyboard.Listen(Key.S, ButtonState.Up, AnimaatioAlasLopetus, null); 68 69 Keyboard.Listen(Key.W, ButtonState.Down, Liiku, null, new Vector(0, 1000)); 74 Keyboard.Listen(Key.S, ButtonState.Down, HahmonAnimaatio, null, hahmonLiikeAlas); 75 Keyboard.Listen(Key.S, ButtonState.Released, AnimaatioLopetus, null); 76 77 Keyboard.Listen(Key.W, ButtonState.Down, HahmonAnimaatio, null, hahmonLiikeYlos); 78 Keyboard.Listen(Key.W, ButtonState.Released, AnimaatioLopetus, null); 79 80 Keyboard.Listen(Key.W, ButtonState.Down, Liiku, null, new Vector(0, 900)); 70 81 Keyboard.Listen(Key.W, ButtonState.Released, Liiku, null, Vector.Zero); 71 Keyboard.Listen(Key.S, ButtonState.Down, Liiku, null, new Vector(0, - 1000));82 Keyboard.Listen(Key.S, ButtonState.Down, Liiku, null, new Vector(0, -900)); 72 83 Keyboard.Listen(Key.S, ButtonState.Released, Liiku, null, Vector.Zero); 73 Keyboard.Listen(Key.D, ButtonState.Down, Liiku, null, new Vector( 1000, 0));84 Keyboard.Listen(Key.D, ButtonState.Down, Liiku, null, new Vector(900, 0)); 74 85 Keyboard.Listen(Key.D, ButtonState.Released, Liiku, null, Vector.Zero); 75 Keyboard.Listen(Key.A, ButtonState.Down, Liiku, null, new Vector(- 1000, 0));86 Keyboard.Listen(Key.A, ButtonState.Down, Liiku, null, new Vector(-900, 0)); 76 87 Keyboard.Listen(Key.A, ButtonState.Released, Liiku, null, Vector.Zero); 77 88 Keyboard.Listen(Key.Space, ButtonState.Pressed, Hyokkaa, null); … … 127 138 ruudut.SetTileMethod(Color.Red, LuoAlaseina); 128 139 ruudut.SetTileMethod(Color.White, LuoOikeaYla); 140 ruudut.SetTileMethod(Color.Yellow, LuoOikea); 141 ruudut.SetTileMethod(new Color(138, 138, 138), LuoOikeaAla); 142 ruudut.SetTileMethod(new Color(155, 0, 255), LuoVasenAla); 143 ruudut.SetTileMethod(new Color(255, 145, 0), LuoVasenYla); 144 129 145 130 146 //3. Execute luo kentän … … 151 167 152 168 } 169 void LuoVasenAla(Vector paikka, double leveys, double korkeus) 170 { 171 PhysicsObject vasenAla = PhysicsObject.CreateStaticObject(leveys, korkeus); 172 vasenAla.Position = paikka; 173 vasenAla.CollisionIgnoreGroup = 1; 174 vasenAla.Image = VasenAla; 175 Add(vasenAla); 176 177 178 } 179 180 void LuoVasenYla(Vector paikka, double leveys, double korkeus) 181 { 182 PhysicsObject vasenYla = PhysicsObject.CreateStaticObject(leveys, korkeus); 183 vasenYla.Position = paikka; 184 vasenYla.CollisionIgnoreGroup = 1; 185 vasenYla.Image = VasenYla; 186 Add(vasenYla); 187 188 189 } 190 191 192 void LuoOikeaAla(Vector paikka, double leveys, double korkeus) 193 { 194 PhysicsObject oikeaAla = PhysicsObject.CreateStaticObject(leveys, korkeus); 195 oikeaAla.Position = paikka; 196 oikeaAla.CollisionIgnoreGroup = 1; 197 oikeaAla.Image = OikeaAla; 198 Add(oikeaAla); 199 200 201 } 202 203 void LuoOikea(Vector paikka, double leveys, double korkeus) 204 { 205 PhysicsObject oikea = PhysicsObject.CreateStaticObject(leveys, korkeus); 206 oikea.Position = paikka; 207 oikea.CollisionIgnoreGroup = 1; 208 oikea.Image = oikeaSeina; 209 Add(oikea); 210 211 212 } 213 153 214 154 215 … … 197 258 //vihollinen.MoveTo(new Vector(RandomGen.NextDouble(Level.Left, Level.Right), Level.Bottom - 250), 500); //{ vihollisLaskuri.Value++; }); 198 259 FollowerBrain seuraajanAivot = new FollowerBrain(pelaaja); 199 seuraajanAivot.Speed = 50 0.0;260 seuraajanAivot.Speed = 50.0; 200 261 seuraajanAivot.DistanceClose = 200; 201 262 seuraajanAivot.TargetClose += delegate … … 211 272 void Hyokkaa() 212 273 { 274 213 275 PhysicsObject hyokkaus = new PhysicsObject(30, 30); 214 276 hyokkaus.Position = pelaaja.Position; 215 277 hyokkaus.Image = hyokkauksenKuva; 278 hyokkaus.CollisionIgnoreGroup = 1; 216 279 Add(hyokkaus); 217 AxleJoint liitos = new AxleJoint(pelaaja, hyokkaus); 280 hyokkaus.CanRotate = false; 281 AxleJoint liitos = new AxleJoint(pelaaja, hyokkaus); 218 282 Add(liitos); 219 220 221 Timer.SingleShot(0.5, delegate { hyokkaus.Destroy(); }); 283 pelaaja.Image = hahmoHyokkaa; 284 //pelaaja. 285 286 Timer.SingleShot(0.5, delegate { 287 hyokkaus.Destroy(); 288 pelaaja.Image = hahmo; 289 //if (pelaaja.Animation != null) pelaaja.Animation.Start(); 290 }); 222 291 //AddCollisionHandler(hyokkaus, "vihu", ); 223 292 224 293 } 225 294 226 void AnimaatioAlas() 295 296 void HahmonAnimaatio(Image[] hahmonLiike) 227 297 { 228 298 if (pelaaja.Velocity != Vector.Zero) return; … … 231 301 pelaaja.Animation.Start(); 232 302 } 233 void AnimaatioAlasLopetus() 303 304 305 void AnimaatioLopetus() 234 306 { 235 307 pelaaja.Animation.Stop(); -
2014/27/NoelV/turhakepeli/turhakepeli/turhakepeli/turhakepeli.csproj.Debug.cachefile
r5281 r5292 10 10 Content\Sivu.xnb 11 11 Content\oikeaYla.xnb 12 Content\SivuOikea.xnb 13 Content\oikeaAla.xnb 14 Content\vasenAla.xnb 15 Content\vasenYla.xnb 16 Content\pelaajaHyokkaa.xnb -
2014/27/NoelV/turhakepeli/turhakepeli/turhakepeliContent/turhakepeliContent.contentproj
r5281 r5292 122 122 </Compile> 123 123 </ItemGroup> 124 <ItemGroup> 125 <Compile Include="SivuOikea.png"> 126 <Name>SivuOikea</Name> 127 <Importer>TextureImporter</Importer> 128 <Processor>TextureProcessor</Processor> 129 </Compile> 130 </ItemGroup> 131 <ItemGroup> 132 <Compile Include="oikeaAla.png"> 133 <Name>oikeaAla</Name> 134 <Importer>TextureImporter</Importer> 135 <Processor>TextureProcessor</Processor> 136 </Compile> 137 </ItemGroup> 138 <ItemGroup> 139 <Compile Include="vasenAla.png"> 140 <Name>vasenAla</Name> 141 <Importer>TextureImporter</Importer> 142 <Processor>TextureProcessor</Processor> 143 </Compile> 144 </ItemGroup> 145 <ItemGroup> 146 <Compile Include="vasenYla.png"> 147 <Name>vasenYla</Name> 148 <Importer>TextureImporter</Importer> 149 <Processor>TextureProcessor</Processor> 150 </Compile> 151 </ItemGroup> 152 <ItemGroup> 153 <Compile Include="pelaajaHyokkaa.png"> 154 <Name>pelaajaHyokkaa</Name> 155 <Importer>TextureImporter</Importer> 156 <Processor>TextureProcessor</Processor> 157 </Compile> 158 </ItemGroup> 124 159 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 125 160 <!-- 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.