Changeset 8912 for 2016


Ignore:
Timestamp:
2017-07-05 11:26:37 (11 months ago)
Author:
npo17_37
Message:
 
Location:
2016/koodauskerho/VilleH
Files:
6 added
2 edited

Legend:

Unmodified
Added
Removed
  • 2016/koodauskerho/VilleH/Tasohyppelypeli/Tasohyppelypeli/Tasohyppelypeli/ninjakissanhikileikit.cs

    r8911 r8912  
    88 
    99public class Tasohyppelypeli1 : PhysicsGame 
    10 {  
     10{ 
     11    Image taustakuva = LoadImage("kentta"); 
    1112    double nopeus = 650; 
    1213    double hyppyNopeus = 500; 
     
    5152        kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 
    5253        Level.CreateBorders(); 
    53         Level.Background.CreateGradient(Color.White, Color.SkyBlue); 
     54         
    5455    } 
    5556 
     
    208209        if (vastaus[0] == "YOLO") 
    209210        { 
    210             nopeus = 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999.0; 
     211            nopeus = 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999.0; 
    211212        } 
    212213        if (vastaus[0] == "spawn") 
     
    214215            pelaaja1.Position = alkupaikka; 
    215216        } 
    216         if (vastaus[0] == "hax") 
     217        
     218            if (vastaus[0] == "hax") 
    217219        { 
    218220            nopeus = 100; 
  • 2016/koodauskerho/VilleH/Tasohyppelypeli/Tasohyppelypeli/TasohyppelypeliContent/TasohyppelypeliContent.contentproj

    r8880 r8912  
    130130    </Compile> 
    131131  </ItemGroup> 
     132  <ItemGroup> 
     133    <Content Include="kentta.png"> 
     134      <Name>kentta</Name> 
     135      <Importer>TextureImporter</Importer> 
     136      <Processor>TextureProcessor</Processor> 
     137    </Content> 
     138  </ItemGroup> 
    132139  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    133140  <!--  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.