Changeset 4891
- Timestamp:
- 2014-06-06 12:25:05 (9 years ago)
- Location:
- 2014/23/ErikT/peli12/peli12
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/23/ErikT/peli12/peli12/peli12/peli12.cs
r4881 r4891 20 20 int kerattavatpullot = 0; 21 21 int keratutpullot = 0; 22 int kenttaNro = 1;23 const int MAX_LEVEL = 5;22 int kenttaNro = 4; 23 const int MAX_LEVEL = 4; 24 24 25 25 PlatformCharacter pelaaja; … … 27 27 Image tasoKuva3 = LoadImage("hiekkakivi"); 28 28 Image tasoKuva2 = LoadImage("ruohoa"); 29 Image taustaKuva = LoadImage("kukukukukuku");30 29 Image pelaajanKuva = LoadImage("markoboy1"); 31 30 Image pulloKuva = LoadImage("pullokuva"); … … 60 59 Level.Background.Color = Color.Gray; 61 60 Level.Background.FitToLevel(); 62 } 63 64 void LisaaBossi(Vector paikka, double leveys, double korkeus) 65 { 66 PlatformCharacter bossi = new PlatformCharacter(300.0, 300.0); 67 Add(bossi); 68 69 FollowerBrain seuraajanAivot = new FollowerBrain(pelaaja); 70 seuraajanAivot.Speed = 60; 71 seuraajanAivot.DistanceFar = 200; 72 seuraajanAivot.DistanceClose = 100; 73 seuraajanAivot.StopWhenTargetClose = true; 74 75 seuraajanAivot.TargetClose += KunLahella; 76 } 77 78 void KunLahella(); 79 { 80 81 } 82 83 61 } 84 62 85 63 void LisaaVihollinen(Vector paikka, double leveys, double korkeus) -
2014/23/ErikT/peli12/peli12/peli12Content/kentta2.txt
r4881 r4891 1 1 ################################ 2 2 # 3 * * G* #3 * * * # 4 4 ##### ##### ############# 5 5 * G * # 6 6 ####### ####### ############ 7 7 # 8 * * G#8 * * # 9 9 #### ####L############# 10 10 ### # … … 12 12 ### # 13 13 * G * * # 14 ###### ######## #####LLL####15 ######14 ###### ################LL##### 15 ##### # 16 16 N * * G # 17 17 ########### ################### -
2014/23/ErikT/peli12/peli12/peli12Content/kentta3.txt
r4881 r4891 7 7 MMM * * M M 8 8 MMMM MMMM G * M 9 * MMM MMM MMM MMMMMMMMMM10 MMMMMM G M 9 * MMM MMM MMMLMMMMMMMMM 10 MMMMMM G M M M 11 11 MMMM MMM M 12 MMM M 12 MMM M M 13 13 *G M * MMM MMM M 14 14 MMMMMMMM M MMM * M … … 16 16 M M 17 17 MM MMM M M 18 * M MMM MMM M * G* M19 MMMMMM * G * MMMMMM MMMMM20 MMMLLMMMMMMMMMMMMMMM 18 * M MMM MMM M * * M 19 MMMMMM * G * MMMMMMLLMMM 20 MMMLLMMMMMMMMMMMMMMM MMMM M 21 21 MMM MMMM M 22 22 * * M … … 25 25 MMMMM MMMM MMMMM 26 26 N G * * G * M 27 MMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMM MMMMMMMMMMMM28 MLLLLM 27 MMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMLMMMMMMMMMMM 28 MLLLLM MMM 29 29 MMMMMM -
2014/23/ErikT/peli12/peli12/peli12Content/kentta4.txt
r4881 r4891 8 8 MMMMMMMMM M * M 9 9 MM G * M M * M 10 MMMM MMMM MMMMMMM MMMMMMMMMMM M11 * MMMM 10 MMMMLMMM MMMMMMM MMMMMMMMMMM M 11 * MMMM M M MM 12 12 MMMM M N M * G * M M 13 13 M MMMMM MMMMMMM MMMMMMMMMMMMMMMMM M … … 21 21 MMM M M M M MMM MMM M M 22 22 G * M M*M M * M M 23 MMMMMMMMMMMMMM MM M M M MMM M M24 M 23 MMMMMMMMMMMMMMLM M M M MMM M M 24 M M M MMM M M 25 25 G * G M 26 MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM 26 MMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMLLMMMMMMMMMMMMMMMMM 27 MLLM MMMM 28 MMMM -
2014/23/ErikT/peli12/peli12/peli12Content/peli12Content.contentproj
r4881 r4891 211 211 </Compile> 212 212 </ItemGroup> 213 <ItemGroup>214 <Compile Include="kentta5.txt">215 <Name>kentta5</Name>216 <Importer>TextFileImporter</Importer>217 <Processor>TextFileContentProcessor</Processor>218 </Compile>219 </ItemGroup>220 213 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 221 214 <!-- 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.