Changeset 6872 for 2015


Ignore:
Timestamp:
2015-07-21 14:57:59 (8 years ago)
Author:
jupipana
Message:
 
Location:
2015/30/JenniN
Files:
3 added
13 edited

Legend:

Unmodified
Added
Removed
  • 2015/30/JenniN/Karkuunomapeli/Karkuunomapeli/Karkuunomapeli/Karkuunomapeli.cs

    r6839 r6872  
    1212    const double hyppyNopeus = 750; 
    1313    const int RUUDUN_KOKO = 40; 
    14  
     14      
     15   
    1516    PlatformCharacter pelaaja1; 
    1617 
    1718    //Image pelaajanKuva = LoadImage("norsu"); 
    1819    //Image tahtiKuva = LoadImage("tahti"); 
     20    Image taustaKuva = LoadImage("taustakuva"); 
    1921 
    2022    SoundEffect maaliAani = LoadSoundEffect("maali"); 
     
    3133        Camera.ZoomFactor = 1.2; 
    3234        Camera.StayInLevel = true; 
     35 
     36        Level.Background.Image = taustaKuva; 
     37         
    3338    } 
    3439 
     
    3944        kentta.SetTileMethod('*', LisaaTahti); 
    4045        kentta.SetTileMethod('N', LisaaPelaaja); 
     46        kentta.SetTileMethod('K', LisaaEste); 
    4147         
    4248        kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 
     
    4450        Level.Background.CreateGradient(Color.White, Color.SkyBlue); 
    4551    } 
    46  
     52     
    4753 
    4854 
     
    8187        pelaaja1.Color = Color.HanPurple; 
    8288        AddCollisionHandler(pelaaja1, "tahti", TormaaTahteen); 
     89        AddCollisionHandler(pelaaja1, "este", TormaaEsteeseen); 
     90 
    8391        Add(pelaaja1); 
    8492    } 
    8593 
    8694 
    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) 
    8899    { 
    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 
    90107    } 
    91108 
     
    124141        tahti.Destroy(); 
    125142    } 
     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   
    126161} 
  • 2015/30/JenniN/Karkuunomapeli/Karkuunomapeli/Karkuunomapeli/Karkuunomapeli.csproj.Debug.cachefile

    r6839 r6872  
    33Content\tahti.xnb 
    44Content\kentta1.xnb 
     5Content\taustakuva.xnb 
  • 2015/30/JenniN/Karkuunomapeli/Karkuunomapeli/Karkuunomapeli/obj/x86/Debug/Karkuunomapeli.csproj.FileListAbsolute.txt

    r6839 r6872  
    1111C:\MyTemp\JenniN\Karkuunomapeli\Karkuunomapeli\Karkuunomapeli\obj\x86\Debug\Karkuunomapeli.exe 
    1212C:\MyTemp\JenniN\Karkuunomapeli\Karkuunomapeli\Karkuunomapeli\obj\x86\Debug\Karkuunomapeli.pdb 
     13C:\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  
    33Content\tahti.xnb 
    44Content\kentta1.xnb 
     5Content\taustakuva.xnb 
  • 2015/30/JenniN/Karkuunomapeli/Karkuunomapeli/KarkuunomapeliContent/KarkuunomapeliContent.contentproj

    r6839 r6872  
    6969    </Compile> 
    7070  </ItemGroup> 
     71  <ItemGroup> 
     72    <Compile Include="taustakuva.png"> 
     73      <Name>taustakuva</Name> 
     74      <Importer>TextureImporter</Importer> 
     75      <Processor>TextureProcessor</Processor> 
     76    </Compile> 
     77  </ItemGroup> 
    7178  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    7279  <!--  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  
    11.......................................*...........#.......... 
    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...........##........*..................*..........#####...... 
    1313.........##..........###.....###.......###.............#...... 
    14 ........##........................##########.......*...#..#### 
    15 .......##.................###....#*...............##...#...... 
    16 ......##.........................##......#####.............*.. 
    17 N....##..........*...............#........####..........####.. 
     14N.......##..K....#####.......*....##########.......*...#..#### 
     15############################################################## 
     16############################################################## 
  • 2015/30/JenniN/Karkuunomapeli/Karkuunomapeli/KarkuunomapeliContent/obj/x86/Debug/ContentPipeline.xml

    r6839 r6872  
    3636      <Options>None</Options> 
    3737      <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> 
    3948    </Item> 
    4049    <BuildSuccessful>true</BuildSuccessful> 
  • 2015/30/JenniN/kentta1.txt

    r6839 r6872  
    11.......................................*...........#.......... 
    2 .......................#...*.........###...###.....######..... 
     2.......................#€..*........€###...###.....######..... 
    33*........######....##########......####...##*##....#........## 
    4 #...######....#...*#...#.................##........#...#.*..#* 
    5 #........##..*######...#########.......*##......####...######. 
     4#...######....#€..*#...#.....€...........##.......€#...#.*..#* 
     5#€.......##..*######...#########.......*##......####...######. 
    66#####.....#..##........#...............##..###................ 
    77*...##...##.......#*...#.........###...##...........########## 
    8 ##.......####...#####..#...............##..............#*..... 
    9 ....######..##*........#...........###.#####*...#########.... 
    10 ######.......######....#...................######......#...... 
    11 ...........*.....####..#........###......#.............####... 
    12 ...........##.........*#................*..........#####...... 
    13 .........##..........###.....###.......###.............#...... 
     8##......€####...#####..#...............##..........€.€#*...... 
     9....######..##*...€....#...........###.#####*...#########.... 
     10######.......######....#...................######......#€..... 
     11...........*.....####..#........###......#...........€.####... 
     12..........€##.........*#................*€.........#####...... 
     13.........##..........###.....###.€.....###.............#...... 
    1414........##........####........##########.......*...#..####.... 
    1515.N.....##.................###....#*...............##...#...... 
Note: See TracChangeset for help on using the changeset viewer.