Changeset 7554 for 2016/26


Ignore:
Timestamp:
2016-06-28 14:48:46 (3 years ago)
Author:
jehinous
Message:

Kentän lisääminen kesken,

Location:
2016/26/JennyN
Files:
7 added
8 deleted
11 edited

Legend:

Unmodified
Added
Removed
  • 2016/26/JennyN/UnicornJump/UnicornJump/UnicornJump/UnicornJump.cs

    r7551 r7554  
    1616 
    1717    Image pelaajanKuva = LoadImage("yksisarvinen"); 
    18     Image tahtiKuva = LoadImage("tahti"); 
     18    Image porkkanaKuva = LoadImage("porkkana"); 
    1919 
    2020    SoundEffect maaliAani = LoadSoundEffect("maali"); 
     
    3434    void LuoKentta() 
    3535    { 
    36         TileMap kentta = TileMap.FromLevelAsset("kentta1"); 
    37         kentta.SetTileMethod('#', LisaaTaso); 
    38         kentta.SetTileMethod('*', LisaaTahti); 
    39         kentta.SetTileMethod('N', LisaaPelaaja); 
    40         kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 
    41         Level.CreateBorders(); 
    42         Level.Background.CreateGradient(Color.White, Color.SkyBlue); 
     36        ColorTileMap ruutu = ColorTileMap.FromLevelAsset("kentta"); 
     37        ruudut.SetTileMethod(Color.FromHexCode ("FF00DC") ,LisaaPelaaja); 
     38        ruudut.SetTileMethod(Color.FromHexCode("D1D1FF"), LuoKentta); 
     39        ruudut.SetTileMethod(Color.FromHexCode ("FF8707"), LisaaTahti); 
     40 
     41        ruudut.Execute(10, 80); 
     42 
    4343    } 
    4444 
     
    5656        tahti.IgnoresCollisionResponse = true; 
    5757        tahti.Position = paikka; 
    58         tahti.Image = tahtiKuva; 
     58        tahti.Image = porkkanaKuva; 
    5959        tahti.Tag = "tahti"; 
    6060        Add(tahti); 
     
    6363    void LisaaPelaaja(Vector paikka, double leveys, double korkeus) 
    6464    { 
    65         pelaaja1 = new PlatformCharacter(leveys, korkeus); 
     65        pelaaja1 = new PlatformCharacter(leveys*1.5, korkeus); 
    6666        pelaaja1.Position = paikka; 
    6767        pelaaja1.Mass = 4.0; 
     
    102102    { 
    103103        maaliAani.Play(); 
    104         MessageDisplay.Add("Keräsit tähden!"); 
     104        MessageDisplay.Add("Hienoa!"); 
    105105        tahti.Destroy(); 
    106106    } 
  • 2016/26/JennyN/UnicornJump/UnicornJump/UnicornJump/UnicornJump.csproj.Debug.cachefile

    r7551 r7554  
    1 Content\maali.xnb 
    2 Content\norsu.xnb 
    3 Content\tahti.xnb 
    4 Content\kentta1.xnb 
    51Content\yksisarvinen.xnb 
     2Content\porkkana.xnb 
     3Content\kentta.xnb 
  • 2016/26/JennyN/UnicornJump/UnicornJump/UnicornJump/obj/x86/Debug/ContentPipeline-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}.xml

    r7551 r7554  
    22<XnaContent xmlns:Pipeline="Microsoft.Xna.Framework.Content.Pipeline"> 
    33  <Asset Type="Pipeline:BuildItemCollection"> 
    4     <Item> 
    5       <Source>maali.wav</Source> 
    6       <Name>maali</Name> 
    7       <Importer>WavImporter</Importer> 
    8       <Processor>SoundEffectProcessor</Processor> 
    9       <Options>None</Options> 
    10       <Output>C:\MyTemp\JennyN\UnicornJump\UnicornJump\UnicornJump\bin\x86\Debug\Content\maali.xnb</Output> 
    11       <Time>2016-06-28T11:22:37.5129794+03:00</Time> 
    12     </Item> 
    13     <Item> 
    14       <Source>norsu.png</Source> 
    15       <Name>norsu</Name> 
    16       <Importer>TextureImporter</Importer> 
    17       <Processor>TextureProcessor</Processor> 
    18       <Options>None</Options> 
    19       <Output>C:\MyTemp\JennyN\UnicornJump\UnicornJump\UnicornJump\bin\x86\Debug\Content\norsu.xnb</Output> 
    20       <Time>2016-06-28T11:22:37.5149796+03:00</Time> 
    21     </Item> 
    22     <Item> 
    23       <Source>tahti.png</Source> 
    24       <Name>tahti</Name> 
    25       <Importer>TextureImporter</Importer> 
    26       <Processor>TextureProcessor</Processor> 
    27       <Options>None</Options> 
    28       <Output>C:\MyTemp\JennyN\UnicornJump\UnicornJump\UnicornJump\bin\x86\Debug\Content\tahti.xnb</Output> 
    29       <Time>2016-06-28T11:22:37.5159797+03:00</Time> 
    30     </Item> 
    31     <Item> 
    32       <Source>kentta1.txt</Source> 
    33       <Name>kentta1</Name> 
    34       <Importer>TextFileImporter</Importer> 
    35       <Processor>TextFileContentProcessor</Processor> 
    36       <Options>None</Options> 
    37       <Output>C:\MyTemp\JennyN\UnicornJump\UnicornJump\UnicornJump\bin\x86\Debug\Content\kentta1.xnb</Output> 
    38       <Time>2016-06-28T11:22:37.508979+03:00</Time> 
    39     </Item> 
    404    <Item> 
    415      <Source>yksisarvinen.jpg</Source> 
     
    4610      <Output>C:\MyTemp\JennyN\UnicornJump\UnicornJump\UnicornJump\bin\x86\Debug\Content\yksisarvinen.xnb</Output> 
    4711      <Time>2016-06-28T11:26:15.2589596+03:00</Time> 
     12    </Item> 
     13    <Item> 
     14      <Source>porkkana.png</Source> 
     15      <Name>porkkana</Name> 
     16      <Importer>TextureImporter</Importer> 
     17      <Processor>TextureProcessor</Processor> 
     18      <Options>None</Options> 
     19      <Output>C:\MyTemp\JennyN\UnicornJump\UnicornJump\UnicornJump\bin\x86\Debug\Content\porkkana.xnb</Output> 
     20      <Time>2016-06-28T13:32:04.3986878+03:00</Time> 
     21    </Item> 
     22    <Item> 
     23      <Source>kentta.png</Source> 
     24      <Name>kentta</Name> 
     25      <Importer>TextureImporter</Importer> 
     26      <Processor>TextureProcessor</Processor> 
     27      <Options>None</Options> 
     28      <Output>C:\MyTemp\JennyN\UnicornJump\UnicornJump\UnicornJump\bin\x86\Debug\Content\kentta.xnb</Output> 
     29      <Time>2016-06-28T14:14:55.4658112+03:00</Time> 
    4830    </Item> 
    4931    <BuildSuccessful>true</BuildSuccessful> 
  • 2016/26/JennyN/UnicornJump/UnicornJump/UnicornJump/obj/x86/Debug/UnicornJump.csproj.FileListAbsolute.txt

    r7551 r7554  
    1 C:\MyTemp\JennyN\UnicornJump\UnicornJump\UnicornJump\bin\x86\Debug\Content\maali.xnb 
    2 C:\MyTemp\JennyN\UnicornJump\UnicornJump\UnicornJump\bin\x86\Debug\Content\norsu.xnb 
    3 C:\MyTemp\JennyN\UnicornJump\UnicornJump\UnicornJump\bin\x86\Debug\Content\tahti.xnb 
    4 C:\MyTemp\JennyN\UnicornJump\UnicornJump\UnicornJump\bin\x86\Debug\Content\kentta1.xnb 
    51C:\MyTemp\JennyN\UnicornJump\UnicornJump\UnicornJump\bin\x86\Debug\UnicornJump.exe 
    62C:\MyTemp\JennyN\UnicornJump\UnicornJump\UnicornJump\bin\x86\Debug\UnicornJump.pdb 
     
    128C:\MyTemp\JennyN\UnicornJump\UnicornJump\UnicornJump\obj\x86\Debug\UnicornJump.pdb 
    139C:\MyTemp\JennyN\UnicornJump\UnicornJump\UnicornJump\bin\x86\Debug\Content\yksisarvinen.xnb 
     10C:\MyTemp\JennyN\UnicornJump\UnicornJump\UnicornJump\bin\x86\Debug\Content\porkkana.xnb 
     11C:\MyTemp\JennyN\UnicornJump\UnicornJump\UnicornJump\bin\x86\Debug\Content\kentta.xnb 
  • 2016/26/JennyN/UnicornJump/UnicornJump/UnicornJump/obj/x86/Debug/cachefile-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}-targetpath.txt

    r7551 r7554  
    1 Content\maali.xnb 
    2 Content\norsu.xnb 
    3 Content\tahti.xnb 
    4 Content\kentta1.xnb 
    51Content\yksisarvinen.xnb 
     2Content\porkkana.xnb 
     3Content\kentta.xnb 
  • 2016/26/JennyN/UnicornJump/UnicornJump/UnicornJumpContent/UnicornJumpContent.contentproj

    r7551 r7554  
    4646  </ItemGroup> 
    4747  <ItemGroup> 
    48     <Compile Include="maali.wav"> 
    49       <Name>maali</Name> 
    50       <Importer>WavImporter</Importer> 
    51       <Processor>SoundEffectProcessor</Processor> 
    52     </Compile> 
    53     <Compile Include="norsu.png"> 
    54       <Name>norsu</Name> 
     48    <Compile Include="yksisarvinen.jpg"> 
     49      <Name>yksisarvinen</Name> 
    5550      <Importer>TextureImporter</Importer> 
    5651      <Processor>TextureProcessor</Processor> 
    5752    </Compile> 
    58     <Compile Include="tahti.png"> 
    59       <Name>tahti</Name> 
     53  </ItemGroup> 
     54  <ItemGroup> 
     55    <Compile Include="porkkana.png"> 
     56      <Name>porkkana</Name> 
    6057      <Importer>TextureImporter</Importer> 
    6158      <Processor>TextureProcessor</Processor> 
    6259    </Compile> 
    63     <Compile Include="kentta1.txt"> 
    64       <Name>kentta1</Name> 
    65       <Importer>TextFileImporter</Importer> 
    66       <Processor>TextFileContentProcessor</Processor> 
    67     </Compile> 
    6860  </ItemGroup> 
    6961  <ItemGroup> 
    70     <Compile Include="yksisarvinen.jpg"> 
    71       <Name>yksisarvinen</Name> 
     62    <Compile Include="kentta.png"> 
     63      <Name>kentta</Name> 
    7264      <Importer>TextureImporter</Importer> 
    7365      <Processor>TextureProcessor</Processor> 
Note: See TracChangeset for help on using the changeset viewer.