Changeset 5331
- Timestamp:
- 2014-07-03 10:58:51 (9 years ago)
- Location:
- 2014/27/JesseL
- Files:
-
- 55 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/27/JesseL/Trap/Trap/Trap/Trap.cs
r5295 r5331 15 15 PlatformCharacter pelaaja1; 16 16 17 Image pelaajanKuva = LoadImage(" Pelattava hahmo");17 Image pelaajanKuva = LoadImage("norsu"); 18 18 Image tahtiKuva = LoadImage("tahti"); 19 20 21 19 22 20 SoundEffect maaliAani = LoadSoundEffect("maali"); … … 30 28 31 29 Camera.Follow(pelaaja1); 32 Camera.ZoomFactor = 3.50;30 Camera.ZoomFactor = 1.2; 33 31 Camera.StayInLevel = true; 34 35 SetWindowSize(1024, 768, true);36 37 IsFullScreen = false;38 32 } 39 33 … … 47 41 Level.CreateBorders(); 48 42 Level.Background.CreateGradient(Color.White, Color.SkyBlue); 49 SmoothTextures = false;50 51 43 } 52 44 53 45 void LisaaTaso(Vector paikka, double leveys, double korkeus) 54 46 { 55 PhysicsObject taso = PhysicsObject.CreateStaticObject(leveys 47 PhysicsObject taso = PhysicsObject.CreateStaticObject(leveys, korkeus); 56 48 taso.Position = paikka; 57 49 taso.Color = Color.Green; … … 76 68 pelaaja1.Image = pelaajanKuva; 77 69 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 85 70 Add(pelaaja1); 86 87 88 89 90 71 } 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 109 72 110 73 void LisaaNappaimet() … … 116 79 Keyboard.Listen(Key.Right, ButtonState.Down, Liikuta, "Liikkuu vasemmalle", pelaaja1, nopeus); 117 80 Keyboard.Listen(Key.Up, ButtonState.Pressed, Hyppaa, "Pelaaja hyppää", pelaaja1, hyppyNopeus); 118 //Keyboard.Listen(Key.Space, ButtonState.Down, AmmuAseella, "Ammu", pelaaja1); 119 81 120 82 ControllerOne.Listen(Button.Back, ButtonState.Pressed, Exit, "Poistu pelistä"); 121 83 -
2014/27/JesseL/Trap/Trap/Trap/obj/x86/Debug/ContentPipeline-{C0AFE563-9C03-4FBB-B5A4-D2BA929617CA}.xml
r5295 r5331 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-0 2T14:54:58.0341705+03:00</Time>38 <Time>2014-07-03T10:08:31.1543168+03:00</Time> 39 39 </Item> 40 40 <Item> -
2014/27/JesseL/Trap/Trap/TrapContent/kentta1.txt
r5295 r5331 11 11 ## ## ## ## 12 12 13 * * * * 14 ######### ########### ###############################################13 * * * * ++++++++++++++++++++++++ 14 ######### ########### ############################################### 15 15 16 N###########################16 ++++ ########################### 17 17 #################################### 18 18 ################################################################
Note: See TracChangeset
for help on using the changeset viewer.