Changeset 8930 for 2017/27/KasmirK


Ignore:
Timestamp:
2017-07-05 14:56:31 (6 years ago)
Author:
npo17_51
Message:
 
Location:
2017/27/KasmirK
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • 2017/27/KasmirK/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2.cs

    r8899 r8930  
    1212 
    1313    const double nopeus = 300; 
    14     const double hyppyNopeus = 100; 
     14    const double hyppyNopeus = 50; 
    1515    const int RUUDUN_KOKO = 60; 
    1616 
    1717    PlatformCharacter pelaaja1; 
    18  
     18    Light valo; 
    1919    Image pelaajanKuva = LoadImage("the actual thing lol"); 
    2020    Image tahtiKuva = LoadImage("tahti"); 
     
    2222    SoundEffect maaliAani = LoadSoundEffect("maali"); 
    2323 
     24    private Animation ukkelinKavely; 
    2425    public override void Begin() 
    2526    { 
    26  
    27  
    28          
     27        Gravity = new Vector(0.5, 800); 
     28        ukkelinKavely = LoadAnimation("animaatio"); 
    2929        LuoKentta(); 
    3030        LisaaNappaimet(); 
     
    3737    void LuoKentta() 
    3838    { 
    39         TileMap kentta = TileMap.FromLevelAsset("kentta1"); 
    40         kentta.SetTileMethod('#', LisaaTaso); 
    41         kentta.SetTileMethod('*', LisaaTahti); 
    42         kentta.SetTileMethod('N', LisaaPelaaja); 
    43         kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 
    44         
    45         Level.Background.CreateGradient(Color.White, Color.SkyBlue); 
     39        //ColorTileMap ruudut = ColorTileMap.FromLevelAsset("levelmap"); 
     40        //ruudut.Execute(20, 20); 
     41        GameObject tausta = new GameObject(Level.Width, Level.Height); 
     42         
     43        Add(tausta, -3); 
     44        Level.Background.CreateGradient(Color.DarkBrown, Color.Black); 
     45        Level.AmbientLight = 0.1; 
     46        valo = new Light(); 
     47        valo.Intensity = 1.4; 
     48        valo.Distance = 18; 
     49        valo.Position = pelaaja1.Position; 
     50        Add(valo); 
     51    } 
     52 
     53    protected override void Paint(Canvas canvas) 
     54    { 
     55        valo.Position = pelaaja1.Position; 
     56        base.Paint(canvas); 
    4657    } 
    4758 
     
    5061        PhysicsObject taso = PhysicsObject.CreateStaticObject(leveys, korkeus); 
    5162        taso.Position = paikka; 
    52         taso.Color = Color.ForestGreen; 
     63        taso.Color = Color.DarkBrown; 
    5364        Add(taso); 
    5465    } 
     
    6677    void LisaaPelaaja(Vector paikka, double leveys, double korkeus) 
    6778    { 
     79        
    6880        pelaaja1 = new PlatformCharacter(leveys, korkeus); 
    6981        pelaaja1.Position = paikka; 
     
    7183        pelaaja1.Image = pelaajanKuva; 
    7284        AddCollisionHandler(pelaaja1, "tahti", TormaaTahteen); 
     85        
    7386        Add(pelaaja1); 
     87     
    7488    } 
    7589 
     
    95109    { 
    96110        hahmo.Walk(nopeus); 
     111        pelaaja1.AnimWalk = ukkelinKavely; 
    97112    } 
    98113 
  • 2017/27/KasmirK/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2.csproj.Debug.cachefile

    r8899 r8930  
    77Content\mc1.xnb 
    88Content\the actual thing lol.xnb 
     9Content\moving1.xnb 
     10Content\moving2.xnb 
     11Content\animaatio.xnb 
     12Content\animaatio\moving1_0.xnb 
     13Content\animaatio\moving2_0.xnb 
     14Content\enemystudent.xnb 
     15Content\enemystudent2.xnb 
     16Content\levelmap.xnb 
  • 2017/27/KasmirK/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2/obj/x86/Debug/ContentPipeline-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}.xml

    r8899 r8930  
    7474      <Time>2017-07-04T13:15:59.8090258+03:00</Time> 
    7575    </Item> 
     76    <Item> 
     77      <Source>moving1.png</Source> 
     78      <Name>moving1</Name> 
     79      <Importer>TextureImporter</Importer> 
     80      <Processor>TextureProcessor</Processor> 
     81      <Options>None</Options> 
     82      <Output>C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\moving1.xnb</Output> 
     83      <Time>2017-07-04T14:18:15.0687076+03:00</Time> 
     84    </Item> 
     85    <Item> 
     86      <Source>moving2.png</Source> 
     87      <Name>moving2</Name> 
     88      <Importer>TextureImporter</Importer> 
     89      <Processor>TextureProcessor</Processor> 
     90      <Options>None</Options> 
     91      <Output>C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\moving2.xnb</Output> 
     92      <Time>2017-07-04T14:18:20.3416428+03:00</Time> 
     93    </Item> 
     94    <Item> 
     95      <Source>animaatio.ANIM</Source> 
     96      <Name>animaatio</Name> 
     97      <Importer>AnimationImporter</Importer> 
     98      <Processor>AnimationContentProcessor</Processor> 
     99      <Options>None</Options> 
     100      <Output>C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\animaatio.xnb</Output> 
     101      <Time>2017-07-05T10:00:20.3268099+03:00</Time> 
     102      <Request>C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\animaatio\moving1_0.xnb</Request> 
     103      <Request>C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\animaatio\moving2_0.xnb</Request> 
     104    </Item> 
     105    <Item> 
     106      <Source>animaatio\moving1.png</Source> 
     107      <Importer>TextureImporter</Importer> 
     108      <Processor>TextureProcessor</Processor> 
     109      <Options>None</Options> 
     110      <Output>C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\animaatio\moving1_0.xnb</Output> 
     111      <Time>2017-07-04T14:16:06+03:00</Time> 
     112    </Item> 
     113    <Item> 
     114      <Source>animaatio\moving2.png</Source> 
     115      <Importer>TextureImporter</Importer> 
     116      <Processor>TextureProcessor</Processor> 
     117      <Options>None</Options> 
     118      <Output>C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\animaatio\moving2_0.xnb</Output> 
     119      <Time>2017-07-04T14:17:39+03:00</Time> 
     120    </Item> 
     121    <Item> 
     122      <Source>enemystudent.png</Source> 
     123      <Name>enemystudent</Name> 
     124      <Importer>TextureImporter</Importer> 
     125      <Processor>TextureProcessor</Processor> 
     126      <Options>None</Options> 
     127      <Output>C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\enemystudent.xnb</Output> 
     128      <Time>2017-07-05T13:43:52.1288367+03:00</Time> 
     129    </Item> 
     130    <Item> 
     131      <Source>enemystudent2.png</Source> 
     132      <Name>enemystudent2</Name> 
     133      <Importer>TextureImporter</Importer> 
     134      <Processor>TextureProcessor</Processor> 
     135      <Options>None</Options> 
     136      <Output>C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\enemystudent2.xnb</Output> 
     137      <Time>2017-07-05T13:43:57.9653491+03:00</Time> 
     138    </Item> 
     139    <Item> 
     140      <Source>levelmap.png</Source> 
     141      <Name>levelmap</Name> 
     142      <Importer>TextureImporter</Importer> 
     143      <Processor>TextureProcessor</Processor> 
     144      <Options>None</Options> 
     145      <Output>C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\levelmap.xnb</Output> 
     146      <Time>2017-07-05T13:52:37.4756469+03:00</Time> 
     147    </Item> 
    76148    <BuildSuccessful>true</BuildSuccessful> 
    77149    <Settings> 
  • 2017/27/KasmirK/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2/obj/x86/Debug/Tasohyppelypeli2.csproj.FileListAbsolute.txt

    r8899 r8930  
    1515C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\mc1.xnb 
    1616C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\the actual thing lol.xnb 
     17C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\moving1.xnb 
     18C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\moving2.xnb 
     19C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\animaatio.xnb 
     20C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\animaatio\moving1_0.xnb 
     21C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\animaatio\moving2_0.xnb 
     22C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\enemystudent.xnb 
     23C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\enemystudent2.xnb 
     24C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\levelmap.xnb 
  • 2017/27/KasmirK/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2/obj/x86/Debug/cachefile-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}-targetpath.txt

    r8899 r8930  
    77Content\mc1.xnb 
    88Content\the actual thing lol.xnb 
     9Content\moving1.xnb 
     10Content\moving2.xnb 
     11Content\animaatio.xnb 
     12Content\animaatio\moving1_0.xnb 
     13Content\animaatio\moving2_0.xnb 
     14Content\enemystudent.xnb 
     15Content\enemystudent2.xnb 
     16Content\levelmap.xnb 
  • 2017/27/KasmirK/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2Content/Tasohyppelypeli2Content.contentproj

    r8899 r8930  
    110110  </ItemGroup> 
    111111  <ItemGroup> 
    112     <Compile Include="ukkelin.anim"> 
    113       <Name>ukkelin</Name> 
     112    <Compile Include="animaatio.ANIM"> 
     113      <Name>animaatio</Name> 
    114114      <Importer>AnimationImporter</Importer> 
    115115      <Processor>AnimationContentProcessor</Processor> 
     116    </Compile> 
     117  </ItemGroup> 
     118  <ItemGroup> 
     119    <Compile Include="enemystudent.png"> 
     120      <Name>enemystudent</Name> 
     121      <Importer>TextureImporter</Importer> 
     122      <Processor>TextureProcessor</Processor> 
     123    </Compile> 
     124  </ItemGroup> 
     125  <ItemGroup> 
     126    <Compile Include="enemystudent2.png"> 
     127      <Name>enemystudent2</Name> 
     128      <Importer>TextureImporter</Importer> 
     129      <Processor>TextureProcessor</Processor> 
     130    </Compile> 
     131  </ItemGroup> 
     132  <ItemGroup> 
     133    <Compile Include="levelmap.png"> 
     134      <Name>levelmap</Name> 
     135      <Importer>TextureImporter</Importer> 
     136      <Processor>TextureProcessor</Processor> 
    116137    </Compile> 
    117138  </ItemGroup> 
Note: See TracChangeset for help on using the changeset viewer.