- Timestamp:
- 2014-07-01 11:02:36 (9 years ago)
- Location:
- 2014/27/NikiV/untitled
- Files:
-
- 2 added
- 1 deleted
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/27/NikiV/untitled/untitled/untitled/obj/x86/Debug/ContentPipeline-{55E0D8F8-FAC8-4519-84A8-18979ABAD7C1}.xml
r5178 r5209 48 48 </Item> 49 49 <Item> 50 <Source>bowser.jpg</Source> 50 <Source>lieska.png</Source> 51 <Name>lieska</Name> 52 <Importer>TextureImporter</Importer> 53 <Processor>TextureProcessor</Processor> 54 <Options>None</Options> 55 <Output>C:\MyTemp\NikiV\untitled\untitled\untitled\bin\x86\Debug\Content\lieska.xnb</Output> 56 <Time>2014-06-30T14:29:16.4260866+03:00</Time> 57 </Item> 58 <Item> 59 <Source>bowser.png</Source> 51 60 <Name>bowser</Name> 52 61 <Importer>TextureImporter</Importer> … … 54 63 <Options>None</Options> 55 64 <Output>C:\MyTemp\NikiV\untitled\untitled\untitled\bin\x86\Debug\Content\bowser.xnb</Output> 56 <Time>2014-0 6-30T14:14:45.813034+03:00</Time>65 <Time>2014-07-01T10:50:07.7769891+03:00</Time> 57 66 </Item> 58 67 <BuildSuccessful>true</BuildSuccessful> -
2014/27/NikiV/untitled/untitled/untitled/obj/x86/Debug/cachefile-{55E0D8F8-FAC8-4519-84A8-18979ABAD7C1}-targetpath.txt
r5178 r5209 4 4 Content\kentta1.xnb 5 5 Content\hahmo.xnb 6 Content\lieska.xnb 6 7 Content\bowser.xnb -
2014/27/NikiV/untitled/untitled/untitled/obj/x86/Debug/untitled.csproj.FileListAbsolute.txt
r5178 r5209 13 13 C:\MyTemp\NikiV\untitled\untitled\untitled\obj\x86\Debug\untitled.pdb 14 14 C:\MyTemp\NikiV\untitled\untitled\untitled\bin\x86\Debug\Content\bowser.xnb 15 C:\MyTemp\NikiV\untitled\untitled\untitled\bin\x86\Debug\Content\lieska.xnb -
2014/27/NikiV/untitled/untitled/untitled/untitled.cs
r5178 r5209 9 9 public class untitled : PhysicsGame 10 10 { 11 DoubleMeter elamaLaskuri; 11 12 const double nopeus = 200; 12 13 const double hyppyNopeus = 750; … … 84 85 void Luovihu(Vector paikka, double leveys, double korkeus) 85 86 { 86 P hysicsObject vihu = new PhysicsObject(leveys, korkeus);87 PlatformCharacter vihu = new PlatformCharacter(leveys, korkeus); 87 88 vihu.Position = paikka; 88 89 vihu.Mass = 3.0; … … 90 91 vihu.Width = 100; 91 92 vihu.Image = vihunkuva; 93 vihu.CanRotate = false; 92 94 Add(vihu); 95 96 PlatformWandererBrain tasoAivot = new PlatformWandererBrain(); 97 tasoAivot.Speed = 100; 98 99 vihu.Brain = tasoAivot; 100 tasoAivot.FallsOffPlatforms = true; 101 tasoAivot.JumpSpeed = 700; 102 tasoAivot.TriesToJump = true; 103 104 93 105 } 94 106 … … 135 147 { 136 148 //ammus.Size *= 3; 149 ammus.CanRotate = false; 137 150 //ammus.Image = ... 138 //ammus.MaximumLifetime = TimeSpan.FromSeconds(2.0); 151 ammus.MaximumLifetime = TimeSpan.FromSeconds(1.0); 152 139 153 } 140 154 } 155 void AmmusOsuu(PhysicsObject ammus, PlatformCharacter vihu) 156 { 157 AddCollisionHandler(ammus, vihu, osuma); 158 159 } 160 void LuoElamaLaskuri() 161 { 162 elamaLaskuri = new DoubleMeter(10); 163 elamaLaskuri.MaxValue = 10; 164 elamaLaskuri.LowerLimit += ElamaLoppui; 165 166 ProgressBar elamaPalkki = new ProgressBar(150, 20); 167 elamaPalkki.X = Screen.Left + 150; 168 elamaPalkki.Y = Screen.Top - 20; 169 elamaPalkki.BindTo(elamaLaskuri); 170 Add(elamaPalkki); 171 } 172 173 void ElamaLoppui() 174 { 175 MessageDisplay.Add("Elämät loppuivat, voi voi."); 176 } 177 void osuma(PhysicsObject ammus, PlatformCharacter vihu) 178 { 179 ammus.Destroy(); 180 MessageDisplay.Add("osuma"); 181 } 182 141 183 } -
2014/27/NikiV/untitled/untitled/untitled/untitled.csproj.Debug.cachefile
r5178 r5209 4 4 Content\kentta1.xnb 5 5 Content\hahmo.xnb 6 Content\lieska.xnb 6 7 Content\bowser.xnb -
2014/27/NikiV/untitled/untitled/untitledContent/untitledContent.contentproj
r5178 r5209 46 46 </ItemGroup> 47 47 <ItemGroup> 48 <Compile Include="bowser.jpg">49 <Name>bowser</Name>50 <Importer>TextureImporter</Importer>51 <Processor>TextureProcessor</Processor>52 </Compile>53 48 <Compile Include="maali.wav"> 54 49 <Name>maali</Name> … … 86 81 </Compile> 87 82 </ItemGroup> 83 <ItemGroup> 84 <Compile Include="bowser.png"> 85 <Name>bowser</Name> 86 <Importer>TextureImporter</Importer> 87 <Processor>TextureProcessor</Processor> 88 </Compile> 89 </ItemGroup> 88 90 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 89 91 <!-- 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.