- Timestamp:
- 2015-07-21 14:57:59 (8 years ago)
- Location:
- 2015/30/JenniN
- Files:
-
- 3 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/30/JenniN/Karkuunomapeli/Karkuunomapeli/Karkuunomapeli/Karkuunomapeli.cs
r6839 r6872 12 12 const double hyppyNopeus = 750; 13 13 const int RUUDUN_KOKO = 40; 14 14 15 15 16 PlatformCharacter pelaaja1; 16 17 17 18 //Image pelaajanKuva = LoadImage("norsu"); 18 19 //Image tahtiKuva = LoadImage("tahti"); 20 Image taustaKuva = LoadImage("taustakuva"); 19 21 20 22 SoundEffect maaliAani = LoadSoundEffect("maali"); … … 31 33 Camera.ZoomFactor = 1.2; 32 34 Camera.StayInLevel = true; 35 36 Level.Background.Image = taustaKuva; 37 33 38 } 34 39 … … 39 44 kentta.SetTileMethod('*', LisaaTahti); 40 45 kentta.SetTileMethod('N', LisaaPelaaja); 46 kentta.SetTileMethod('K', LisaaEste); 41 47 42 48 kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); … … 44 50 Level.Background.CreateGradient(Color.White, Color.SkyBlue); 45 51 } 46 52 47 53 48 54 … … 81 87 pelaaja1.Color = Color.HanPurple; 82 88 AddCollisionHandler(pelaaja1, "tahti", TormaaTahteen); 89 AddCollisionHandler(pelaaja1, "este", TormaaEsteeseen); 90 83 91 Add(pelaaja1); 84 92 } 85 93 86 94 87 void LisaaEste(Vector pakka, double leveys, double korkeus) 95 96 97 //Esteet, joita täytyy varoa. 98 void LisaaEste(Vector paikka, double leveys, double korkeus) 88 99 { 89 100 PhysicsObject este = PhysicsObject.CreateStaticObject(leveys, korkeus); 101 este.Shape = Shape.Hexagon; 102 este.Position = paikka; 103 este.Color = Color.YellowGreen; 104 este.Tag = "este"; 105 Add(este); 106 90 107 } 91 108 … … 124 141 tahti.Destroy(); 125 142 } 143 144 void TormaaEsteeseen(PhysicsObject hahmo, PhysicsObject este) 145 { 146 Explosion rajahdys = new Explosion(100); 147 rajahdys.Position = hahmo.Position; 148 Add(rajahdys); 149 hahmo.Destroy(); 150 151 Label tekstikentta = new Label("HÄVISIT!"); 152 Add(tekstikentta); 153 154 155 } 156 157 158 159 160 126 161 } -
2015/30/JenniN/Karkuunomapeli/Karkuunomapeli/Karkuunomapeli/Karkuunomapeli.csproj.Debug.cachefile
r6839 r6872 3 3 Content\tahti.xnb 4 4 Content\kentta1.xnb 5 Content\taustakuva.xnb -
2015/30/JenniN/Karkuunomapeli/Karkuunomapeli/Karkuunomapeli/obj/x86/Debug/Karkuunomapeli.csproj.FileListAbsolute.txt
r6839 r6872 11 11 C:\MyTemp\JenniN\Karkuunomapeli\Karkuunomapeli\Karkuunomapeli\obj\x86\Debug\Karkuunomapeli.exe 12 12 C:\MyTemp\JenniN\Karkuunomapeli\Karkuunomapeli\Karkuunomapeli\obj\x86\Debug\Karkuunomapeli.pdb 13 C:\MyTemp\JenniN\Karkuunomapeli\Karkuunomapeli\Karkuunomapeli\bin\x86\Debug\Content\taustakuva.xnb -
2015/30/JenniN/Karkuunomapeli/Karkuunomapeli/Karkuunomapeli/obj/x86/Debug/cachefile-{935D6C79-42D8-4967-8F2D-48E6CFE7CE27}-targetpath.txt
r6839 r6872 3 3 Content\tahti.xnb 4 4 Content\kentta1.xnb 5 Content\taustakuva.xnb -
2015/30/JenniN/Karkuunomapeli/Karkuunomapeli/KarkuunomapeliContent/KarkuunomapeliContent.contentproj
r6839 r6872 69 69 </Compile> 70 70 </ItemGroup> 71 <ItemGroup> 72 <Compile Include="taustakuva.png"> 73 <Name>taustakuva</Name> 74 <Importer>TextureImporter</Importer> 75 <Processor>TextureProcessor</Processor> 76 </Compile> 77 </ItemGroup> 71 78 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 72 79 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2015/30/JenniN/Karkuunomapeli/Karkuunomapeli/KarkuunomapeliContent/kentta1.txt
r6839 r6872 1 1 .......................................*...........#.......... 2 ............ ...........#...*.........###...###.....######.....3 *...... ..######....##########......####...##*##....#........##4 #...######....#...*#...#.... .............##........#...#.*..#*5 # ........##...######...#.....###.......*##......####...######.6 #####.....#............#.......... .....##..###................7 *...##...##.......#*...# .........###...##...........##########8 ##.......# ......#####..#...............##..............#*.....9 ....###### .............#...........###.#####*...#########....10 .............. .........#...................######......#......11 ...........*...........#........###......#.......... ...####...12 ...........##........ ..#................*..........#####......2 ............K..........#...*.........###...###.....######..... 3 *......*.######....##########......####...##*##....#........## 4 #...######....#...*#...#....K............##.......K#...#.*..#* 5 #K.......##...######...#.....###.......*##.K....####...######. 6 #####.....#............#..........*....##..###.......*........ 7 *...##...##.......#*...#K..*.....###...##...........########## 8 ##.......#K.....#####..#####...........##..............#*..... 9 ....########...........#...........###.#####*...#########..... 10 ..............#####....#..........K........######......#....K. 11 ...........*...........#........###......#..........K......### 12 ...........##........*..................*..........#####...... 13 13 .........##..........###.....###.......###.............#...... 14 ........##........................##########.......*...#..#### 15 .......##.................###....#*...............##...#...... 16 ......##.........................##......#####.............*.. 17 N....##..........*...............#........####..........####.. 14 N.......##..K....#####.......*....##########.......*...#..#### 15 ############################################################## 16 ############################################################## -
2015/30/JenniN/Karkuunomapeli/Karkuunomapeli/KarkuunomapeliContent/obj/x86/Debug/ContentPipeline.xml
r6839 r6872 36 36 <Options>None</Options> 37 37 <Output>C:\MyTemp\JenniN\Karkuunomapeli\Karkuunomapeli\Karkuunomapeli\bin\x86\Debug\Content\kentta1.xnb</Output> 38 <Time>2015-07-21T11:35:20.090066+03:00</Time> 38 <Time>2015-07-21T13:44:54.8671957+03:00</Time> 39 </Item> 40 <Item> 41 <Source>taustakuva.png</Source> 42 <Name>taustakuva</Name> 43 <Importer>TextureImporter</Importer> 44 <Processor>TextureProcessor</Processor> 45 <Options>None</Options> 46 <Output>C:\MyTemp\JenniN\Karkuunomapeli\Karkuunomapeli\Karkuunomapeli\bin\x86\Debug\Content\taustakuva.xnb</Output> 47 <Time>2015-07-21T14:43:27.4559604+03:00</Time> 39 48 </Item> 40 49 <BuildSuccessful>true</BuildSuccessful> -
2015/30/JenniN/kentta1.txt
r6839 r6872 1 1 .......................................*...........#.......... 2 .......................# ...*.........###...###.....######.....2 .......................#€..*........€###...###.....######..... 3 3 *........######....##########......####...##*##....#........## 4 #...######....# ...*#...#.................##........#...#.*..#*5 # ........##..*######...#########.......*##......####...######.4 #...######....#€..*#...#.....€...........##.......€#...#.*..#* 5 #€.......##..*######...#########.......*##......####...######. 6 6 #####.....#..##........#...............##..###................ 7 7 *...##...##.......#*...#.........###...##...........########## 8 ##...... .####...#####..#...............##..............#*.....9 ....######..##*... .....#...........###.#####*...#########....10 ######.......######....#...................######......# ......11 ...........*.....####..#........###......#........... ..####...12 .......... .##.........*#................*..........#####......13 .........##..........###.....###. ......###.............#......8 ##......€####...#####..#...............##..........€.€#*...... 9 ....######..##*...€....#...........###.#####*...#########.... 10 ######.......######....#...................######......#€..... 11 ...........*.....####..#........###......#...........€.####... 12 ..........€##.........*#................*€.........#####...... 13 .........##..........###.....###.€.....###.............#...... 14 14 ........##........####........##########.......*...#..####.... 15 15 .N.....##.................###....#*...............##...#......
Note: See TracChangeset
for help on using the changeset viewer.