- Timestamp:
- 2017-07-27 13:01:42 (6 years ago)
- Location:
- 2017/30/TuomasH/Snake/Snake
- Files:
-
- 5 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
2017/30/TuomasH/Snake/Snake/Snake/Snake.cs
r9157 r9158 24 24 ScoreList topLista = new ScoreList(10, false, 0); 25 25 GameObject paa = new GameObject(40, 40); 26 //GameObject este = new GameObject(50.0, 50.0); 27 28 26 27 28 29 30 29 31 30 32 … … 59 61 Aloitus(); 60 62 } 63 void ÄäniTehoste() 64 { 65 SoundEffect omenanaani = LoadSoundEffect("omenanääni"); 66 omenanaani.Play(); 67 68 69 } 70 void Seinaantormays() 71 { 72 SoundEffect seinaantormays = LoadSoundEffect("seinääntörmäys"); 73 seinaantormays.Play(); 74 } 61 75 62 76 public void Aloitus() … … 87 101 Mouse.IsCursorVisible = true; 88 102 aikalaskuri.Reset(); 103 89 104 90 105 … … 94 109 Mato(); 95 110 Ohje(); 96 111 97 112 //Top10(); 98 113 … … 118 133 { 119 134 Level.Background.Color = Color.Green; 120 //este.X = RandomGen.NextDouble(Level.Left, Level.Right); 121 //este.Y = RandomGen.NextDouble(Level.Bottom, Level.Top); 122 //este.Color = Color.Gray; 123 //este.Shape = Shape.Rectangle; 124 //Add(este); 125 126 //if (este.IsInside(paa.Position)) 127 //{ 128 //paa.Destroy(); 129 //} 135 130 136 131 137 } … … 151 157 152 158 if (!Level.BoundingRect.IsInside(paa.Position)) 153 { Aloitus(); 159 { 160 Seinaantormays(); 161 Aloitus(); 154 162 return; 163 155 164 } 156 165 … … 161 170 omena.Position = new Vector(satunnainenX, satunnainenY) * Ruudunkoko; 162 171 LuoMatopala(matopalat[0].Position.X, matopalat[1].Position.Y); 172 ÄäniTehoste(); 163 173 } 164 174 } 165 166 if (omena.IsInside(paa.Position)) 167 { 168 paa.Width += 1000; 169 paa.Height += 1000; 170 } 175 176 177 171 178 } 172 179 … … 238 245 Pause(); 239 246 } 247 248 240 249 241 250 -
2017/30/TuomasH/Snake/Snake/Snake/Snake.csproj.Debug.cachefile
r9115 r9158 1 1 Content\omena.xnb 2 2 Content\omena2.xnb 3 Content\omenanÀÀni.xnb 4 Content\seinÀÀntörmÀys.xnb -
2017/30/TuomasH/Snake/Snake/Snake/obj/x86/Debug/ContentPipeline-{20D33183-98B4-4A6F-A502-A5C075B53511}.xml
r9115 r9158 19 19 <Output>C:\MyTemp\TuomasH\Snake\Snake\Snake\bin\x86\Debug\Content\omena2.xnb</Output> 20 20 <Time>2017-07-26T11:02:39.2466487+03:00</Time> 21 </Item> 22 <Item> 23 <Source>omenanääni.wav</Source> 24 <Name>omenanääni</Name> 25 <Importer>WavImporter</Importer> 26 <Processor>SoundEffectProcessor</Processor> 27 <Options>None</Options> 28 <Output>C:\MyTemp\TuomasH\Snake\Snake\Snake\bin\x86\Debug\Content\omenanääni.xnb</Output> 29 <Time>2017-07-27T12:53:52.6842046+03:00</Time> 30 </Item> 31 <Item> 32 <Source>seinääntörmäys.wav</Source> 33 <Name>seinääntörmäys</Name> 34 <Importer>WavImporter</Importer> 35 <Processor>SoundEffectProcessor</Processor> 36 <Options>None</Options> 37 <Output>C:\MyTemp\TuomasH\Snake\Snake\Snake\bin\x86\Debug\Content\seinääntörmäys.xnb</Output> 38 <Time>2017-07-27T12:59:38.5298536+03:00</Time> 21 39 </Item> 22 40 <BuildSuccessful>true</BuildSuccessful> -
2017/30/TuomasH/Snake/Snake/Snake/obj/x86/Debug/Snake.csproj.FileListAbsolute.txt
r9115 r9158 9 9 C:\MyTemp\TuomasH\Snake\Snake\Snake\bin\x86\Debug\Content\omena.xnb 10 10 C:\MyTemp\TuomasH\Snake\Snake\Snake\bin\x86\Debug\Content\omena2.xnb 11 C:\MyTemp\TuomasH\Snake\Snake\Snake\bin\x86\Debug\Content\omenanÀÀni.xnb 12 C:\MyTemp\TuomasH\Snake\Snake\Snake\bin\x86\Debug\Content\seinÀÀntörmÀys.xnb -
2017/30/TuomasH/Snake/Snake/Snake/obj/x86/Debug/cachefile-{20D33183-98B4-4A6F-A502-A5C075B53511}-targetpath.txt
r9115 r9158 1 1 Content\omena.xnb 2 2 Content\omena2.xnb 3 Content\omenanÀÀni.xnb 4 Content\seinÀÀntörmÀys.xnb -
2017/30/TuomasH/Snake/Snake/SnakeContent/SnakeContent.contentproj
r9115 r9158 59 59 </Compile> 60 60 </ItemGroup> 61 <ItemGroup> 62 <Compile Include="omenanääni.wav"> 63 <Name>omenanääni</Name> 64 <Importer>WavImporter</Importer> 65 <Processor>SoundEffectProcessor</Processor> 66 </Compile> 67 </ItemGroup> 68 <ItemGroup> 69 <Compile Include="seinääntörmäys.wav"> 70 <Name>seinääntörmäys</Name> 71 <Importer>WavImporter</Importer> 72 <Processor>SoundEffectProcessor</Processor> 73 </Compile> 74 </ItemGroup> 61 75 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 62 76 <!-- 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.