Changeset 6271 for 2015


Ignore:
Timestamp:
2015-06-24 15:08:02 (4 years ago)
Author:
rokatuov
Message:
 
Location:
2015/26/RonjaT/Myohassa
Files:
11 added
13 edited

Legend:

Unmodified
Added
Removed
  • 2015/26/RonjaT/Myohassa/Myohassa/Myohassa/Myohassa.cs

    r6194 r6271  
    1717    Image pelaajanKuva = LoadImage("norsu"); 
    1818    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"); 
    2023    SoundEffect maaliAani = LoadSoundEffect("maali"); 
    2124 
     
    3740        kentta.SetTileMethod('#', LisaaTaso); 
    3841        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        
    4047        kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 
    4148        Level.CreateBorders(); 
     
    6168    } 
    6269 
    63     void LisaaPelaaja(Vector paikka, double leveys, double korkeus) 
     70    void LisaaHaakimppu(Vector paikka, double leveys, double korkeus) 
    6471    { 
    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); 
    6693        pelaaja1.Position = paikka; 
    6794        pelaaja1.Mass = 4.0; 
    68         pelaaja1.Image = pelaajanKuva; 
     95        pelaaja1.Image = hahmonKuva; 
    6996        AddCollisionHandler(pelaaja1, "tahti", TormaaTahteen); 
    7097        Add(pelaaja1); 
    7198    } 
    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    } 
    73107    void LisaaNappaimet() 
    74108    { 
  • 2015/26/RonjaT/Myohassa/Myohassa/Myohassa/Myohassa.csproj.Debug.cachefile

    r6194 r6271  
    33Content\tahti.xnb 
    44Content\kentta1.xnb 
     5Content\Emma.xnb 
     6Content\Jeremi.xnb 
     7Content\Haakimppu.xnb 
     8Content\kakku.xnb 
  • 2015/26/RonjaT/Myohassa/Myohassa/Myohassa/obj/x86/Debug/Myohassa.csproj.FileListAbsolute.txt

    r6194 r6271  
    1111C:\MyTemp\RonjaT\Myohassa\Myohassa\Myohassa\obj\x86\Debug\Myohassa.exe 
    1212C:\MyTemp\RonjaT\Myohassa\Myohassa\Myohassa\obj\x86\Debug\Myohassa.pdb 
     13C:\MyTemp\RonjaT\Myohassa\Myohassa\Myohassa\bin\x86\Debug\Content\Emma.xnb 
     14C:\MyTemp\RonjaT\Myohassa\Myohassa\Myohassa\bin\x86\Debug\Content\Jeremi.xnb 
     15C:\MyTemp\RonjaT\Myohassa\Myohassa\Myohassa\bin\x86\Debug\Content\Haakimppu.xnb 
     16C:\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  
    33Content\tahti.xnb 
    44Content\kentta1.xnb 
     5Content\Emma.xnb 
     6Content\Jeremi.xnb 
     7Content\Haakimppu.xnb 
     8Content\kakku.xnb 
  • 2015/26/RonjaT/Myohassa/Myohassa/MyohassaContent/MyohassaContent.contentproj

    r6194 r6271  
    6767    </Compile> 
    6868  </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> 
    6997  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    7098  <!--  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  
    22........................... 
    33........................... 
    4 .........................................................................................................################################################################################ 
     4..............................................................K..............K...........................################################################################################ 
    55..................................................#####......##.......#.....##...........................################################################################################ 
    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......################################################# 
     11E....H.K..............................############################################.H...#.....#..........####....................#......################################################# 
     12############....###............###################################################################.......####................K..........################################################# 
     13.............................................................................................................................#..H.# 
     14H..........#.#.........#######...............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....#           ## 
    2020########################################################################################################################################################################################## 
  • 2015/26/RonjaT/Myohassa/Myohassa/MyohassaContent/obj/x86/Debug/ContentPipeline-.xml

    r6194 r6271  
    3636      <Options>None</Options> 
    3737      <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> 
    3975    </Item> 
    4076    <BuildSuccessful>true</BuildSuccessful> 
Note: See TracChangeset for help on using the changeset viewer.