- Timestamp:
- 2014-07-01 11:56:28 (9 years ago)
- Location:
- 2014/27/OttoR/GrazyGunFighters
- Files:
-
- 4 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/27/OttoR/GrazyGunFighters/GrazyGunFighters/GrazyGunFighters/GrazyGunFighters.cs
r5211 r5214 12 12 13 13 private Animation soltunkävely; 14 14 15 15 16 16 17 const double nopeus = 152; 18 const double hyppyNopeus = 588; 17 const double nopeus = 147; 18 const double hyppyNopeus = 700; 19 19 const int RUUDUN_KOKO = 40; 20 20 … … 30 30 public override void Begin() 31 31 { 32 MediaPlayer.Play("taustamusa"); 33 34 32 35 soltunkävely = LoadAnimation("Solttu1 animaatio"); 33 36 34 Gravity = new Vector(0, -1000); 37 38 Gravity = new Vector(0, -1500); 35 39 36 40 LuoKentta(); … … 55 59 } 56 60 61 void LuoAikaLaskuri() 62 { 63 64 65 } 66 67 57 68 void LisaaTaso(Vector paikka, double leveys, double korkeus) 58 69 { 59 70 PhysicsObject taso = PhysicsObject.CreateStaticObject(leveys,korkeus); 60 71 taso.Position = paikka; 61 taso.Size = new Vector( 40, 40);62 taso.Color = Color. Crimson;72 taso.Size = new Vector(38, 38); 73 taso.Color = Color.Blue; 63 74 Add(taso); 64 75 } … … 77 88 PhysicsObject taso = PhysicsObject.CreateStaticObject(leveys, korkeus); 78 89 taso.Position = paikka; 79 taso.Size = new Vector( 50, 23);90 taso.Size = new Vector(38, 23); 80 91 taso.Color = Color.Gray; 81 92 Add(taso); … … 88 99 pelaaja1.Mass = 4.0; 89 100 pelaaja1.Image = pelaajankuva; 90 pelaaja1.Size = new Vector(40, 40);91 101 pelaaja1.Animation = new Animation(soltunkävely); 92 93 102 pelaaja1.AnimWalk = new Animation(soltunkävely); 103 pelaaja1.AnimWalk.FPS = 10; 94 104 95 105 Add(pelaaja1); … … 140 150 { 141 151 hahmo.Walk(nopeus); 142 pelaaja1.Animation.Start(); 143 pelaaja1.Animation.FPS = (10); 152 153 154 144 155 145 156 -
2014/27/OttoR/GrazyGunFighters/GrazyGunFighters/GrazyGunFighters/GrazyGunFighters.csproj.Debug.cachefile
r5211 r5214 9 9 Content\Solttu1 animaatio\2_0.xnb 10 10 Content\Solttu1 animaatio\3_0.xnb 11 Content\Solttu hyppy.xnb 12 Content\taustamusa.xnb 13 Content\taustamusa.wma -
2014/27/OttoR/GrazyGunFighters/GrazyGunFighters/GrazyGunFighters/obj/x86/Debug/ContentPipeline-{DD67BAE4-E735-4BE9-A36E-568B0F9EC985}.xml
r5211 r5214 54 54 <Options>None</Options> 55 55 <Output>C:\MyTemp\OttoR\GrazyGunFighters\GrazyGunFighters\GrazyGunFighters\bin\x86\Debug\Content\kentta1.xnb</Output> 56 <Time>2014-07-01T1 0:11:35.463336+03:00</Time>56 <Time>2014-07-01T11:54:32.3928875+03:00</Time> 57 57 </Item> 58 58 <Item> … … 91 91 <Output>C:\MyTemp\OttoR\GrazyGunFighters\GrazyGunFighters\GrazyGunFighters\bin\x86\Debug\Content\Solttu1 animaatio\3_0.xnb</Output> 92 92 <Time>2014-07-01T10:24:14.9742535+03:00</Time> 93 </Item> 94 <Item> 95 <Source>Solttu hyppy.png</Source> 96 <Name>Solttu hyppy</Name> 97 <Importer>TextureImporter</Importer> 98 <Processor>TextureProcessor</Processor> 99 <Options>None</Options> 100 <Output>C:\MyTemp\OttoR\GrazyGunFighters\GrazyGunFighters\GrazyGunFighters\bin\x86\Debug\Content\Solttu hyppy.xnb</Output> 101 <Time>2014-07-01T10:38:09.840031+03:00</Time> 102 </Item> 103 <Item> 104 <Source>taustamusa.mp3</Source> 105 <Name>taustamusa</Name> 106 <Importer>Mp3Importer</Importer> 107 <Processor>SongProcessor</Processor> 108 <Options>None</Options> 109 <Output>C:\MyTemp\OttoR\GrazyGunFighters\GrazyGunFighters\GrazyGunFighters\bin\x86\Debug\Content\taustamusa.xnb</Output> 110 <Extra>C:\MyTemp\OttoR\GrazyGunFighters\GrazyGunFighters\GrazyGunFighters\bin\x86\Debug\Content\taustamusa.wma</Extra> 111 <Time>2014-07-01T11:46:18.4410291+03:00</Time> 93 112 </Item> 94 113 <BuildSuccessful>true</BuildSuccessful> -
2014/27/OttoR/GrazyGunFighters/GrazyGunFighters/GrazyGunFighters/obj/x86/Debug/GrazyGunFighters.csproj.FileListAbsolute.txt
r5211 r5214 17 17 C:\MyTemp\OttoR\GrazyGunFighters\GrazyGunFighters\GrazyGunFighters\bin\x86\Debug\Content\Solttu1 animaatio\2_0.xnb 18 18 C:\MyTemp\OttoR\GrazyGunFighters\GrazyGunFighters\GrazyGunFighters\bin\x86\Debug\Content\Solttu1 animaatio\3_0.xnb 19 C:\MyTemp\OttoR\GrazyGunFighters\GrazyGunFighters\GrazyGunFighters\bin\x86\Debug\Content\Solttu hyppy.xnb 20 C:\MyTemp\OttoR\GrazyGunFighters\GrazyGunFighters\GrazyGunFighters\bin\x86\Debug\Content\taustamusa.xnb 21 C:\MyTemp\OttoR\GrazyGunFighters\GrazyGunFighters\GrazyGunFighters\bin\x86\Debug\Content\taustamusa.wma -
2014/27/OttoR/GrazyGunFighters/GrazyGunFighters/GrazyGunFighters/obj/x86/Debug/cachefile-{DD67BAE4-E735-4BE9-A36E-568B0F9EC985}-targetpath.txt
r5211 r5214 9 9 Content\Solttu1 animaatio\2_0.xnb 10 10 Content\Solttu1 animaatio\3_0.xnb 11 Content\Solttu hyppy.xnb 12 Content\taustamusa.xnb 13 Content\taustamusa.wma -
2014/27/OttoR/GrazyGunFighters/GrazyGunFighters/GrazyGunFightersContent/GrazyGunFightersContent.contentproj
r5211 r5214 88 88 </Compile> 89 89 </ItemGroup> 90 <ItemGroup> 91 <Compile Include="Solttu hyppy.png"> 92 <Name>Solttu hyppy</Name> 93 <Importer>TextureImporter</Importer> 94 <Processor>TextureProcessor</Processor> 95 </Compile> 96 </ItemGroup> 97 <ItemGroup> 98 <Compile Include="taustamusa.mp3"> 99 <Name>taustamusa</Name> 100 <Importer>Mp3Importer</Importer> 101 <Processor>SongProcessor</Processor> 102 </Compile> 103 </ItemGroup> 90 104 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 91 105 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2014/27/OttoR/GrazyGunFighters/GrazyGunFighters/GrazyGunFightersContent/kentta1.txt
r5211 r5214 1 1 2 3 2 4 5 6 7 ##### ## #### #8 # ## #9 #- # ##### 10 ## # ####--- ---######11 # 12 ## #### --####13 ## B R # #14 ############---- ############ 15 # # 3 # # 4 # # 5 # # 6 ##- ####-- ### # 7 ## ## -# 8 ## R # 9 ## ####-- ---##### 10 ### ## 11 ### -#### --## #### 12 ### B ## 13 ############---- ################ 14 # ################
Note: See TracChangeset
for help on using the changeset viewer.