Changeset 5258
- Timestamp:
- 2014-07-01 23:18:34 (9 years ago)
- Location:
- 2014/27/AleksanteriV/Protokolla236
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/27/AleksanteriV/Protokolla236/Protokolla236/Protokolla236/MikonPhysicsObject.cs
r5257 r5258 39 39 childBox.Color = this.Color; 40 40 childBox.Tag = this.Tag; 41 childBox.Image = this.Image; 41 int w=this.Image.Width/pieceCountX,h=this.Image.Height/pieceCountY; 42 childBox.Image = this.Image.Area( 43 w*x, 44 h*(pieceCountY-y-1), 45 w*(x+1), 46 h*((pieceCountY-y-1)+1) 47 ); 42 48 childBox.AbsoluteAngle = this.AbsoluteAngle; 43 49 childBox.AngularVelocity = this.AngularVelocity; … … 51 57 //childBox.Position += offset; 52 58 53 if (RandomGen.NextDouble(0, 1) < 0.2) { 54 childBox.Break(method,pieceCountX,pieceCountY); 59 if (RandomGen.NextDouble(0, 1) < 0.2) 60 { 61 childBox.Break(method, pieceCountX, pieceCountY); 55 62 } 56 63 -
2014/27/AleksanteriV/Protokolla236/Protokolla236/Protokolla236/Protokolla236.cs
r5217 r5258 401 401 pelaajanAse.InfiniteAmmo = true; 402 402 pelaajanAse.Power.DefaultValue = 200; 403 pelaajanAse.FireRate = 1 0000;403 pelaajanAse.FireRate = 199; 404 404 pelaajanAse.ProjectileCollision = AmmusOsui; 405 405 pelaaja.Add(pelaajanAse);
Note: See TracChangeset
for help on using the changeset viewer.