- Timestamp:
- 2011-06-08 22:01:27 (10 years ago)
- Location:
- 2011/23/hejumunt/RunRunRun/RunRunRun
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
2011/23/hejumunt/RunRunRun/RunRunRun/RunRunRun/Peli.cs
r1770 r1789 26 26 Image puun1Kuva = LoadImage("puulehdet"); 27 27 Image kellonKuva = LoadImage("kello"); 28 Image kodinKuva = LoadImage("koti"); 29 Image taustanKuva = LoadImage("tausta"); 28 30 Shape hahmonMuoto; 29 31 … … 153 155 kentta['9'] = lisaaPuu1; 154 156 kentta['E'] = lisaaKello; 157 kentta['M'] = lisaaKoti; 155 158 kentta.Insert(40.0, 40.0); 156 159 … … 178 181 { 179 182 kohde.Destroy(); 183 alaspainLaskuri.Value = alaspainLaskuri.Value + 10; 180 184 } 185 } 186 PhysicsObject lisaaKoti() 187 { 188 PhysicsObject koti = PhysicsObject.CreateStaticObject(80, 200); 189 koti.Image = kodinKuva; 190 return koti; 181 191 } 182 192 PhysicsObject lisaaKello() … … 187 197 return kello; 188 198 } 189 void osuKelloon(PhysicsObject hahmo, PhysicsObject kohde)190 {191 if (kohde.Tag.ToString() == "kello")192 {193 kohde.Destroy();194 }195 }196 199 PhysicsObject lisaaTaso() 197 200 { … … 292 295 aikaNaytto.BindTo(alaspainLaskuri); 293 296 Add(aikaNaytto); 297 298 Mouse.IsCursorVisible = false; 294 299 295 300 } -
2011/23/hejumunt/RunRunRun/RunRunRun/RunRunRun/kentta.txt
r1770 r1789 9 9 = K112 / 9 #### % / % % % ### / 999 9999 % / = 10 10 = &&& #### / 999 #II# % / % % % #I# 9999 990999 % / P = 11 = &&&& #II# / 99999 #### % / %E % % ?### 909 9009 % P PP 11 = &&&& #II# / 99999 #### % / %E % % ?### 909 9009 % P PP M = 12 12 = &&&&&& #### 999 #II# % & %P %P % #I# E0 00 % P P P = 13 13 = &&&&&&&& #O## 0 E#O#& % && %P %P % #O# 0 00 % PP EPP PP = -
2011/23/hejumunt/RunRunRun/RunRunRun/RunRunRunContent/RunRunRunContent.contentproj
r1770 r1789 161 161 </Compile> 162 162 </ItemGroup> 163 <ItemGroup> 164 <Compile Include="koti.png"> 165 <Name>koti</Name> 166 <Importer>TextureImporter</Importer> 167 <Processor>TextureProcessor</Processor> 168 </Compile> 169 </ItemGroup> 170 <ItemGroup> 171 <Compile Include="tausta.png"> 172 <Name>tausta</Name> 173 <Importer>TextureImporter</Importer> 174 <Processor>TextureProcessor</Processor> 175 </Compile> 176 </ItemGroup> 163 177 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 164 178 <!-- 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.