Changeset 577
- Timestamp:
- 2010-06-08 20:56:03 (13 years ago)
- Location:
- 2010/23/sijoseha
- Files:
-
- 76 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
2010/23/sijoseha/Testipeli/PartikkeliTesti.csproj
r568 r577 69 69 <Private>False</Private> 70 70 </Reference> 71 <Reference Include="System.Data" /> 71 72 <Reference Include="System.Xml"> 72 73 <Private>False</Private> … … 82 83 </ItemGroup> 83 84 <ItemGroup> 85 <Compile Include="Particle.cs" /> 84 86 <Compile Include="Properties\AssemblyInfo.cs" /> 85 87 <Compile Include="Ohjelma.cs" /> -
2010/23/sijoseha/Testipeli/Peli.cs
r568 r577 23 23 LuoOhjaimet(); 24 24 25 25 26 particles = new List<PhysicsObject>(); 26 27 removable = new List<int>(); 28 29 30 /*for (int i = 0; i < 200; i++) 31 { 32 Particle par = new Particle(100, 1.001, 100.001); 33 par.Position = new Vector(RandomGen.NextInt(800) - 400, RandomGen.NextInt(800) - 400); 34 35 Add(par); 36 par.Hit(new Vector(0, 2000)); 37 }*/ 38 39 LuoLiekki(100, 0, -400); 40 41 42 27 43 28 44 pallo = new PhysicsObject(40, 40); … … 42 58 PhysicsObject vasenreuna = Level.CreateLeftBorder(); 43 59 PhysicsObject oikeareuna = Level.CreateRightBorder(); 60 44 61 Camera.ZoomToLevel(); 45 62 … … 69 86 foreach (int r in removable) 70 87 { 88 particles[r].Destroy(); 89 particles.RemoveAt(r); 71 90 72 particles.RemoveAt(r);73 particles[r].Destroy();74 91 } 75 92 removable.Clear(); … … 118 135 void Tuhoa(PhysicsObject tuhottava) 119 136 { 120 LuoMyrsky(tuhottava);137 //LuoMyrsky(tuhottava); 121 138 tuhottava.Destroy(); 122 139 } … … 132 149 } 133 150 } 151 134 152 } 135 153 }
Note: See TracChangeset
for help on using the changeset viewer.