- Timestamp:
- 2015-06-24 15:08:02 (7 years ago)
- Location:
- 2015/26/RonjaT/Myohassa
- Files:
-
- 11 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/26/RonjaT/Myohassa/Myohassa/Myohassa/Myohassa.cs
r6194 r6271 17 17 Image pelaajanKuva = LoadImage("norsu"); 18 18 Image tahtiKuva = LoadImage("tahti"); 19 19 Image EmmaKuva = LoadImage("Emma"); 20 Image JeremiKuva = LoadImage("Jeremi"); 21 Image Haakimppukuva = LoadImage("Haakimppu"); 22 Image KakkuKuva = LoadImage("KakkuKuva"); 20 23 SoundEffect maaliAani = LoadSoundEffect("maali"); 21 24 … … 37 40 kentta.SetTileMethod('#', LisaaTaso); 38 41 kentta.SetTileMethod('*', LisaaTahti); 39 kentta.SetTileMethod('N', LisaaPelaaja); 42 kentta.SetTileMethod('E', LisaaPelaaja1); 43 kentta.SetTileMethod('J', LisaaPelaaja2); 44 kentta.SetTileMethod('H', LisaaHaakimppu); 45 kentta.SetTileMethod('K', LisaaKakku); 46 40 47 kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 41 48 Level.CreateBorders(); … … 61 68 } 62 69 63 void Lisaa Pelaaja(Vector paikka, double leveys, double korkeus)70 void LisaaHaakimppu(Vector paikka, double leveys, double korkeus) 64 71 { 65 pelaaja1 = new PlatformCharacter(leveys, korkeus); 72 PhysicsObject haakimppu = PhysicsObject.CreateStaticObject(leveys, korkeus); 73 haakimppu.IgnoresCollisionResponse = true; 74 haakimppu.Position = paikka; 75 haakimppu.Image = Haakimppukuva; 76 haakimppu.Tag = "haakimppu"; 77 Add(haakimppu); 78 } 79 80 void LisaaKakku(Vector paikka, double leveys, double korkeus) 81 { 82 PhysicsObject kakku = PhysicsObject.CreateStaticObject(leveys, korkeus); 83 kakku.IgnoresCollisionResponse = true; 84 kakku.Position = paikka; 85 kakku.Image = KakkuKuva; 86 kakku.Tag = "kakku"; 87 Add(kakku); 88 } 89 90 void LisaaPelaaja(Vector paikka, double leveys, double korkeus, Image hahmonKuva) 91 { 92 pelaaja1 = new PlatformCharacter(leveys*0.5, korkeus); 66 93 pelaaja1.Position = paikka; 67 94 pelaaja1.Mass = 4.0; 68 pelaaja1.Image = pelaajanKuva;95 pelaaja1.Image = hahmonKuva; 69 96 AddCollisionHandler(pelaaja1, "tahti", TormaaTahteen); 70 97 Add(pelaaja1); 71 98 } 72 99 void LisaaPelaaja1(Vector paikka, double leveys, double korkeus) 100 { 101 LisaaPelaaja(paikka, leveys, korkeus, EmmaKuva); 102 } 103 void LisaaPelaaja2(Vector paikka, double leveys, double korkeus) 104 { 105 LisaaPelaaja(paikka, leveys, korkeus, JeremiKuva); 106 } 73 107 void LisaaNappaimet() 74 108 { -
2015/26/RonjaT/Myohassa/Myohassa/Myohassa/Myohassa.csproj.Debug.cachefile
r6194 r6271 3 3 Content\tahti.xnb 4 4 Content\kentta1.xnb 5 Content\Emma.xnb 6 Content\Jeremi.xnb 7 Content\Haakimppu.xnb 8 Content\kakku.xnb -
2015/26/RonjaT/Myohassa/Myohassa/Myohassa/obj/x86/Debug/Myohassa.csproj.FileListAbsolute.txt
r6194 r6271 11 11 C:\MyTemp\RonjaT\Myohassa\Myohassa\Myohassa\obj\x86\Debug\Myohassa.exe 12 12 C:\MyTemp\RonjaT\Myohassa\Myohassa\Myohassa\obj\x86\Debug\Myohassa.pdb 13 C:\MyTemp\RonjaT\Myohassa\Myohassa\Myohassa\bin\x86\Debug\Content\Emma.xnb 14 C:\MyTemp\RonjaT\Myohassa\Myohassa\Myohassa\bin\x86\Debug\Content\Jeremi.xnb 15 C:\MyTemp\RonjaT\Myohassa\Myohassa\Myohassa\bin\x86\Debug\Content\Haakimppu.xnb 16 C:\MyTemp\RonjaT\Myohassa\Myohassa\Myohassa\bin\x86\Debug\Content\kakku.xnb -
2015/26/RonjaT/Myohassa/Myohassa/Myohassa/obj/x86/Debug/cachefile-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}-targetpath.txt
r6194 r6271 3 3 Content\tahti.xnb 4 4 Content\kentta1.xnb 5 Content\Emma.xnb 6 Content\Jeremi.xnb 7 Content\Haakimppu.xnb 8 Content\kakku.xnb -
2015/26/RonjaT/Myohassa/Myohassa/MyohassaContent/MyohassaContent.contentproj
r6194 r6271 67 67 </Compile> 68 68 </ItemGroup> 69 <ItemGroup> 70 <Compile Include="Emma.png"> 71 <Name>Emma</Name> 72 <Importer>TextureImporter</Importer> 73 <Processor>TextureProcessor</Processor> 74 </Compile> 75 </ItemGroup> 76 <ItemGroup> 77 <Compile Include="Jeremi.png"> 78 <Name>Jeremi</Name> 79 <Importer>TextureImporter</Importer> 80 <Processor>TextureProcessor</Processor> 81 </Compile> 82 </ItemGroup> 83 <ItemGroup> 84 <Compile Include="Haakimppu.png"> 85 <Name>Haakimppu</Name> 86 <Importer>TextureImporter</Importer> 87 <Processor>TextureProcessor</Processor> 88 </Compile> 89 </ItemGroup> 90 <ItemGroup> 91 <Compile Include="kakku.png"> 92 <Name>kakku</Name> 93 <Importer>TextureImporter</Importer> 94 <Processor>TextureProcessor</Processor> 95 </Compile> 96 </ItemGroup> 69 97 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 70 98 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2015/26/RonjaT/Myohassa/Myohassa/MyohassaContent/kentta1.txt
r6194 r6271 2 2 ........................... 3 3 ........................... 4 .............................................................. ...........................................################################################################################4 ..............................................................K..............K...........................################################################################################ 5 5 ..................................................#####......##.......#.....##...........................################################################################################ 6 .................................................######... ..........####.........###........##.#.........################################################################################7 .........................................#########################.......... .............................################################################################################8 .........................................######## .......########.....################....................################################################################################9 .......................................#####........########..... .......................#.........###....################################################################################10 .................###................#########.. ..............##################......##.....#...#........################################################################################11 N......................................############################################.....#.....#..........################################################################################12 ############....###............###################################################################.......#### ############################################################################13 ........................................................................................... 14 ...........#.#.........#######........................###....###........................... 15 ##...................................####....................................##########...........# 16 ###....###......................................#####.......#.............##############......#...#...#.. ...#...#......#......'#..#......#........#....#....#....##...#17 #........#.......#############................................... ..#####################.........##......#...#......#......#..........#......#...#........#.#..#....#.#............#18 #####........##########............######.........#### #######.###########################..##.....#...#....#....#..#...#......#..#...#.....#..#.....#..#....#....#....#............#19 # ........#######........##################......########.................###############...###....#.....#......#....#......#...#.......#....##...#..........#.#.......# ##6 .................................................######...H.........####.........###........##.#.........###........................H......................................############## 7 .........................................#########################..........K............................####.......................#...################################################# 8 .........................................########K...H..########.....################....................####...........................################################################# 9 .......................................#####........########.....K....H.................#.........###....####......................#....################################################# 10 .................###................#########..H...........K.##################..K...##.....#...#........####....................H......################################################# 11 E....H.K..............................############################################.H...#.....#..........####....................#......################################################# 12 ############....###............###################################################################.......####................K..........################################################# 13 .............................................................................................................................#..H.# 14 H..........#.#.........#######...............K........###....###.....K...........K........................................#.....# 15 ##...................................####....................................##########...........#K 16 ###....###......................................#####.......#.............##############......#...#...#..K..#...#......#.H....'#..#......#..H.....#....#....#....##...# 17 #........#.......#############...................................H.#####################...K.....##...H..#...#...H..#......#..........#..K...#...#........#.#H.#....#.#............# 18 #####........##########............######.........####K######.###########################..##.....#...#....#....#..#...#...K..#..#...#.....#..#.....#..#....#.K..#....#............# 19 #J..H.K..#######.H......##################..K...########.H........H......###############.H.###..H.#.K...#...H..#....#...H..#...#....H..#....##...#..K...H...#.#..H....# ## 20 20 ########################################################################################################################################################################################## -
2015/26/RonjaT/Myohassa/Myohassa/MyohassaContent/obj/x86/Debug/ContentPipeline-.xml
r6194 r6271 36 36 <Options>None</Options> 37 37 <Output>C:\MyTemp\RonjaT\Myohassa\Myohassa\Myohassa\bin\x86\Debug\Content\kentta1.xnb</Output> 38 <Time>2015-06-23T14:58:42.9677839+03:00</Time> 38 <Time>2015-06-24T14:59:27.7052481+03:00</Time> 39 </Item> 40 <Item> 41 <Source>Emma.png</Source> 42 <Name>Emma</Name> 43 <Importer>TextureImporter</Importer> 44 <Processor>TextureProcessor</Processor> 45 <Options>None</Options> 46 <Output>C:\MyTemp\RonjaT\Myohassa\Myohassa\Myohassa\bin\x86\Debug\Content\Emma.xnb</Output> 47 <Time>2015-06-24T11:43:20.9642707+03:00</Time> 48 </Item> 49 <Item> 50 <Source>Jeremi.png</Source> 51 <Name>Jeremi</Name> 52 <Importer>TextureImporter</Importer> 53 <Processor>TextureProcessor</Processor> 54 <Options>None</Options> 55 <Output>C:\MyTemp\RonjaT\Myohassa\Myohassa\Myohassa\bin\x86\Debug\Content\Jeremi.xnb</Output> 56 <Time>2015-06-24T13:37:36.8672729+03:00</Time> 57 </Item> 58 <Item> 59 <Source>Haakimppu.png</Source> 60 <Name>Haakimppu</Name> 61 <Importer>TextureImporter</Importer> 62 <Processor>TextureProcessor</Processor> 63 <Options>None</Options> 64 <Output>C:\MyTemp\RonjaT\Myohassa\Myohassa\Myohassa\bin\x86\Debug\Content\Haakimppu.xnb</Output> 65 <Time>2015-06-24T13:57:14.5606729+03:00</Time> 66 </Item> 67 <Item> 68 <Source>kakku.png</Source> 69 <Name>kakku</Name> 70 <Importer>TextureImporter</Importer> 71 <Processor>TextureProcessor</Processor> 72 <Options>None</Options> 73 <Output>C:\MyTemp\RonjaT\Myohassa\Myohassa\Myohassa\bin\x86\Debug\Content\kakku.xnb</Output> 74 <Time>2015-06-24T14:48:36.0346481+03:00</Time> 39 75 </Item> 40 76 <BuildSuccessful>true</BuildSuccessful>
Note: See TracChangeset
for help on using the changeset viewer.