Changeset 5295
- Timestamp:
- 2014-07-02 14:57:10 (9 years ago)
- Location:
- 2014/27/JesseL
- Files:
-
- 5 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/27/JesseL/Trap/Trap/Trap/Trap.cs
r5273 r5295 15 15 PlatformCharacter pelaaja1; 16 16 17 Image pelaajanKuva = LoadImage(" norsu");17 Image pelaajanKuva = LoadImage("Pelattava hahmo"); 18 18 Image tahtiKuva = LoadImage("tahti"); 19 20 19 21 20 22 SoundEffect maaliAani = LoadSoundEffect("maali"); … … 28 30 29 31 Camera.Follow(pelaaja1); 30 Camera.ZoomFactor = 1.2;32 Camera.ZoomFactor = 3.50; 31 33 Camera.StayInLevel = true; 34 35 SetWindowSize(1024, 768, true); 36 37 IsFullScreen = false; 32 38 } 33 39 … … 41 47 Level.CreateBorders(); 42 48 Level.Background.CreateGradient(Color.White, Color.SkyBlue); 49 SmoothTextures = false; 50 43 51 } 44 52 45 53 void LisaaTaso(Vector paikka, double leveys, double korkeus) 46 54 { 47 PhysicsObject taso = PhysicsObject.CreateStaticObject(leveys , korkeus);55 PhysicsObject taso = PhysicsObject.CreateStaticObject(leveys , korkeus); 48 56 taso.Position = paikka; 49 57 taso.Color = Color.Green; … … 68 76 pelaaja1.Image = pelaajanKuva; 69 77 AddCollisionHandler(pelaaja1, "tahti", TormaaTahteen); 78 79 //pelaaja1.Weapon = new AssaultRifle(30, 10); 80 //pelaaja1.Weapon.Ammo.Value = 1000; 81 //pelaaja1.Weapon.ProjectileCollision = AmmusOsui; 82 //pelaaja1.Weapon.CanHitOwner = false; 83 84 70 85 Add(pelaaja1); 86 87 88 89 71 90 } 91 92 void AmmusOsui(PhysicsObject ammus, PhysicsObject kohde) 93 { 94 //ammus.Destroy(); 95 } 96 97 void AmmuAseella(PlatformCharacter pelaaja) 98 { 99 PhysicsObject ammus = pelaaja.Weapon.Shoot(); 100 101 if (ammus != null) 102 { 103 //ammus.Size *= 3; 104 //ammus.Image = ... 105 //ammus.MaximumLifetime = TimeSpan.FromSeconds(2.0); 106 } 107 } 108 72 109 73 110 void LisaaNappaimet() … … 79 116 Keyboard.Listen(Key.Right, ButtonState.Down, Liikuta, "Liikkuu vasemmalle", pelaaja1, nopeus); 80 117 Keyboard.Listen(Key.Up, ButtonState.Pressed, Hyppaa, "Pelaaja hyppää", pelaaja1, hyppyNopeus); 81 118 //Keyboard.Listen(Key.Space, ButtonState.Down, AmmuAseella, "Ammu", pelaaja1); 119 82 120 ControllerOne.Listen(Button.Back, ButtonState.Pressed, Exit, "Poistu pelistä"); 83 121 -
2014/27/JesseL/Trap/Trap/Trap/Trap.csproj.Debug.cachefile
r5242 r5295 3 3 Content\tahti.xnb 4 4 Content\kentta1.xnb 5 Content\Pelattava hahmo.xnb -
2014/27/JesseL/Trap/Trap/Trap/obj/x86/Debug/ContentPipeline-{C0AFE563-9C03-4FBB-B5A4-D2BA929617CA}.xml
r5242 r5295 36 36 <Options>None</Options> 37 37 <Output>C:\MyTemp\JesseL\Trap\Trap\Trap\bin\x86\Debug\Content\kentta1.xnb</Output> 38 <Time>2014-07-01T14:36:30.5909793+03:00</Time> 38 <Time>2014-07-02T14:54:58.0341705+03:00</Time> 39 </Item> 40 <Item> 41 <Source>Pelattava hahmo.png</Source> 42 <Name>Pelattava hahmo</Name> 43 <Importer>TextureImporter</Importer> 44 <Processor>TextureProcessor</Processor> 45 <Options>None</Options> 46 <Output>C:\MyTemp\JesseL\Trap\Trap\Trap\bin\x86\Debug\Content\Pelattava hahmo.xnb</Output> 47 <Time>2014-07-02T13:53:41.7599302+03:00</Time> 39 48 </Item> 40 49 <BuildSuccessful>true</BuildSuccessful> -
2014/27/JesseL/Trap/Trap/Trap/obj/x86/Debug/Trap.csproj.FileListAbsolute.txt
r5242 r5295 11 11 C:\MyTemp\JesseL\Trap\Trap\Trap\obj\x86\Debug\Trap.exe 12 12 C:\MyTemp\JesseL\Trap\Trap\Trap\obj\x86\Debug\Trap.pdb 13 C:\MyTemp\JesseL\Trap\Trap\Trap\bin\x86\Debug\Content\Pelattava hahmo.xnb -
2014/27/JesseL/Trap/Trap/Trap/obj/x86/Debug/cachefile-{C0AFE563-9C03-4FBB-B5A4-D2BA929617CA}-targetpath.txt
r5242 r5295 3 3 Content\tahti.xnb 4 4 Content\kentta1.xnb 5 Content\Pelattava hahmo.xnb -
2014/27/JesseL/Trap/Trap/TrapContent/TrapContent.contentproj
r5242 r5295 67 67 </Compile> 68 68 </ItemGroup> 69 <ItemGroup> 70 <Folder Include="NewFolder1\" /> 71 </ItemGroup> 72 <ItemGroup> 73 <Compile Include="Pelattava hahmo.png"> 74 <Name>Pelattava hahmo</Name> 75 <Importer>TextureImporter</Importer> 76 <Processor>TextureProcessor</Processor> 77 </Compile> 78 </ItemGroup> 69 79 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 70 80 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2014/27/JesseL/Trap/Trap/TrapContent/kentta1.txt
r5242 r5295 12 12 13 13 * * * * 14 ## ## ## ## ## 14 ######### ########### ############################################### 15 15 16 16 N ###########################
Note: See TracChangeset
for help on using the changeset viewer.