Changeset 8033
- Timestamp:
- 2016-07-08 11:28:22 (7 years ago)
- Location:
- 2016/27/JamiR/Tasohyppelypeli1
- Files:
-
- 4 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
2016/27/JamiR/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1.cs
r7965 r8033 24 24 Animation vihukävely; 25 25 Animation PortaalinAnimaatio; 26 26 Image FakenKuva = LoadImage("Fake"); 27 27 28 28 … … 30 30 31 31 SoundEffect maaliAani = LoadSoundEffect("maali"); 32 33 32 34 33 35 public override void Begin() … … 40 42 IsFullScreen = true; 41 43 44 45 42 46 43 47 LuoKentta(); … … 48 52 Camera.StayInLevel = true; 49 53 54 } 55 56 void LuoPaavalikko(Window ikkuna) { LuoPaavalikko(); } 57 58 void LuoPaavalikko() 59 { 60 MultiSelectWindow AlkuValikko = new MultiSelectWindow("Pelin Alkuvalikko", "AloitaPeli", "Lopeta"); 61 AlkuValikko.AddItemHandler(0, Begin); 62 AlkuValikko.AddItemHandler(1, Exit); 63 Add(AlkuValikko); 64 50 65 } 51 66 … … 59 74 kentta.SetTileMethod('L', LisaaLepakko); 60 75 kentta.SetTileMethod('P', LisaaPortaali); 76 kentta.SetTileMethod('F', LisaaFake); 61 77 kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 62 78 Level.CreateBorders(); … … 95 111 AddCollisionHandler(pelaaja1, "Lepakko", TormaaLepakkoon); 96 112 AddCollisionHandler(pelaaja1, "Portaali", TormaaPortaaliin); 113 pelaaja1.CollisionIgnoreGroup = 5; 97 114 Add(pelaaja1); 98 115 … … 150 167 } 151 168 169 void LisaaFake(Vector paikka, double leveys, double korkeus) 170 { 171 PhysicsObject Fake = PhysicsObject.CreateStaticObject(leveys, korkeus); 172 Fake.Position = paikka; 173 Fake.Color = Color.Green; 174 Fake.Image = FakenKuva; 175 Fake.CollisionIgnoreGroup = 5; 176 Add(Fake); 177 178 } 179 152 180 void LisaaNappaimet() 153 181 { … … 213 241 void TormaaPortaaliin(PhysicsObject hahmo, PhysicsObject Portaali) 214 242 { 215 216 217 } 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 } 243 ClearAll(); 244 MessageWindow voitto = new MessageWindow("voitit!"); 245 Add(voitto); 246 voitto.Closed += LuoPaavalikko; 247 248 249 250 251 252 253 254 } 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 } 279 -
2016/27/JamiR/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1.csproj.Debug.cachefile
r7965 r8033 28 28 Content\portaali\Untitled_0.xnb 29 29 Content\portaali\Untitled02_0.xnb 30 Content\kentta2.xnb 31 Content\Fake.xnb -
2016/27/JamiR/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/obj/x86/Debug/ContentPipeline-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}.xml
r7965 r8033 36 36 <Options>None</Options> 37 37 <Output>C:\MyTemp\JamiR\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\kentta1.xnb</Output> 38 <Time>2016-07-0 7T14:14:20.2152544+03:00</Time>38 <Time>2016-07-08T11:19:50.0157428+03:00</Time> 39 39 </Item> 40 40 <Item> … … 263 263 <Time>2016-07-07T13:44:37.9557361+03:00</Time> 264 264 </Item> 265 <Item> 266 <Source>kentta2.txt</Source> 267 <Name>kentta2</Name> 268 <Importer>TextFileImporter</Importer> 269 <Processor>TextFileContentProcessor</Processor> 270 <Options>None</Options> 271 <Output>C:\MyTemp\JamiR\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\kentta2.xnb</Output> 272 <Time>2016-07-08T09:39:55.992579+03:00</Time> 273 </Item> 274 <Item> 275 <Source>Fake.png</Source> 276 <Name>Fake</Name> 277 <Importer>TextureImporter</Importer> 278 <Processor>TextureProcessor</Processor> 279 <Options>None</Options> 280 <Output>C:\MyTemp\JamiR\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\Fake.xnb</Output> 281 <Time>2016-07-08T10:06:46.1488573+03:00</Time> 282 </Item> 265 283 <BuildSuccessful>true</BuildSuccessful> 266 284 <Settings> -
2016/27/JamiR/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/obj/x86/Debug/Tasohyppelypeli1.csproj.FileListAbsolute.txt
r7965 r8033 36 36 C:\MyTemp\JamiR\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\portaali\Untitled_0.xnb 37 37 C:\MyTemp\JamiR\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\portaali\Untitled02_0.xnb 38 C:\MyTemp\JamiR\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\kentta2.xnb 39 C:\MyTemp\JamiR\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\Fake.xnb -
2016/27/JamiR/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/obj/x86/Debug/cachefile-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}-targetpath.txt
r7965 r8033 28 28 Content\portaali\Untitled_0.xnb 29 29 Content\portaali\Untitled02_0.xnb 30 Content\kentta2.xnb 31 Content\Fake.xnb -
2016/27/JamiR/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1Content/Tasohyppelypeli1Content.contentproj
r7965 r8033 116 116 </Compile> 117 117 </ItemGroup> 118 <ItemGroup> 119 <Compile Include="kentta2.txt"> 120 <Name>kentta2</Name> 121 <Importer>TextFileImporter</Importer> 122 <Processor>TextFileContentProcessor</Processor> 123 </Compile> 124 </ItemGroup> 125 <ItemGroup> 126 <Compile Include="Fake.png"> 127 <Name>Fake</Name> 128 <Importer>TextureImporter</Importer> 129 <Processor>TextureProcessor</Processor> 130 </Compile> 131 </ItemGroup> 118 132 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 119 133 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2016/27/JamiR/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1Content/kentta1.txt
r7965 r8033 1 1 2 3 4 5 6 # # # # # 7 8 9 ## 10 FF 11 12 ## 13 14 N 15 ## ## 16 2 17 18 ## 19 K K 20 ########## 3 21 22 # F# 23 24 ## 4 25 5 6 7 8 9 10 11 12 13 14 P 15 ## 26 ## 27 16 28 17 29 ## … … 20 32 21 33 K 22 # ## # ##########34 #F # # ########## 23 35 24 36 ## 25 37 26 38 27 ###39 ## 28 40 29 # #30 31 K NP41 #FF# 42 43 K P 32 44 #############################################
Note: See TracChangeset
for help on using the changeset viewer.