Changeset 4316


Ignore:
Timestamp:
2013-06-28 12:34:36 (10 years ago)
Author:
juskovan
Message:

Talletus.

Location:
2013/26/JustusK/Rainbow_Jump/Rainbow_Jump
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • 2013/26/JustusK/Rainbow_Jump/Rainbow_Jump/Rainbow_Jump/Rainbow_Jump.cs

    r4263 r4316  
    1313    const int RUUDUN_KOKO = 40; 
    1414    Vector start; 
    15     int kenttanro = 1; 
     15    int kenttanro = 5; 
    1616    IntMeter KuolemaLaskuri; 
    1717 
     
    100100        Add(superMorko); 
    101101 
    102         FollowerBrain tasoAivot = new FollowerBrain(pelaaja1); 
     102        FollowerBrain tasoAivot = new FollowerBrain("pelaaja"); 
    103103        // tasoAivot.Speed = 100; 
    104104        superMorko.Brain = tasoAivot; 
     
    110110        pelaaja1 = new PlatformCharacter(leveys, korkeus); 
    111111        pelaaja1.Position = paikka; 
    112         pelaaja1.Mass = 4.0; 
     112        pelaaja1.Mass = 300000000000000.0; 
    113113        pelaaja1.Image = pelaajanKuva; 
     114        pelaaja1.Tag = "pelaaja"; 
    114115        AddCollisionHandler(pelaaja1, "tahti", TormaaTahteen); 
    115116        AddCollisionHandler(pelaaja1, "vihu", SiirryAlkuun); 
     
    128129    void SiirryAlkuun(PhysicsObject pelaaja, PhysicsObject kohde) 
    129130    { 
    130         pelaaja1.Position = start; 
     131        //pelaaja1.Position = start; 
     132        SeuraavaKentta(); 
    131133    } 
    132134 
     
    176178    { 
    177179        maaliAani.Play(); 
    178         MessageDisplay.Add("Sait yhden tähden lisää! :3"); 
     180        //MessageDisplay.Add("Sait yhden tähden lisää! :3"); 
    179181        tahti.Destroy(); 
    180182    } 
     
    194196        else if (kenttanro == 3) LuoKentta("kentta3"); 
    195197        else if (kenttanro == 4) LuoKentta("kentta4"); 
    196         else if (kenttanro > 4) Exit(); 
     198        else if (kenttanro == 5) LuoKentta("kentta5"); 
     199        else if (kenttanro == 6) LuoKentta("kentta6"); 
     200        else if (kenttanro == 7) LuoKentta("kentta7"); 
     201        else if (kenttanro == 8) LuoKentta("kentta8"); 
     202        else if (kenttanro > 8) Exit(); 
    197203 
    198204        Camera.Follow(pelaaja1); 
  • 2013/26/JustusK/Rainbow_Jump/Rainbow_Jump/Rainbow_JumpContent/Rainbow_JumpContent.contentproj

    r4263 r4316  
    111111    </Compile> 
    112112  </ItemGroup> 
     113  <ItemGroup> 
     114    <Compile Include="kentta5.png"> 
     115      <Name>kentta5</Name> 
     116      <Importer>TextureImporter</Importer> 
     117      <Processor>TextureProcessor</Processor> 
     118    </Compile> 
     119  </ItemGroup> 
     120  <ItemGroup> 
     121    <Compile Include="kentta6.png"> 
     122      <Name>kentta6</Name> 
     123      <Importer>TextureImporter</Importer> 
     124      <Processor>TextureProcessor</Processor> 
     125    </Compile> 
     126  </ItemGroup> 
     127  <ItemGroup> 
     128    <Compile Include="kentta7.png"> 
     129      <Name>kentta7</Name> 
     130      <Importer>TextureImporter</Importer> 
     131      <Processor>TextureProcessor</Processor> 
     132    </Compile> 
     133  </ItemGroup> 
     134  <ItemGroup> 
     135    <Compile Include="kentta8.png"> 
     136      <Name>kentta8</Name> 
     137      <Importer>TextureImporter</Importer> 
     138      <Processor>TextureProcessor</Processor> 
     139    </Compile> 
     140  </ItemGroup> 
    113141  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    114142  <!--  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.