Ignore:
Timestamp:
2014-07-02 11:00:11 (9 years ago)
Author:
novaanan
Message:
 
Location:
2014/27/NoelV/turhakepeli
Files:
7 added
19 edited

Legend:

Unmodified
Added
Removed
  • 2014/27/NoelV/turhakepeli/turhakepeli/turhakepeli/bin/x86/Debug/Jypeli.xml

    r5253 r5281  
    50765076            </summary> 
    50775077        </member> 
    5078         <member name="P:Jypeli.Animation.IsPlaying"> 
    5079             <summary> 
    5080             Onko animaatio kÀynnissÀ. 
    5081             </summary> 
    5082         </member> 
    50835078        <member name="P:Jypeli.Animation.FPS"> 
    50845079            <summary> 
  • 2014/27/NoelV/turhakepeli/turhakepeli/turhakepeli/obj/x86/Debug/ContentPipeline-{8C608BBB-CC9B-467B-9EA1-3FA736E42C66}.xml

    r5247 r5281  
    99      <Options>None</Options> 
    1010      <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\pelaaja.xnb</Output> 
    11       <Time>2014-07-01T13:03:23.7166813+03:00</Time> 
     11      <Time>2014-07-02T09:33:20.7060017+03:00</Time> 
    1212    </Item> 
    1313    <Item> 
     
    1818      <Options>None</Options> 
    1919      <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\kentta.xnb</Output> 
    20       <Time>2014-07-01T13:41:55.4688935+03:00</Time> 
     20      <Time>2014-07-02T10:48:39.6666897+03:00</Time> 
    2121    </Item> 
    2222    <Item> 
     
    3636      <Options>None</Options> 
    3737      <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\hyokkaus.xnb</Output> 
    38       <Time>2014-07-01T14:53:10.4065277+03:00</Time> 
     38      <Time>2014-07-02T09:33:20.7216018+03:00</Time> 
     39    </Item> 
     40    <Item> 
     41      <Source>hahmo01.png</Source> 
     42      <Name>hahmo01</Name> 
     43      <Importer>TextureImporter</Importer> 
     44      <Processor>TextureProcessor</Processor> 
     45      <Options>None</Options> 
     46      <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\hahmo01.xnb</Output> 
     47      <Time>2014-07-02T09:33:20.7216018+03:00</Time> 
     48    </Item> 
     49    <Item> 
     50      <Source>hahmo02.png</Source> 
     51      <Name>hahmo02</Name> 
     52      <Importer>TextureImporter</Importer> 
     53      <Processor>TextureProcessor</Processor> 
     54      <Options>None</Options> 
     55      <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\hahmo02.xnb</Output> 
     56      <Time>2014-07-02T09:33:20.7216018+03:00</Time> 
     57    </Item> 
     58    <Item> 
     59      <Source>maa.png</Source> 
     60      <Name>maa</Name> 
     61      <Importer>TextureImporter</Importer> 
     62      <Processor>TextureProcessor</Processor> 
     63      <Options>None</Options> 
     64      <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\maa.xnb</Output> 
     65      <Time>2014-07-02T09:33:20.7372019+03:00</Time> 
     66    </Item> 
     67    <Item> 
     68      <Source>hahmo.anim.txt</Source> 
     69      <Name>hahmo.anim</Name> 
     70      <Importer>TextFileImporter</Importer> 
     71      <Processor>TextFileContentProcessor</Processor> 
     72      <Options>None</Options> 
     73      <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\hahmo.anim.xnb</Output> 
     74      <Time>2014-07-02T09:33:20.8932029+03:00</Time> 
     75    </Item> 
     76    <Item> 
     77      <Source>ala.png</Source> 
     78      <Name>ala</Name> 
     79      <Importer>TextureImporter</Importer> 
     80      <Processor>TextureProcessor</Processor> 
     81      <Options>None</Options> 
     82      <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\ala.xnb</Output> 
     83      <Time>2014-07-02T10:41:08.3736379+03:00</Time> 
     84    </Item> 
     85    <Item> 
     86      <Source>Sivu.png</Source> 
     87      <Name>Sivu</Name> 
     88      <Importer>TextureImporter</Importer> 
     89      <Processor>TextureProcessor</Processor> 
     90      <Options>None</Options> 
     91      <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\Sivu.xnb</Output> 
     92      <Time>2014-07-02T10:39:50.0923361+03:00</Time> 
     93    </Item> 
     94    <Item> 
     95      <Source>oikeaYla.png</Source> 
     96      <Name>oikeaYla</Name> 
     97      <Importer>TextureImporter</Importer> 
     98      <Processor>TextureProcessor</Processor> 
     99      <Options>None</Options> 
     100      <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\oikeaYla.xnb</Output> 
     101      <Time>2014-07-02T10:54:59.9365596+03:00</Time> 
    39102    </Item> 
    40103    <BuildSuccessful>true</BuildSuccessful> 
  • 2014/27/NoelV/turhakepeli/turhakepeli/turhakepeli/obj/x86/Debug/cachefile-{8C608BBB-CC9B-467B-9EA1-3FA736E42C66}-targetpath.txt

    r5253 r5281  
    33Content\valikko.xnb 
    44Content\hyokkaus.xnb 
    5 Content\hahmo.anim.xnb 
    65Content\hahmo01.xnb 
    76Content\hahmo02.xnb 
    87Content\maa.xnb 
     8Content\hahmo.anim.xnb 
     9Content\ala.xnb 
     10Content\Sivu.xnb 
     11Content\oikeaYla.xnb 
  • 2014/27/NoelV/turhakepeli/turhakepeli/turhakepeli/obj/x86/Debug/turhakepeli.csproj.FileListAbsolute.txt

    r5253 r5281  
    2727C:\Users\Poikaset\Desktop\peli\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\hahmo02.xnb 
    2828C:\Users\Poikaset\Desktop\peli\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\maa.xnb 
     29C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\hahmo01.xnb 
     30C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\hahmo02.xnb 
     31C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\maa.xnb 
     32C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\hahmo.anim.xnb 
     33C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\ala.xnb 
     34C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\Sivu.xnb 
     35C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\oikeaYla.xnb 
  • 2014/27/NoelV/turhakepeli/turhakepeli/turhakepeli/turhakepeli.cs

    r5253 r5281  
    1313    Image valikonKuva = LoadImage("valikko"); 
    1414    Image hyokkauksenKuva = LoadImage("hyokkaus"); 
     15    Image alaseina = LoadImage("ala"); 
     16    Image sivuseina = LoadImage("sivu"); 
     17    Image oikeayla = LoadImage("oikeaYla"); 
    1518    private Image[] hahmonLiike = LoadImages("hahmo01", "hahmo02"); 
    1619    Image taustaKuva = LoadImage("maa"); 
     
    6164 
    6265 
    63         Keyboard.Listen(Key.S, ButtonState.Down, Animaatio, null); 
     66        Keyboard.Listen(Key.S, ButtonState.Down, AnimaatioAlas, null); 
     67        Keyboard.Listen(Key.S, ButtonState.Up, AnimaatioAlasLopetus, null); 
    6468 
    6569        Keyboard.Listen(Key.W, ButtonState.Down, Liiku, null, new Vector(0, 1000)); 
     
    120124        //2. Kerrotaan mitä aliohjelmaa kutsutaan, kun tietyn värinen pikseli tulee vastaan kuvatiedostossa. 
    121125        ruudut.SetTileMethod(Color.Blue, LuoPelaaja); 
    122         ruudut.SetTileMethod(Color.Black, LuoSeina); 
    123         ruudut.SetTileMethod(Color.Red, LuoNurkka); 
     126        ruudut.SetTileMethod(Color.Black, LuoSivuseina); 
     127        ruudut.SetTileMethod(Color.Red, LuoAlaseina); 
     128        ruudut.SetTileMethod(Color.White, LuoOikeaYla); 
    124129 
    125130        //3. Execute luo kentän 
     
    136141 
    137142    } 
    138     void LuoNurkka(Vector paikka, double leveys, double korkeus) 
    139     { 
    140         PhysicsObject nurkka = PhysicsObject.CreateStaticObject(leveys, korkeus); 
    141         nurkka.Position = paikka; 
    142         nurkka.CollisionIgnoreGroup = 1; 
    143         Add(nurkka); 
     143    void LuoAlaseina(Vector paikka, double leveys, double korkeus) 
     144    { 
     145        PhysicsObject ala = PhysicsObject.CreateStaticObject(leveys, korkeus); 
     146        ala.Position = paikka; 
     147        ala.CollisionIgnoreGroup = 1; 
     148        ala.Image = alaseina; 
     149        Add(ala); 
    144150 
    145151 
     
    160166 
    161167 
    162     void LuoSeina(Vector paikka, double leveys, double korkeus) 
     168    void LuoSivuseina(Vector paikka, double leveys, double korkeus) 
    163169    { 
    164170        PhysicsObject taso = PhysicsObject.CreateStaticObject(leveys, korkeus); 
    165171        taso.Position = paikka; 
    166172        taso.CollisionIgnoreGroup = 1; 
     173        taso.Image = sivuseina; 
    167174        Add(taso); 
     175    } 
     176    void LuoOikeaYla(Vector paikka, double leveys, double korkeus) 
     177    { 
     178         PhysicsObject ala = PhysicsObject.CreateStaticObject(leveys, korkeus); 
     179        ala.Position = paikka; 
     180        ala.CollisionIgnoreGroup = 1; 
     181        ala.Image = oikeayla; 
     182        Add(ala); 
     183 
    168184    } 
    169185 
     
    208224    } 
    209225 
    210     void Animaatio() 
    211     { 
    212  
     226    void AnimaatioAlas() 
     227    { 
     228        if (pelaaja.Velocity != Vector.Zero) return; 
    213229        pelaaja.Animation = new Animation(hahmonLiike); 
    214230        pelaaja.Animation.FPS = 5; 
    215231        pelaaja.Animation.Start(); 
    216232    } 
     233    void AnimaatioAlasLopetus() 
     234    { 
     235        pelaaja.Animation.Stop(); 
     236        pelaaja.Image = hahmo; 
     237    } 
    217238    
    218239 
  • 2014/27/NoelV/turhakepeli/turhakepeli/turhakepeli/turhakepeli.csproj.Debug.cachefile

    r5253 r5281  
    33Content\valikko.xnb 
    44Content\hyokkaus.xnb 
    5 Content\hahmo.anim.xnb 
    65Content\hahmo01.xnb 
    76Content\hahmo02.xnb 
    87Content\maa.xnb 
     8Content\hahmo.anim.xnb 
     9Content\ala.xnb 
     10Content\Sivu.xnb 
     11Content\oikeaYla.xnb 
  • 2014/27/NoelV/turhakepeli/turhakepeli/turhakepeliContent/turhakepeliContent.contentproj

    r5253 r5281  
    101101    </Compile> 
    102102  </ItemGroup> 
     103  <ItemGroup> 
     104    <Compile Include="ala.png"> 
     105      <Name>ala</Name> 
     106      <Importer>TextureImporter</Importer> 
     107      <Processor>TextureProcessor</Processor> 
     108    </Compile> 
     109  </ItemGroup> 
     110  <ItemGroup> 
     111    <Compile Include="Sivu.png"> 
     112      <Name>Sivu</Name> 
     113      <Importer>TextureImporter</Importer> 
     114      <Processor>TextureProcessor</Processor> 
     115    </Compile> 
     116  </ItemGroup> 
     117  <ItemGroup> 
     118    <Compile Include="oikeaYla.png"> 
     119      <Name>oikeaYla</Name> 
     120      <Importer>TextureImporter</Importer> 
     121      <Processor>TextureProcessor</Processor> 
     122    </Compile> 
     123  </ItemGroup> 
    103124  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    104125  <!--  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.