Changeset 1269
- Timestamp:
- 2010-07-26 08:45:30 (13 years ago)
- Location:
- 2010/30/tekrjant/Seikkailu
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
2010/30/tekrjant/Seikkailu/Content/Content.contentproj
r1265 r1269 131 131 </Compile> 132 132 </ItemGroup> 133 <ItemGroup> 134 <Compile Include="timantti.png"> 135 <Name>timantti</Name> 136 <Importer>TextureImporter</Importer> 137 <Processor>TextureProcessor</Processor> 138 </Compile> 139 </ItemGroup> 133 140 </Project> -
2010/30/tekrjant/Seikkailu/Esine.cs
r1265 r1269 30 30 Taikasauva, 31 31 Lyhty, 32 Timantti, 32 33 } 33 34 … … 42 43 { 43 44 this.Tyyppi = tyyppi; 45 IgnoresCollisionResponse = true; 44 46 } 45 47 } -
2010/30/tekrjant/Seikkailu/Peli.cs
r1265 r1269 49 49 Image ruohoTekstuuri = LoadImage( "ruoho" ); 50 50 Image lyhdynKuva = LoadImage( "lyhty" ); 51 Image timantinKuva = LoadImage( "timantti" ); 51 52 52 53 Lieska tuliJaLeimaus; … … 136 137 137 138 Esine lyhty = new Esine( 0.6, 0.6, Shapes.Circle, EsineenTyyppi.Lyhty ); 138 lyhty.IgnoresCollisionResponse = true;139 139 lyhty.Image = lyhdynKuva; 140 140 lyhty.X = 4; … … 163 163 } 164 164 165 Esine timantti = new Esine( 0.3, 0.3, Shapes.Circle, EsineenTyyppi.Timantti ); 166 timantti.X = RandomGen.NextDouble( Level.Left, Level.Right ); 167 timantti.Y = RandomGen.NextDouble( Level.Bottom, Level.Top ); 168 timantti.Image = timantinKuva; 169 Add( timantti, -1 ); 170 165 171 Camera.StayInLevel = true; 166 172 Camera.Follow( pelaaja ); … … 180 186 Esine s = new Esine( 0.8, 0.1, Shapes.Rectangle, EsineenTyyppi.Taikasauva ); 181 187 s.Tag = "taikaSauva"; 182 s.IgnoresCollisionResponse = true;183 188 s.Color = Color.Red; 184 189 s.X = 2; … … 258 263 viimeksiKoskettuEsine = null; 259 264 break; 265 case EsineenTyyppi.Timantti: 266 Level.AmbientLight = 0.8; 267 MessageBox viesti = new MessageBox( 268 "Peli läpi!", "Löysit timantin, pimeys poistui maasta. Onneksi olkoon!" ); 269 Add( viesti ); 270 break; 260 271 default: 261 272 break; -
2010/30/tekrjant/Seikkailu/Seikkailu.csproj
r1265 r1269 59 59 <Reference Include="Jypeli2, Version=2.3.0.0, Culture=neutral, processorArchitecture=x86"> 60 60 <SpecificVersion>False</SpecificVersion> 61 <HintPath>..\ npo\Jypeli\bin\x86\Debug\Jypeli2.dll</HintPath>61 <HintPath>..\..\lighting\Jypeli\bin\x86\Debug\Jypeli2.dll</HintPath> 62 62 </Reference> 63 63 <Reference Include="Microsoft.Xna.Framework, Version=3.1.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d" /> -
2010/30/tekrjant/Seikkailu/Seikkailu.sln
r1265 r1269 1 1 2 2 Microsoft Visual Studio Solution File, Format Version 10.00 3 # Visual C# Express20083 # Visual Studio 2008 4 4 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Seikkailu", "Seikkailu.csproj", "{58E74E16-22F7-42E3-BEA1-E77F0DF32254}" 5 5 ProjectSection(ProjectDependencies) = postProject … … 7 7 EndProjectSection 8 8 EndProject 9 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jypeli", "..\ npo\Jypeli\Jypeli.csproj", "{1E963378-DFC6-425B-9AE1-236BE550E5FD}"9 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jypeli", "..\..\lighting\Jypeli\Jypeli.csproj", "{1E963378-DFC6-425B-9AE1-236BE550E5FD}" 10 10 EndProject 11 11 Global
Note: See TracChangeset
for help on using the changeset viewer.