Changeset 3913


Ignore:
Timestamp:
2012-12-08 15:00:09 (7 years ago)
Author:
jypeleht
Message:
 
Location:
2012/10-20/AkiP/GemGrabberFinal
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • 2012/10-20/AkiP/GemGrabberFinal/GemGrabberFinal/GemGrabberFinal/GemGrabberFinal.cs

    r3897 r3913  
    1212    const double hyppyNopeus = 750; 
    1313    const int RUUDUN_KOKO = 40; 
    14     const double kuulanopeus = 1200; 
     14    const double kuulanopeus = 900; 
    1515 
    1616    PlatformCharacter pelaaja1; 
     
    2323    Image pelaajanKuva = LoadImage("Grabber"); 
    2424    Image tahtiKuva = LoadImage("Gem"); 
     25    //Image palloYksi = LoadImage("EnergyBallFinal1"); 
     26    //Image palloKaksi = LoadImage("EnergyBallFinal2"); 
     27    //Image palloKolme = LoadImage("EnergyBallFinal3"); 
     28    //Image palloNeljä = LoadImage("EnergyBallFinal4"); 
     29    //Image palloViisi = LoadImage("EnergyBallFinal5"); 
     30 
     31    private Image[] pallonHehku = LoadImages("EnergyBallFinal1", "EnergyBallFinal2", "EnergyBallFinal3", "EnergyBallFinal4", "EnergyBallFinal5"); 
     32    private Image[] jalokiviKiilto = LoadImages("GemShineFinal1(1)", "GemShineFinal2(1)", "GemShineFinal3(1)", "GemShineFinal4(1)"); 
    2533 
    2634    SoundEffect maaliAani = LoadSoundEffect("maali"); 
     
    4755        kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 
    4856        Level.CreateBorders(); 
    49         Level.Background.CreateGradient(Color.SkyBlue, Color.Black); 
     57        //Level.Background.CreateGradient(Color.SkyBlue, Color.Black); 
     58        Level.Background.CreateStars(); 
    5059    } 
    5160 
     
    5463        PhysicsObject taso = PhysicsObject.CreateStaticObject(leveys, korkeus); 
    5564        taso.Position = paikka; 
    56         taso.Color = Color.Green; 
     65        taso.Color = Color.Brown; 
    5766        taso.Tag = "maa"; 
    5867        taso.IsVisible = true; 
     
    6574        pallo.Shape = Shape.Circle; 
    6675        pallo.Position = paikka; 
     76        //pallo.Image = palloYksi; 
     77        pallo.Animation = new Animation(pallonHehku); 
     78        pallo.Animation.Start(); 
    6779        pallo.Tag = "pallo"; 
    6880        pallo.Restitution = 1.0; 
     
    8294        tahti.Position = paikka; 
    8395        tahti.Image = tahtiKuva; 
     96        //tahti.Animation = new Animation(jalokiviKiilto); 
     97        tahti.Animation.Start(); 
    8498        tahti.Tag = "tahti"; 
    8599        Add(tahti); 
     
    91105        pelaaja1.Position = paikka; 
    92106        pelaaja1.Mass = 4.0; 
    93         pelaaja1.Restitution = 1.0; 
     107        pelaaja1.Restitution = 0.0; 
    94108        pelaaja1.KineticFriction = 0.0; 
    95109        pelaaja1.Image = pelaajanKuva; 
     
    114128        naytto.Y = y; 
    115129        naytto.TextColor = Color.Black; 
    116         naytto.BorderColor = Level.BackgroundColor; 
    117         naytto.Color = Level.BackgroundColor; 
     130        //naytto.BorderColor = Level.BackgroundColor; 
     131        //naytto.Color = Level.BackgroundColor; 
    118132        Add(naytto); 
    119133 
  • 2012/10-20/AkiP/GemGrabberFinal/GemGrabberFinal/GemGrabberFinal/GemGrabberFinal.csproj.Debug.cachefile

    r3897 r3913  
    33Content\Grabber.xnb 
    44Content\maali.xnb 
     5Content\EnergyBallFinal1.xnb 
     6Content\EnergyBallFinal2.xnb 
     7Content\EnergyBallFinal3.xnb 
     8Content\EnergyBallFinal4.xnb 
     9Content\EnergyBallFinal5.xnb 
     10Content\GemShineFinal1(1).xnb 
     11Content\GemShineFinal2(1).xnb 
     12Content\GemShineFinal3(1).xnb 
     13Content\GemShineFinal4(1).xnb 
  • 2012/10-20/AkiP/GemGrabberFinal/GemGrabberFinal/GemGrabberFinal/obj/x86/Debug/ContentPipeline-{9A8C8EBD-5E73-4299-986A-975EB0596FDF}.xml

    r3897 r3913  
    3737      <Output>C:\MyTemp\ohjelmointikerho\AkiP\GemGrabberFinal\GemGrabberFinal\GemGrabberFinal\bin\x86\Debug\Content\maali.xnb</Output> 
    3838      <Time>2012-12-08T10:39:19.7705476+02:00</Time> 
     39    </Item> 
     40    <Item> 
     41      <Source>EnergyBallFinal1.png</Source> 
     42      <Name>EnergyBallFinal1</Name> 
     43      <Importer>TextureImporter</Importer> 
     44      <Processor>TextureProcessor</Processor> 
     45      <Options>None</Options> 
     46      <Output>C:\MyTemp\ohjelmointikerho\AkiP\GemGrabberFinal\GemGrabberFinal\GemGrabberFinal\bin\x86\Debug\Content\EnergyBallFinal1.xnb</Output> 
     47      <Time>2012-12-08T12:00:24.8505476+02:00</Time> 
     48    </Item> 
     49    <Item> 
     50      <Source>EnergyBallFinal2.png</Source> 
     51      <Name>EnergyBallFinal2</Name> 
     52      <Importer>TextureImporter</Importer> 
     53      <Processor>TextureProcessor</Processor> 
     54      <Options>None</Options> 
     55      <Output>C:\MyTemp\ohjelmointikerho\AkiP\GemGrabberFinal\GemGrabberFinal\GemGrabberFinal\bin\x86\Debug\Content\EnergyBallFinal2.xnb</Output> 
     56      <Time>2012-12-08T12:00:38.8047476+02:00</Time> 
     57    </Item> 
     58    <Item> 
     59      <Source>EnergyBallFinal3.png</Source> 
     60      <Name>EnergyBallFinal3</Name> 
     61      <Importer>TextureImporter</Importer> 
     62      <Processor>TextureProcessor</Processor> 
     63      <Options>None</Options> 
     64      <Output>C:\MyTemp\ohjelmointikerho\AkiP\GemGrabberFinal\GemGrabberFinal\GemGrabberFinal\bin\x86\Debug\Content\EnergyBallFinal3.xnb</Output> 
     65      <Time>2012-12-08T12:00:45.8757476+02:00</Time> 
     66    </Item> 
     67    <Item> 
     68      <Source>EnergyBallFinal4.png</Source> 
     69      <Name>EnergyBallFinal4</Name> 
     70      <Importer>TextureImporter</Importer> 
     71      <Processor>TextureProcessor</Processor> 
     72      <Options>None</Options> 
     73      <Output>C:\MyTemp\ohjelmointikerho\AkiP\GemGrabberFinal\GemGrabberFinal\GemGrabberFinal\bin\x86\Debug\Content\EnergyBallFinal4.xnb</Output> 
     74      <Time>2012-12-08T12:00:53.1891476+02:00</Time> 
     75    </Item> 
     76    <Item> 
     77      <Source>EnergyBallFinal5.png</Source> 
     78      <Name>EnergyBallFinal5</Name> 
     79      <Importer>TextureImporter</Importer> 
     80      <Processor>TextureProcessor</Processor> 
     81      <Options>None</Options> 
     82      <Output>C:\MyTemp\ohjelmointikerho\AkiP\GemGrabberFinal\GemGrabberFinal\GemGrabberFinal\bin\x86\Debug\Content\EnergyBallFinal5.xnb</Output> 
     83      <Time>2012-12-08T12:01:00.1671476+02:00</Time> 
     84    </Item> 
     85    <Item> 
     86      <Source>GemShineFinal1(1).png</Source> 
     87      <Name>GemShineFinal1(1)</Name> 
     88      <Importer>TextureImporter</Importer> 
     89      <Processor>TextureProcessor</Processor> 
     90      <Options>None</Options> 
     91      <Output>C:\MyTemp\ohjelmointikerho\AkiP\GemGrabberFinal\GemGrabberFinal\GemGrabberFinal\bin\x86\Debug\Content\GemShineFinal1(1).xnb</Output> 
     92      <Time>2012-12-08T12:39:53.6512834+02:00</Time> 
     93    </Item> 
     94    <Item> 
     95      <Source>GemShineFinal2(1).png</Source> 
     96      <Name>GemShineFinal2(1)</Name> 
     97      <Importer>TextureImporter</Importer> 
     98      <Processor>TextureProcessor</Processor> 
     99      <Options>None</Options> 
     100      <Output>C:\MyTemp\ohjelmointikerho\AkiP\GemGrabberFinal\GemGrabberFinal\GemGrabberFinal\bin\x86\Debug\Content\GemShineFinal2(1).xnb</Output> 
     101      <Time>2012-12-08T12:40:05.9376919+02:00</Time> 
     102    </Item> 
     103    <Item> 
     104      <Source>GemShineFinal3(1).png</Source> 
     105      <Name>GemShineFinal3(1)</Name> 
     106      <Importer>TextureImporter</Importer> 
     107      <Processor>TextureProcessor</Processor> 
     108      <Options>None</Options> 
     109      <Output>C:\MyTemp\ohjelmointikerho\AkiP\GemGrabberFinal\GemGrabberFinal\GemGrabberFinal\bin\x86\Debug\Content\GemShineFinal3(1).xnb</Output> 
     110      <Time>2012-12-08T12:40:23.3784919+02:00</Time> 
     111    </Item> 
     112    <Item> 
     113      <Source>GemShineFinal4(1).png</Source> 
     114      <Name>GemShineFinal4(1)</Name> 
     115      <Importer>TextureImporter</Importer> 
     116      <Processor>TextureProcessor</Processor> 
     117      <Options>None</Options> 
     118      <Output>C:\MyTemp\ohjelmointikerho\AkiP\GemGrabberFinal\GemGrabberFinal\GemGrabberFinal\bin\x86\Debug\Content\GemShineFinal4(1).xnb</Output> 
     119      <Time>2012-12-08T12:40:32.9614919+02:00</Time> 
    39120    </Item> 
    40121    <BuildSuccessful>true</BuildSuccessful> 
  • 2012/10-20/AkiP/GemGrabberFinal/GemGrabberFinal/GemGrabberFinal/obj/x86/Debug/GemGrabberFinal.csproj.FileListAbsolute.txt

    r3897 r3913  
    1111C:\MyTemp\ohjelmointikerho\AkiP\GemGrabberFinal\GemGrabberFinal\GemGrabberFinal\obj\x86\Debug\GemGrabberFinal.pdb 
    1212C:\MyTemp\ohjelmointikerho\AkiP\GemGrabberFinal\GemGrabberFinal\GemGrabberFinal\bin\x86\Debug\Content\maali.xnb 
     13C:\MyTemp\ohjelmointikerho\AkiP\GemGrabberFinal\GemGrabberFinal\GemGrabberFinal\bin\x86\Debug\Content\EnergyBallFinal1.xnb 
     14C:\MyTemp\ohjelmointikerho\AkiP\GemGrabberFinal\GemGrabberFinal\GemGrabberFinal\bin\x86\Debug\Content\EnergyBallFinal2.xnb 
     15C:\MyTemp\ohjelmointikerho\AkiP\GemGrabberFinal\GemGrabberFinal\GemGrabberFinal\bin\x86\Debug\Content\EnergyBallFinal3.xnb 
     16C:\MyTemp\ohjelmointikerho\AkiP\GemGrabberFinal\GemGrabberFinal\GemGrabberFinal\bin\x86\Debug\Content\EnergyBallFinal4.xnb 
     17C:\MyTemp\ohjelmointikerho\AkiP\GemGrabberFinal\GemGrabberFinal\GemGrabberFinal\bin\x86\Debug\Content\EnergyBallFinal5.xnb 
     18C:\MyTemp\ohjelmointikerho\AkiP\GemGrabberFinal\GemGrabberFinal\GemGrabberFinal\bin\x86\Debug\Content\GemShineFinal1(1).xnb 
     19C:\MyTemp\ohjelmointikerho\AkiP\GemGrabberFinal\GemGrabberFinal\GemGrabberFinal\bin\x86\Debug\Content\GemShineFinal2(1).xnb 
     20C:\MyTemp\ohjelmointikerho\AkiP\GemGrabberFinal\GemGrabberFinal\GemGrabberFinal\bin\x86\Debug\Content\GemShineFinal3(1).xnb 
     21C:\MyTemp\ohjelmointikerho\AkiP\GemGrabberFinal\GemGrabberFinal\GemGrabberFinal\bin\x86\Debug\Content\GemShineFinal4(1).xnb 
  • 2012/10-20/AkiP/GemGrabberFinal/GemGrabberFinal/GemGrabberFinal/obj/x86/Debug/cachefile-{9A8C8EBD-5E73-4299-986A-975EB0596FDF}-targetpath.txt

    r3897 r3913  
    33Content\Grabber.xnb 
    44Content\maali.xnb 
     5Content\EnergyBallFinal1.xnb 
     6Content\EnergyBallFinal2.xnb 
     7Content\EnergyBallFinal3.xnb 
     8Content\EnergyBallFinal4.xnb 
     9Content\EnergyBallFinal5.xnb 
     10Content\GemShineFinal1(1).xnb 
     11Content\GemShineFinal2(1).xnb 
     12Content\GemShineFinal3(1).xnb 
     13Content\GemShineFinal4(1).xnb 
  • 2012/10-20/AkiP/GemGrabberFinal/GemGrabberFinal/GemGrabberFinalContent/GemGrabberFinalContent.contentproj

    r3897 r3913  
    7272    </Compile> 
    7373  </ItemGroup> 
     74  <ItemGroup> 
     75    <Compile Include="EnergyBallFinal1.png"> 
     76      <Name>EnergyBallFinal1</Name> 
     77      <Importer>TextureImporter</Importer> 
     78      <Processor>TextureProcessor</Processor> 
     79    </Compile> 
     80  </ItemGroup> 
     81  <ItemGroup> 
     82    <Compile Include="EnergyBallFinal2.png"> 
     83      <Name>EnergyBallFinal2</Name> 
     84      <Importer>TextureImporter</Importer> 
     85      <Processor>TextureProcessor</Processor> 
     86    </Compile> 
     87  </ItemGroup> 
     88  <ItemGroup> 
     89    <Compile Include="EnergyBallFinal3.png"> 
     90      <Name>EnergyBallFinal3</Name> 
     91      <Importer>TextureImporter</Importer> 
     92      <Processor>TextureProcessor</Processor> 
     93    </Compile> 
     94  </ItemGroup> 
     95  <ItemGroup> 
     96    <Compile Include="EnergyBallFinal4.png"> 
     97      <Name>EnergyBallFinal4</Name> 
     98      <Importer>TextureImporter</Importer> 
     99      <Processor>TextureProcessor</Processor> 
     100    </Compile> 
     101  </ItemGroup> 
     102  <ItemGroup> 
     103    <Compile Include="EnergyBallFinal5.png"> 
     104      <Name>EnergyBallFinal5</Name> 
     105      <Importer>TextureImporter</Importer> 
     106      <Processor>TextureProcessor</Processor> 
     107    </Compile> 
     108  </ItemGroup> 
     109  <ItemGroup> 
     110    <Compile Include="GemShineFinal1%281%29.png"> 
     111      <Name>GemShineFinal1%281%29</Name> 
     112      <Importer>TextureImporter</Importer> 
     113      <Processor>TextureProcessor</Processor> 
     114    </Compile> 
     115  </ItemGroup> 
     116  <ItemGroup> 
     117    <Compile Include="GemShineFinal2%281%29.png"> 
     118      <Name>GemShineFinal2%281%29</Name> 
     119      <Importer>TextureImporter</Importer> 
     120      <Processor>TextureProcessor</Processor> 
     121    </Compile> 
     122  </ItemGroup> 
     123  <ItemGroup> 
     124    <Compile Include="GemShineFinal3%281%29.png"> 
     125      <Name>GemShineFinal3%281%29</Name> 
     126      <Importer>TextureImporter</Importer> 
     127      <Processor>TextureProcessor</Processor> 
     128    </Compile> 
     129  </ItemGroup> 
     130  <ItemGroup> 
     131    <Compile Include="GemShineFinal4%281%29.png"> 
     132      <Name>GemShineFinal4%281%29</Name> 
     133      <Importer>TextureImporter</Importer> 
     134      <Processor>TextureProcessor</Processor> 
     135    </Compile> 
     136  </ItemGroup> 
    74137  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    75138  <!--  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.