- Timestamp:
- 2014-07-23 14:56:18 (9 years ago)
- Location:
- 2014/30/LauriR
- Files:
-
- 30 added
- 1 deleted
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/30/LauriR/OmaPeli/OmaPeli/OmaPeli/OmaPeli.cs
r5544 r5591 17 17 Image pelaajanKuva = LoadImage("norsu"); 18 18 Image tahtiKuva = LoadImage("tahti"); 19 Image kranaatti = LoadImage("grenade");20 19 21 20 SoundEffect maaliAani = LoadSoundEffect("maali"); -
2014/30/LauriR/OmaPeli/OmaPeli/OmaPeliContent/OmaPeliContent.contentproj
r5544 r5591 67 67 </Compile> 68 68 </ItemGroup> 69 <ItemGroup>70 <Compile Include="grenade.png">71 <Name>grenade</Name>72 <Importer>TextureImporter</Importer>73 <Processor>TextureProcessor</Processor>74 </Compile>75 </ItemGroup>76 69 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 77 70 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2014/30/LauriR/Pong/Pong/Pong/Pong.cs
r5544 r5591 181 181 } 182 182 183 const double PALLON_MIN_NOPEUS = 500;183 const double PALLON_MIN_NOPEUS = 0; 184 184 185 185 protected override void Update(Time time) -
2014/30/LauriR/tesohyppelytestaus/tesohyppelytestaus/tesohyppelytestaus/obj/x86/Debug/ContentPipeline-{D6EAC6A9-8675-4ACB-8A67-C6CE954765FB}.xml
r5572 r5591 36 36 <Options>None</Options> 37 37 <Output>C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\kentta1.xnb</Output> 38 <Time>2014-07-23T1 1:01:05.2594188+03:00</Time>38 <Time>2014-07-23T14:30:13.3325482+03:00</Time> 39 39 </Item> 40 40 <Item> … … 100 100 <Output>C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\kuva7.xnb</Output> 101 101 <Time>2014-07-23T10:47:09.8748887+03:00</Time> 102 </Item> 103 <Item> 104 <Source>doge.png</Source> 105 <Name>doge</Name> 106 <Importer>TextureImporter</Importer> 107 <Processor>TextureProcessor</Processor> 108 <Options>None</Options> 109 <Output>C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\doge.xnb</Output> 110 <Time>2014-07-23T12:11:21.6154598+03:00</Time> 111 </Item> 112 <Item> 113 <Source>sieni1.jpg</Source> 114 <Name>sieni1</Name> 115 <Importer>TextureImporter</Importer> 116 <Processor>TextureProcessor</Processor> 117 <Options>None</Options> 118 <Output>C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\sieni1.xnb</Output> 119 <Time>2014-07-23T12:45:21.5474326+03:00</Time> 120 </Item> 121 <Item> 122 <Source>kissa.png</Source> 123 <Name>kissa</Name> 124 <Importer>TextureImporter</Importer> 125 <Processor>TextureProcessor</Processor> 126 <Options>None</Options> 127 <Output>C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\kissa.xnb</Output> 128 <Time>2014-07-23T13:48:50.8543252+03:00</Time> 129 </Item> 130 <Item> 131 <Source>sienii.jpg</Source> 132 <Name>sienii</Name> 133 <Importer>TextureImporter</Importer> 134 <Processor>TextureProcessor</Processor> 135 <Options>None</Options> 136 <Output>C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\sienii.xnb</Output> 137 <Time>2014-07-23T13:02:59.1131786+03:00</Time> 138 </Item> 139 <Item> 140 <Source>sieni.png</Source> 141 <Name>sieni</Name> 142 <Importer>TextureImporter</Importer> 143 <Processor>TextureProcessor</Processor> 144 <Options>None</Options> 145 <Output>C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\sieni.xnb</Output> 146 <Time>2014-07-23T14:13:08.6420894+03:00</Time> 147 </Item> 148 <Item> 149 <Source>spikes.jpg</Source> 150 <Name>spikes</Name> 151 <Importer>TextureImporter</Importer> 152 <Processor>TextureProcessor</Processor> 153 <Options>None</Options> 154 <Output>C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\spikes.xnb</Output> 155 <Time>2014-07-23T14:24:28.1610345+03:00</Time> 102 156 </Item> 103 157 <BuildSuccessful>true</BuildSuccessful> -
2014/30/LauriR/tesohyppelytestaus/tesohyppelytestaus/tesohyppelytestaus/obj/x86/Debug/cachefile-{D6EAC6A9-8675-4ACB-8A67-C6CE954765FB}-targetpath.txt
r5572 r5591 10 10 Content\kuva6.xnb 11 11 Content\kuva7.xnb 12 Content\doge.xnb 13 Content\sieni1.xnb 14 Content\kissa.xnb 15 Content\sienii.xnb 16 Content\sieni.xnb 17 Content\spikes.xnb -
2014/30/LauriR/tesohyppelytestaus/tesohyppelytestaus/tesohyppelytestaus/obj/x86/Debug/tesohyppelytestaus.csproj.FileListAbsolute.txt
r5572 r5591 18 18 C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\kuva6.xnb 19 19 C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\kuva7.xnb 20 C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\doge.xnb 21 C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\sieni.xnb 22 C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\sieni1.xnb 23 C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\kissa.xnb 24 C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\sienii.xnb 25 C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\spikes.xnb -
2014/30/LauriR/tesohyppelytestaus/tesohyppelytestaus/tesohyppelytestaus/tesohyppelytestaus.cs
r5572 r5591 16 16 17 17 Image pelaajanKuva = LoadImage("kuva4"); 18 18 Image Sieni = LoadImage("sieni"); 19 19 Image tahtiKuva = LoadImage("tahti"); 20 Image Kissa = LoadImage("kissa"); 21 Image Piikit = LoadImage("spikes"); 20 22 21 23 Image[] juoksukuvat = LoadImages("kuva7", "kuva6", "kuva5", "kuva4", "kuva3", "kuva2", "kuva1"); 22 24 Image[] paikallaan = LoadImages("kuva4"); 25 Image[] hyppää = LoadImages("kuva4"); 26 Image[] putoaa = LoadImages("kuva7"); 23 27 24 28 SoundEffect maaliAani = LoadSoundEffect("maali"); 29 30 25 31 26 32 public override void Begin() … … 42 48 kentta.SetTileMethod('*', LisaaTahti); 43 49 kentta.SetTileMethod('N', LisaaPelaaja); 50 kentta.SetTileMethod('S', LisaaSieni2); 51 kentta.SetTileMethod('K', LisaaKissa); 52 kentta.SetTileMethod('P', LisaaPiikit); 44 53 kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 45 54 Level.CreateBorders(); … … 57 66 void LisaaTahti(Vector paikka, double leveys, double korkeus) 58 67 { 59 PhysicsObject tahti = PhysicsObject.CreateStaticObject(leveys *0.3, korkeus*0.3);68 PhysicsObject tahti = PhysicsObject.CreateStaticObject(leveys * 0.5, korkeus * 0.5); 60 69 tahti.IgnoresCollisionResponse = true; 61 70 tahti.Position = paikka; … … 72 81 pelaaja1.Image = pelaajanKuva; 73 82 AddCollisionHandler(pelaaja1, "tahti", TormaaTahteen); 83 AddCollisionHandler(pelaaja1, "sieni", TormaaSieneen); 84 AddCollisionHandler(pelaaja1, "kissa", TormaaKissaan); 85 AddCollisionHandler(pelaaja1, "spikes", TormaaPiikkeihin); 74 86 Add(pelaaja1); 75 87 pelaaja1.AnimWalk = new Animation(juoksukuvat); 76 88 pelaaja1.AnimIdle = new Animation(paikallaan); 89 pelaaja1.AnimJump = new Animation(hyppää); 90 pelaaja1.AnimFall = new Animation(putoaa); 91 77 92 } 78 93 … … 115 130 } 116 131 132 void LisaaSieni2(Vector paikka, double leveys, double korkeus) 133 { 134 PhysicsObject sieni = PhysicsObject.CreateStaticObject(leveys * 1.0, korkeus * 1.0); 135 sieni.IgnoresCollisionResponse = true; 136 sieni.Position = paikka; 137 sieni.Image = Sieni; 138 sieni.Tag = "sieni"; 139 Add(sieni); 140 } 117 141 118 119 } 142 void TormaaSieneen(PhysicsObject hahmo, PhysicsObject sieni) 143 { 144 maaliAani.Play(); 145 MessageDisplay.Add("Keräsit kultaisensienen JEE :D"); 146 sieni.Destroy(); 147 } 148 149 void LisaaKissa(Vector paikka, double leveys, double korkeus) 150 { 151 PhysicsObject kissa = PhysicsObject.CreateStaticObject(leveys * 1.0, korkeus * 1.0); 152 kissa.IgnoresCollisionResponse = true; 153 kissa.Position = paikka; 154 kissa.Image = Kissa; 155 kissa.Tag = "kissa"; 156 Add(kissa); 157 } 158 159 void TormaaKissaan(PhysicsObject hahmo, PhysicsObject kissa) 160 { 161 maaliAani.Play(); 162 MessageDisplay.Add("oisuit kissaan"); 163 hahmo.Destroy(); 164 } 165 166 167 void LisaaPiikit(Vector paikka, double leveys, double korkeus) 168 { 169 PhysicsObject spikes = PhysicsObject.CreateStaticObject(leveys * 1.0, korkeus * 1.0); 170 spikes.IgnoresCollisionResponse = true; 171 spikes.Position = paikka; 172 spikes.Image = Piikit; 173 spikes.Tag = "spikes"; 174 Add(spikes); 175 } 176 177 void TormaaPiikkeihin(PhysicsObject hahmo, PhysicsObject spikes) 178 { 179 maaliAani.Play(); 180 MessageDisplay.Add("Kuolit LÖL"); 181 hahmo.Destroy(); 182 } 183 184 } -
2014/30/LauriR/tesohyppelytestaus/tesohyppelytestaus/tesohyppelytestaus/tesohyppelytestaus.csproj.Debug.cachefile
r5572 r5591 10 10 Content\kuva6.xnb 11 11 Content\kuva7.xnb 12 Content\doge.xnb 13 Content\sieni1.xnb 14 Content\kissa.xnb 15 Content\sienii.xnb 16 Content\sieni.xnb 17 Content\spikes.xnb -
2014/30/LauriR/tesohyppelytestaus/tesohyppelytestaus/tesohyppelytestausContent/kentta1.txt
r5572 r5591 14 14 ## ## ## ## ## ## ## ## ## ##### ## ##### ## ## # ## 15 15 16 N 16 N S K PPPPPPPPPPPPPPPPPPPPPPP 17 17 ############################################################### -
2014/30/LauriR/tesohyppelytestaus/tesohyppelytestaus/tesohyppelytestausContent/tesohyppelytestausContent.contentproj
r5572 r5591 118 118 </Compile> 119 119 </ItemGroup> 120 <ItemGroup> 121 <Compile Include="doge.png"> 122 <Name>doge</Name> 123 <Importer>TextureImporter</Importer> 124 <Processor>TextureProcessor</Processor> 125 </Compile> 126 </ItemGroup> 127 <ItemGroup> 128 <Compile Include="sieni1.jpg"> 129 <Name>sieni1</Name> 130 <Importer>TextureImporter</Importer> 131 <Processor>TextureProcessor</Processor> 132 </Compile> 133 </ItemGroup> 134 <ItemGroup> 135 <Compile Include="sienii.jpg"> 136 <Name>sienii</Name> 137 <Importer>TextureImporter</Importer> 138 <Processor>TextureProcessor</Processor> 139 </Compile> 140 </ItemGroup> 141 <ItemGroup> 142 <Compile Include="kissa.png"> 143 <Name>kissa</Name> 144 <Importer>TextureImporter</Importer> 145 <Processor>TextureProcessor</Processor> 146 </Compile> 147 </ItemGroup> 148 <ItemGroup> 149 <Compile Include="sieni.png"> 150 <Name>sieni</Name> 151 <Importer>TextureImporter</Importer> 152 <Processor>TextureProcessor</Processor> 153 </Compile> 154 </ItemGroup> 155 <ItemGroup> 156 <Compile Include="spikes.jpg"> 157 <Name>spikes</Name> 158 <Importer>TextureImporter</Importer> 159 <Processor>TextureProcessor</Processor> 160 </Compile> 161 </ItemGroup> 120 162 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 121 163 <!-- 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.