Changeset 5416


Ignore:
Timestamp:
2014-07-04 11:15:55 (5 years ago)
Author:
nikranna
Message:
 
Location:
2014/27/NikoA
Files:
5 added
18 edited

Legend:

Unmodified
Added
Removed
  • 2014/27/NikoA/kokeilu/kokeilu/kokeilu/kokeilu.cs

    r5411 r5416  
    99public class kokeilu : PhysicsGame 
    1010{ 
    11     const double nopeus = 200; 
    12     const double hyppyNopeus = 700; 
     11    const double nopeus = 300; 
     12    const double hyppyNopeus = 800; 
    1313    const int RUUDUN_KOKO = 30; 
    1414    IntMeter pisteLaskuri; 
     
    3434 
    3535        Camera.Follow(pelaaja1); 
    36         Camera.ZoomFactor = 1.2; 
     36        Camera.ZoomFactor = 1.8; 
    3737        Camera.StayInLevel = true; 
     38 
     39 
     40        MediaPlayer.Play("elliot_berger"); 
     41        MediaPlayer.IsRepeating = true; 
     42 
    3843    } 
    3944 
    4045    void LuoKentta() 
    4146    { 
    42         TileMap kentta = TileMap.FromLevelAsset("kentta1"); 
    43         kentta.SetTileMethod('#', LisaaTaso); 
    44         kentta.SetTileMethod('*', LisaaTahti); 
    45         kentta.SetTileMethod('N', LisaaPelaaja); 
    46         kentta.SetTileMethod('V', LuoVihu); 
    47         kentta.SetTileMethod('x', LisaaAnsa); 
    48         kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 
     47        
     48        ColorTileMap ruudut = ColorTileMap.FromLevelAsset("kenttapaint"); 
     49        ruudut.SetTileMethod(Color.FromHexCode("267F00"), LisaaPelaaja); 
     50        ruudut.SetTileMethod(Color.FromHexCode("000000"), LisaaTaso); 
     51        ruudut.SetTileMethod(Color.FromHexCode("0026FF"), LisaaTahti); 
     52        ruudut.SetTileMethod(Color.FromHexCode("FF0000"), LuoVihu); 
     53        ruudut.SetTileMethod(Color.FromHexCode("FFD800"), LisaaAnsa); 
     54        ruudut.Execute(60, 50); 
    4955        Level.CreateBorders(); 
    5056        //Level.Background.CreateGradient(Color.White, Color.White); 
     
    5965        taso.Image = LoadImage("texture"); 
    6066        Add(taso); 
     67        
    6168    } 
    6269 
     
    8087        AddCollisionHandler(pelaaja1, "ansa", TormaaAnsaan); 
    8188        AddCollisionHandler(pelaaja1, "vihu", TormaaVihuun); 
    82         pelaaja1.Height = 40; 
    83         pelaaja1.Width = 40; 
     89        pelaaja1.Height = 60; 
     90        pelaaja1.Width = 60; 
    8491        Add(pelaaja1); 
    8592 
     
    160167        Norsu.Brain = tasoAivot; 
    161168        Norsu.Tag = "vihu"; 
     169        Norsu.Position = paikka; 
    162170 
    163171 
  • 2014/27/NikoA/kokeilu/kokeilu/kokeilu/kokeilu.csproj.Debug.cachefile

    r5362 r5416  
    1515Content\Megusta.xnb 
    1616Content\Dogecoin.xnb 
     17Content\kenttapaint.xnb 
     18Content\elliot_berger.xnb 
     19Content\elliot_berger.wma 
  • 2014/27/NikoA/kokeilu/kokeilu/kokeilu/obj/x86/Debug/ContentPipeline-{44E802C6-CBAF-4358-82D1-537B47A53768}.xml

    r5362 r5416  
    126126      <Options>None</Options> 
    127127      <Output>C:\MyTemp\NikoA\kokeilu\kokeilu\kokeilu\bin\x86\Debug\Content\piikki.xnb</Output> 
    128       <Time>2014-07-03T13:38:37.8502853+03:00</Time> 
     128      <Time>2014-07-04T11:12:57.8358257+03:00</Time> 
    129129    </Item> 
    130130    <Item> 
     
    145145      <Output>C:\MyTemp\NikoA\kokeilu\kokeilu\kokeilu\bin\x86\Debug\Content\Dogecoin.xnb</Output> 
    146146      <Time>2014-07-03T14:16:53.9632605+03:00</Time> 
     147    </Item> 
     148    <Item> 
     149      <Source>kenttapaint.png</Source> 
     150      <Name>kenttapaint</Name> 
     151      <Importer>TextureImporter</Importer> 
     152      <Processor>TextureProcessor</Processor> 
     153      <Options>None</Options> 
     154      <Output>C:\MyTemp\NikoA\kokeilu\kokeilu\kokeilu\bin\x86\Debug\Content\kenttapaint.xnb</Output> 
     155      <Time>2014-07-04T11:06:25.4345895+03:00</Time> 
     156    </Item> 
     157    <Item> 
     158      <Source>elliot_berger.mp3</Source> 
     159      <Name>elliot_berger</Name> 
     160      <Importer>Mp3Importer</Importer> 
     161      <Processor>SongProcessor</Processor> 
     162      <Options>None</Options> 
     163      <Output>C:\MyTemp\NikoA\kokeilu\kokeilu\kokeilu\bin\x86\Debug\Content\elliot_berger.xnb</Output> 
     164      <Extra>C:\MyTemp\NikoA\kokeilu\kokeilu\kokeilu\bin\x86\Debug\Content\elliot_berger.wma</Extra> 
     165      <Time>2014-07-04T11:08:08.1278578+03:00</Time> 
    147166    </Item> 
    148167    <BuildSuccessful>true</BuildSuccessful> 
  • 2014/27/NikoA/kokeilu/kokeilu/kokeilu/obj/x86/Debug/cachefile-{44E802C6-CBAF-4358-82D1-537B47A53768}-targetpath.txt

    r5362 r5416  
    1515Content\Megusta.xnb 
    1616Content\Dogecoin.xnb 
     17Content\kenttapaint.xnb 
     18Content\elliot_berger.xnb 
     19Content\elliot_berger.wma 
  • 2014/27/NikoA/kokeilu/kokeilu/kokeilu/obj/x86/Debug/kokeilu.csproj.FileListAbsolute.txt

    r5362 r5416  
    2323C:\MyTemp\NikoA\kokeilu\kokeilu\kokeilu\bin\x86\Debug\Content\Megusta.xnb 
    2424C:\MyTemp\NikoA\kokeilu\kokeilu\kokeilu\bin\x86\Debug\Content\Dogecoin.xnb 
     25C:\MyTemp\NikoA\kokeilu\kokeilu\kokeilu\bin\x86\Debug\Content\kenttapaint.xnb 
     26C:\MyTemp\NikoA\kokeilu\kokeilu\kokeilu\bin\x86\Debug\Content\elliot_berger.xnb 
     27C:\MyTemp\NikoA\kokeilu\kokeilu\kokeilu\bin\x86\Debug\Content\elliot_berger.wma 
  • 2014/27/NikoA/kokeilu/kokeilu/kokeiluContent/kokeiluContent.contentproj

    r5362 r5416  
    151151    </Compile> 
    152152  </ItemGroup> 
     153  <ItemGroup> 
     154    <Compile Include="kenttapaint.png"> 
     155      <Name>kenttapaint</Name> 
     156      <Importer>TextureImporter</Importer> 
     157      <Processor>TextureProcessor</Processor> 
     158    </Compile> 
     159  </ItemGroup> 
     160  <ItemGroup> 
     161    <Compile Include="elliot_berger.mp3"> 
     162      <Name>elliot_berger</Name> 
     163      <Importer>Mp3Importer</Importer> 
     164      <Processor>SongProcessor</Processor> 
     165    </Compile> 
     166  </ItemGroup> 
    153167  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    154168  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
Note: See TracChangeset for help on using the changeset viewer.