Changeset 7332
- Timestamp:
- 2016-06-15 14:53:28 (7 years ago)
- Location:
- 2016/24/OliverK
- Files:
-
- 16 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
2016/24/OliverK/pomppupeli/pomppupeli/pomppupeli/obj/x86/Debug/ContentPipeline-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}.xml
r7306 r7332 36 36 <Options>None</Options> 37 37 <Output>C:\MyTemp\OliverK\pomppupeli\pomppupeli\pomppupeli\bin\x86\Debug\Content\kentta1.xnb</Output> 38 <Time>2016-06-1 4T14:28:16.4043271+03:00</Time>38 <Time>2016-06-15T14:21:02.0051113+03:00</Time> 39 39 </Item> 40 40 <Item> … … 45 45 <Options>None</Options> 46 46 <Output>C:\MyTemp\OliverK\pomppupeli\pomppupeli\pomppupeli\bin\x86\Debug\Content\ukko.xnb</Output> 47 <Time>2016-06-1 4T14:39:15.3477271+03:00</Time>47 <Time>2016-06-15T10:27:29.8782469+03:00</Time> 48 48 </Item> 49 49 <Item> … … 55 55 <Output>C:\MyTemp\OliverK\pomppupeli\pomppupeli\pomppupeli\bin\x86\Debug\Content\DL.xnb</Output> 56 56 <Time>2016-06-14T14:53:11.2617271+03:00</Time> 57 </Item> 58 <Item> 59 <Source>ukko2.png</Source> 60 <Name>ukko2</Name> 61 <Importer>TextureImporter</Importer> 62 <Processor>TextureProcessor</Processor> 63 <Options>None</Options> 64 <Output>C:\MyTemp\OliverK\pomppupeli\pomppupeli\pomppupeli\bin\x86\Debug\Content\ukko2.xnb</Output> 65 <Time>2016-06-15T10:14:07.8973464+03:00</Time> 66 </Item> 67 <Item> 68 <Source>DL2.png</Source> 69 <Name>DL2</Name> 70 <Importer>TextureImporter</Importer> 71 <Processor>TextureProcessor</Processor> 72 <Options>None</Options> 73 <Output>C:\MyTemp\OliverK\pomppupeli\pomppupeli\pomppupeli\bin\x86\Debug\Content\DL2.xnb</Output> 74 <Time>2016-06-15T10:27:17.2254846+03:00</Time> 75 </Item> 76 <Item> 77 <Source>tausta2.jpg</Source> 78 <Name>tausta2</Name> 79 <Importer>TextureImporter</Importer> 80 <Processor>TextureProcessor</Processor> 81 <Options>None</Options> 82 <Output>C:\MyTemp\OliverK\pomppupeli\pomppupeli\pomppupeli\bin\x86\Debug\Content\tausta2.xnb</Output> 83 <Time>2016-06-15T10:27:17.2254846+03:00</Time> 84 </Item> 85 <Item> 86 <Source>golden block.png</Source> 87 <Name>golden block</Name> 88 <Importer>TextureImporter</Importer> 89 <Processor>TextureProcessor</Processor> 90 <Options>None</Options> 91 <Output>C:\MyTemp\OliverK\pomppupeli\pomppupeli\pomppupeli\bin\x86\Debug\Content\golden block.xnb</Output> 92 <Time>2016-06-15T11:14:07.810649+03:00</Time> 93 </Item> 94 <Item> 95 <Source>images.jpg</Source> 96 <Name>images</Name> 97 <Importer>TextureImporter</Importer> 98 <Processor>TextureProcessor</Processor> 99 <Options>None</Options> 100 <Output>C:\MyTemp\OliverK\pomppupeli\pomppupeli\pomppupeli\bin\x86\Debug\Content\images.xnb</Output> 101 <Time>2016-06-15T11:14:46.1756165+03:00</Time> 57 102 </Item> 58 103 <BuildSuccessful>true</BuildSuccessful> -
2016/24/OliverK/pomppupeli/pomppupeli/pomppupeli/obj/x86/Debug/cachefile-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}-targetpath.txt
r7306 r7332 5 5 Content\ukko.xnb 6 6 Content\DL.xnb 7 Content\ukko2.xnb 8 Content\DL2.xnb 9 Content\tausta2.xnb 10 Content\golden block.xnb 11 Content\images.xnb -
2016/24/OliverK/pomppupeli/pomppupeli/pomppupeli/obj/x86/Debug/pomppupeli.csproj.FileListAbsolute.txt
r7306 r7332 13 13 C:\MyTemp\OliverK\pomppupeli\pomppupeli\pomppupeli\bin\x86\Debug\Content\ukko.xnb 14 14 C:\MyTemp\OliverK\pomppupeli\pomppupeli\pomppupeli\bin\x86\Debug\Content\DL.xnb 15 C:\MyTemp\OliverK\pomppupeli\pomppupeli\pomppupeli\bin\x86\Debug\Content\ukko2.xnb 16 C:\MyTemp\OliverK\pomppupeli\pomppupeli\pomppupeli\bin\x86\Debug\Content\DL2.xnb 17 C:\MyTemp\OliverK\pomppupeli\pomppupeli\pomppupeli\bin\x86\Debug\Content\tausta2.xnb 18 C:\MyTemp\OliverK\pomppupeli\pomppupeli\pomppupeli\bin\x86\Debug\Content\golden block.xnb 19 C:\MyTemp\OliverK\pomppupeli\pomppupeli\pomppupeli\bin\x86\Debug\Content\images.xnb -
2016/24/OliverK/pomppupeli/pomppupeli/pomppupeli/pomppupeli.cs
r7306 r7332 9 9 public class pomppupeli : PhysicsGame 10 10 { 11 const double nopeus = 200;11 double nopeus = 1000; 12 12 const double hyppyNopeus = 750; 13 13 const int RUUDUN_KOKO = 40; … … 15 15 PlatformCharacter pelaaja1; 16 16 17 Image pelaajanKuva = LoadImage("ukko"); 18 Image tahtiKuva = LoadImage("DL"); 19 17 Image palikkakuva = LoadImage("images"); 18 Image pelaajanKuva = LoadImage("ukko2"); 19 Image tahtiKuva = LoadImage("DL2"); 20 Image taustakuva = LoadImage("tausta2"); 20 21 SoundEffect maaliAani = LoadSoundEffect("maali"); 21 22 23 24 25 IPhysicsObject ukko2; 26 27 public double Velocity { get; private set; } 22 28 23 29 public override void Begin() … … 26 32 27 33 Gravity = new Vector(0, -1000); 28 29 34 LuoKentta(); 30 35 LisaaNappaimet(); 36 AsetaOhujaimet(); 31 37 32 38 Camera.Follow(pelaaja1); … … 38 44 { 39 45 TileMap kentta = TileMap.FromLevelAsset("kentta1"); 40 kentta.SetTileMethod(' #', LisaaTaso);46 kentta.SetTileMethod('E', LisaaTaso); 41 47 kentta.SetTileMethod('*', LisaaTahti); 42 48 kentta.SetTileMethod('N', LisaaPelaaja); 49 kentta.SetTileMethod('#', lisaaPalikka); 43 50 kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 44 51 Level.CreateBorders(); 45 //Level.Background.CreateGradient(Color.White, Color.SkyBlue); 46 Level.Background.Color = Color.White; 52 Level.Background.Color = Color.Black; 53 //GameObject tausta = new GameObject(Level.Width, Level.Height); 54 //tausta.Image = taustakuva; 55 //Add(tausta, -3); 56 57 } 58 59 void lisaaPalikka(Vector paikka, double leveys, double korkeus) 60 { 61 PhysicsObject taso = PhysicsObject.CreateStaticObject(leveys, korkeus); 62 taso.Position = paikka; taso.Image = palikkakuva; 63 Add(taso); 64 65 66 47 67 } 48 68 … … 51 71 PhysicsObject taso = PhysicsObject.CreateStaticObject(leveys, korkeus); 52 72 taso.Position = paikka; 53 taso.Color = Color. Green;73 taso.Color = Color.Brown; 54 74 Add(taso); 55 75 } … … 106 126 { 107 127 maaliAani.Play(); 108 MessageDisplay.Add(" Keräsi tähden!");128 MessageDisplay.Add("SAIT DAIMOND LUKON!"); 109 129 tahti.Destroy(); 110 130 } 111 } 131 void AsetaOhujaimet() 132 { 133 Keyboard.Listen(Key.Z, ButtonState.Down, hidasta, "Hidasta palloa"); 134 Keyboard.Listen(Key.A, ButtonState.Down, nopeuta, "Nopeuta palloa"); 135 136 } 137 138 void hidasta() 139 { 140 nopeus -= 100; 141 142 } 143 void nopeuta() 144 { 145 nopeus += 100; 146 147 148 149 } 150 } -
2016/24/OliverK/pomppupeli/pomppupeli/pomppupeli/pomppupeli.csproj.Debug.cachefile
r7306 r7332 5 5 Content\ukko.xnb 6 6 Content\DL.xnb 7 Content\ukko2.xnb 8 Content\DL2.xnb 9 Content\tausta2.xnb 10 Content\golden block.xnb 11 Content\images.xnb -
2016/24/OliverK/pomppupeli/pomppupeli/pomppupeliContent/kentta1.txt
r7306 r7332 1 * 2 ## 3 4 * * 5 ## ## 6 7 * * 8 ## ## ## 9 10 * * * * 11 ## ## ## ## 12 13 * * * * 14 ## ## ## ## ## 15 16 N 17 ###################### 1 2 3 * * 4 ########### #### ########### 5 6 * * * * * 7 ### ## ### # ### ## ### 8 9 * * * * * 10 ### #### ### #### ### 11 12 * * * * 13 #### #### #### #### 14 15 N 16 ############################# -
2016/24/OliverK/pomppupeli/pomppupeli/pomppupeliContent/pomppupeliContent.contentproj
r7306 r7332 81 81 </Compile> 82 82 </ItemGroup> 83 <ItemGroup> 84 <Compile Include="ukko2.png"> 85 <Name>ukko2</Name> 86 <Importer>TextureImporter</Importer> 87 <Processor>TextureProcessor</Processor> 88 </Compile> 89 </ItemGroup> 90 <ItemGroup> 91 <Compile Include="DL2.png"> 92 <Name>DL2</Name> 93 <Importer>TextureImporter</Importer> 94 <Processor>TextureProcessor</Processor> 95 </Compile> 96 <Compile Include="tausta2.jpg"> 97 <Name>tausta2</Name> 98 <Importer>TextureImporter</Importer> 99 <Processor>TextureProcessor</Processor> 100 </Compile> 101 </ItemGroup> 102 <ItemGroup> 103 <Compile Include="golden block.png"> 104 <Name>golden block</Name> 105 <Importer>TextureImporter</Importer> 106 <Processor>TextureProcessor</Processor> 107 </Compile> 108 </ItemGroup> 109 <ItemGroup> 110 <Compile Include="images.jpg"> 111 <Name>images</Name> 112 <Importer>TextureImporter</Importer> 113 <Processor>TextureProcessor</Processor> 114 </Compile> 115 </ItemGroup> 83 116 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 84 117 <!-- 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.