Changeset 6922
- Timestamp:
- 2015-07-22 13:39:24 (8 years ago)
- Location:
- 2015/30/ArttuH/TasoHyppely
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/30/ArttuH/TasoHyppely/TasoHyppely/TasoHyppely/TasoHyppely.cs
r6912 r6922 12 12 const double hyppyNopeus = 750; 13 13 const int RUUDUN_KOKO = 40; 14 double ammusnopeus2 = 1000; 14 15 15 16 PlatformCharacter pelaaja1; … … 33 34 Gravity = new Vector(0, -1500); 34 35 Paavalikko(); 35 //LuoKentta();36 //LisaaOhjaimet();37 38 //Camera.Follow(pelaaja1,pelaaja2);39 //Camera.ZoomFactor = 1.2;40 //Camera.StayInLevel = true;41 36 } 42 37 … … 49 44 kentta.SetTileMethod('X', Piikki); 50 45 kentta.SetTileMethod('A', Ammuspaketti); 46 kentta.SetTileMethod('P', LisääPahis); 51 47 if (pelaajienMaara == 2) 52 48 { … … 245 241 ammus.Size *= 0.8; 246 242 ammus.Image = luoti; 243 luotilaskuri2.Value--; 244 ammus.Velocity = pelaaja2.Weapon.Angle.GetVector().Normalize() * ammusnopeus2; 247 245 ControllerTwo.Vibrate(100.16, 100.16, 0.16, 0.16, 0.1); 248 ammus.MaximumLifetime = TimeSpan.FromSeconds( 0.6);246 ammus.MaximumLifetime = TimeSpan.FromSeconds(1.0); 249 247 } 250 248 } … … 303 301 luotilaskuri2.Value = 100; 304 302 } 305 303 304 void LisääPahis(Vector paikka, double leveys, double korkeus) 305 { 306 PlatformCharacter pahis = new PlatformCharacter(leveys, korkeus); 307 pahis.Position = paikka; 308 } 309 306 310 }
Note: See TracChangeset
for help on using the changeset viewer.