- Timestamp:
- 2014-07-23 14:27:44 (9 years ago)
- Location:
- 2014/30/IiroM/Entiiä
- Files:
-
- 9 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/30/IiroM/Entiiä/Entiiä/Entiiä/Entiiä.cs
r5537 r5586 13 13 Image tyyppiMaastoLevel = LoadImage("tyyppiMaastoLevel"); 14 14 Image BCS = LoadImage("BlockCrackedStone"); 15 AssaultRifle tyypinAse; 16 Image AssaultRifle = LoadImage("TyypinAse"); 17 Image Multaa = LoadImage("Mutaaa"); 15 18 private Animation tyyppiKavely; 16 19 … … 32 35 Gravity = new Vector(0, -200); 33 36 tyyppi.Mass = 63.3; 34 tyyppi.CanRotate = false;37 tyyppi.CanRotate = true; 35 38 tyyppiKavely = LoadAnimation("tyyppiAnim"); 36 39 tyyppi.Animation = new Animation(tyyppiKavely); 37 40 tyyppi.Animation.Start(); 41 tyyppi.IgnoresExplosions = false; 38 42 Camera.Follow(tyyppi); 39 43 Add(tyyppi); 44 45 AddCollisionHandler(tyyppi, "Blokki", CollisionHandler.ExplodeBoth(75, false)); 46 47 tyypinAse = new AssaultRifle(115, 45); 48 tyypinAse.Image = AssaultRifle; 49 tyypinAse.AmmoIgnoresExplosions = false; 50 tyypinAse.FireRate = 500.0; 51 tyypinAse.InfiniteAmmo = true; 52 tyypinAse.Angle += Angle.FromDegrees(0); 53 tyypinAse.Ammo.Value = 10000; 54 tyypinAse.ProjectileCollision = AmmusOsui; 55 tyypinAse.AmmoIgnoresGravity = true; 56 //tyypinAse.ProjectileCollision = CollisionHandler.ExplodeObject; 57 58 59 tyyppi.Add(tyypinAse); 60 61 40 62 41 63 //Add(tyyppi); … … 43 65 //platform 44 66 // 45 PhysicsObject tyyppiMaastoLevelu = PhysicsObject.CreateStaticObject(2500.0, 75.0);67 PhysicsObject tyyppiMaastoLevelu = PhysicsObject.CreateStaticObject(2500.0, 6.0); 46 68 tyyppiMaastoLevelu.Color = Color.Azure; 47 69 tyyppiMaastoLevelu.Image = tyyppiMaastoLevel; 48 tyyppiMaastoLevelu.Y = Level.Bottom - 110 ;70 tyyppiMaastoLevelu.Y = Level.Bottom - 1100; 49 71 tyyppiMaastoLevelu.MaxVelocity = 0; 72 PhysicsObject Multa = PhysicsObject.CreateStaticObject(2500.0, 800.0); 73 Multa.Color = Color.Azure; 74 Multa.Image = tyyppiMaastoLevel; 75 Multa.Y = Level.Bottom - 1105.89; 76 Multa.MaxVelocity = 0; 50 77 // 51 78 //Block(s) 52 79 // 53 PhysicsObject BC = new PhysicsObject( 32.0, 32.0);80 PhysicsObject BC = new PhysicsObject(75.0, 75.0); 54 81 BC.Color = Color.Gray; 55 82 BC.Image = BCS; 56 83 BC.Y = 1; 57 84 BC.X = 0; 85 BC.Tag ="Blokki"; 58 86 BC.MaxVelocity = 100; 59 87 Add(BC); 60 PhysicsObject BC2 = new PhysicsObject( 32.0, 32.0);88 PhysicsObject BC2 = new PhysicsObject(75.0, 75.0); 61 89 BC2.Color = Color.Gray; 62 90 BC2.Image = BCS; 63 91 BC2.Y = 1; 64 92 BC2.X = -321; 93 BC2.Tag ="Blokki"; 65 94 BC2.MaxVelocity = 100; 66 95 Add(BC2); 67 PhysicsObject BC3 = new PhysicsObject( 32.0, 32.0);96 PhysicsObject BC3 = new PhysicsObject(75.0, 75.0); 68 97 BC3.Color = Color.Gray; 69 98 BC3.Image = BCS; 70 99 BC3.Y = 1; 71 100 BC3.X = 321; 101 BC3.Tag ="Blokki"; 72 102 BC3.MaxVelocity = 100; 73 103 Add(BC3); 74 PhysicsObject BC4 = new PhysicsObject( 32.0, 32.0);104 PhysicsObject BC4 = new PhysicsObject(75.0, 75.0); 75 105 BC4.Color = Color.Gray; 76 106 BC4.Image = BCS; 77 107 BC4.Y = 1; 78 108 BC4.X = 642; 109 BC4.Tag ="Blokki"; 79 110 BC4.MaxVelocity = 100; 80 111 Add(BC4); 81 PhysicsObject BC5 = new PhysicsObject( 32.0, 32.0);112 PhysicsObject BC5 = new PhysicsObject(75.0, 75.0); 82 113 BC5.Color = Color.Gray; 83 114 BC5.Image = BCS; 84 115 BC5.Y = 1; 85 116 BC5.X = -642; 117 BC5.Tag ="Blokki"; 86 118 BC5.MaxVelocity = 100; 87 119 Add(BC5); 88 PhysicsObject BC6 = new PhysicsObject( 32.0, 32.0);120 PhysicsObject BC6 = new PhysicsObject(75.0, 75.0); 89 121 BC6.Color = Color.Gray; 90 122 BC6.Image = BCS; 91 123 BC6.Y = 1000; 92 124 BC6.X = 0; 125 BC6.Tag ="Blokki"; 93 126 BC6.MaxVelocity = 100; 94 Add(BC6, 1); 95 Add(BC6, 2); 96 Add(BC6, 3); 97 Add(BC6, -1); 98 Add(BC6, -2); 99 Add(BC6, -3); 127 100 128 Add(BC6); 101 PhysicsObject BCwall1 = PhysicsObject.CreateStaticObject(320.0, 3200.0);129 PhysicsObject BCwall1 = PhysicsObject.CreateStaticObject(320.0, 2000.0); 102 130 BCwall1.Color = Color.Gray; 103 131 BCwall1.Image = BCS; … … 106 134 BCwall1.MaxVelocity = 0; 107 135 Add(BCwall1, 1); 108 PhysicsObject BCwall2 = PhysicsObject.CreateStaticObject(320.0, 3200.0);136 PhysicsObject BCwall2 = PhysicsObject.CreateStaticObject(320.0, 2000.0); 109 137 BCwall2.Color = Color.Gray; 110 138 BCwall2.Image = BCS; … … 134 162 Keyboard.Listen(Key.S, ButtonState.Released, tyyppiNopeus, null, tyyppi, new Vector(0, 0)); 135 163 Keyboard.Listen(Key.D, ButtonState.Released, tyyppiNopeus, null, tyyppi, new Vector(0, 0)); 164 Keyboard.Listen(Key.G, ButtonState.Down, AmmuAseella, "Ammu", tyypinAse); 165 136 166 137 167 Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); … … 141 171 tyyppi.Velocity = nopeus; 142 172 } 173 void AmmusOsui(PhysicsObject ammus, PhysicsObject kohde) 174 { 175 ammus.Destroy(); 176 177 178 } 179 void AmmuAseella(AssaultRifle ase) 180 { 181 PhysicsObject ammus = ase.Shoot(); 182 183 if (ammus != null) 184 { 185 186 } 187 } 143 188 } -
2014/30/IiroM/Entiiä/Entiiä/Entiiä/Entiiä.csproj.Debug.cachefile
r5537 r5586 6 6 Content\tyyppiAnim\tyyppi2_0.xnb 7 7 Content\BlockCrackedStone.xnb 8 Content\TyypinAse.xnb 9 Content\wall.xnb 10 Content\Mutaaa.xnb -
2014/30/IiroM/Entiiä/Entiiä/Entiiä/obj/x86/Debug/ContentPipeline-{DF3A4280-B84B-4A52-8874-FAF60FC12527}.xml
r5537 r5586 18 18 <Options>None</Options> 19 19 <Output>C:\MyTemp\IiiroM\Entiiä\Entiiä\Entiiä\bin\x86\Debug\Content\tyyppiMaastoLevel.xnb</Output> 20 <Time>2014-07-2 1T12:20:09.886392+03:00</Time>20 <Time>2014-07-23T13:01:54.1075934+03:00</Time> 21 21 </Item> 22 22 <Item> … … 64 64 <Output>C:\MyTemp\IiiroM\Entiiä\Entiiä\Entiiä\bin\x86\Debug\Content\BlockCrackedStone.xnb</Output> 65 65 <Time>2014-07-22T12:58:24.0053515+03:00</Time> 66 </Item> 67 <Item> 68 <Source>TyypinAse.png</Source> 69 <Name>TyypinAse</Name> 70 <Importer>TextureImporter</Importer> 71 <Processor>TextureProcessor</Processor> 72 <Options>None</Options> 73 <Output>C:\MyTemp\IiiroM\Entiiä\Entiiä\Entiiä\bin\x86\Debug\Content\TyypinAse.xnb</Output> 74 <Time>2014-07-23T12:25:52.3038797+03:00</Time> 75 </Item> 76 <Item> 77 <Source>wall.png</Source> 78 <Name>wall</Name> 79 <Importer>TextureImporter</Importer> 80 <Processor>TextureProcessor</Processor> 81 <Options>None</Options> 82 <Output>C:\MyTemp\IiiroM\Entiiä\Entiiä\Entiiä\bin\x86\Debug\Content\wall.xnb</Output> 83 <Time>2014-07-23T13:13:48.7190474+03:00</Time> 84 </Item> 85 <Item> 86 <Source>Mutaaa.png</Source> 87 <Name>Mutaaa</Name> 88 <Importer>TextureImporter</Importer> 89 <Processor>TextureProcessor</Processor> 90 <Options>None</Options> 91 <Output>C:\MyTemp\IiiroM\Entiiä\Entiiä\Entiiä\bin\x86\Debug\Content\Mutaaa.xnb</Output> 92 <Time>2014-07-23T13:11:31.8553624+03:00</Time> 66 93 </Item> 67 94 <BuildSuccessful>true</BuildSuccessful> -
2014/30/IiroM/Entiiä/Entiiä/Entiiä/obj/x86/Debug/Entiiä.csproj.FileListAbsolute.txt
r5537 r5586 14 14 C:\MyTemp\IiiroM\EntiiÀ\EntiiÀ\EntiiÀ\bin\x86\Debug\Content\tyyppiAnim\tyyppi2_0.xnb 15 15 C:\MyTemp\IiiroM\EntiiÀ\EntiiÀ\EntiiÀ\bin\x86\Debug\Content\BlockCrackedStone.xnb 16 C:\MyTemp\IiiroM\EntiiÀ\EntiiÀ\EntiiÀ\bin\x86\Debug\Content\TyypinAse.xnb 17 C:\MyTemp\IiiroM\EntiiÀ\EntiiÀ\EntiiÀ\bin\x86\Debug\Content\wall.xnb 18 C:\MyTemp\IiiroM\EntiiÀ\EntiiÀ\EntiiÀ\bin\x86\Debug\Content\Mutaaa.xnb -
2014/30/IiroM/Entiiä/Entiiä/Entiiä/obj/x86/Debug/cachefile-{DF3A4280-B84B-4A52-8874-FAF60FC12527}-targetpath.txt
r5537 r5586 6 6 Content\tyyppiAnim\tyyppi2_0.xnb 7 7 Content\BlockCrackedStone.xnb 8 Content\TyypinAse.xnb 9 Content\wall.xnb 10 Content\Mutaaa.xnb -
2014/30/IiroM/Entiiä/Entiiä/EntiiäContent/EntiiäContent.contentproj
r5537 r5586 56 56 <Processor>TextureProcessor</Processor> 57 57 </Compile> 58 <Compile Include="wall.png"> 59 <Name>wall</Name> 60 <Importer>TextureImporter</Importer> 61 <Processor>TextureProcessor</Processor> 62 </Compile> 58 63 </ItemGroup> 59 64 <ItemGroup> … … 78 83 </Compile> 79 84 </ItemGroup> 85 <ItemGroup> 86 <Compile Include="TyypinAse.png"> 87 <Name>TyypinAse</Name> 88 <Importer>TextureImporter</Importer> 89 <Processor>TextureProcessor</Processor> 90 </Compile> 91 </ItemGroup> 92 <ItemGroup> 93 <Compile Include="Mutaaa.png"> 94 <Name>Mutaaa</Name> 95 <Importer>TextureImporter</Importer> 96 <Processor>TextureProcessor</Processor> 97 </Compile> 98 </ItemGroup> 80 99 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 81 100 <!-- 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.