Changeset 7332


Ignore:
Timestamp:
2016-06-15 14:53:28 (7 years ago)
Author:
karkaite
Message:

troll

Location:
2016/24/OliverK
Files:
16 added
13 edited

Legend:

Unmodified
Added
Removed
  • 2016/24/OliverK/pomppupeli/pomppupeli/pomppupeli/obj/x86/Debug/ContentPipeline-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}.xml

    r7306 r7332  
    3636      <Options>None</Options> 
    3737      <Output>C:\MyTemp\OliverK\pomppupeli\pomppupeli\pomppupeli\bin\x86\Debug\Content\kentta1.xnb</Output> 
    38       <Time>2016-06-14T14:28:16.4043271+03:00</Time> 
     38      <Time>2016-06-15T14:21:02.0051113+03:00</Time> 
    3939    </Item> 
    4040    <Item> 
     
    4545      <Options>None</Options> 
    4646      <Output>C:\MyTemp\OliverK\pomppupeli\pomppupeli\pomppupeli\bin\x86\Debug\Content\ukko.xnb</Output> 
    47       <Time>2016-06-14T14:39:15.3477271+03:00</Time> 
     47      <Time>2016-06-15T10:27:29.8782469+03:00</Time> 
    4848    </Item> 
    4949    <Item> 
     
    5555      <Output>C:\MyTemp\OliverK\pomppupeli\pomppupeli\pomppupeli\bin\x86\Debug\Content\DL.xnb</Output> 
    5656      <Time>2016-06-14T14:53:11.2617271+03:00</Time> 
     57    </Item> 
     58    <Item> 
     59      <Source>ukko2.png</Source> 
     60      <Name>ukko2</Name> 
     61      <Importer>TextureImporter</Importer> 
     62      <Processor>TextureProcessor</Processor> 
     63      <Options>None</Options> 
     64      <Output>C:\MyTemp\OliverK\pomppupeli\pomppupeli\pomppupeli\bin\x86\Debug\Content\ukko2.xnb</Output> 
     65      <Time>2016-06-15T10:14:07.8973464+03:00</Time> 
     66    </Item> 
     67    <Item> 
     68      <Source>DL2.png</Source> 
     69      <Name>DL2</Name> 
     70      <Importer>TextureImporter</Importer> 
     71      <Processor>TextureProcessor</Processor> 
     72      <Options>None</Options> 
     73      <Output>C:\MyTemp\OliverK\pomppupeli\pomppupeli\pomppupeli\bin\x86\Debug\Content\DL2.xnb</Output> 
     74      <Time>2016-06-15T10:27:17.2254846+03:00</Time> 
     75    </Item> 
     76    <Item> 
     77      <Source>tausta2.jpg</Source> 
     78      <Name>tausta2</Name> 
     79      <Importer>TextureImporter</Importer> 
     80      <Processor>TextureProcessor</Processor> 
     81      <Options>None</Options> 
     82      <Output>C:\MyTemp\OliverK\pomppupeli\pomppupeli\pomppupeli\bin\x86\Debug\Content\tausta2.xnb</Output> 
     83      <Time>2016-06-15T10:27:17.2254846+03:00</Time> 
     84    </Item> 
     85    <Item> 
     86      <Source>golden block.png</Source> 
     87      <Name>golden block</Name> 
     88      <Importer>TextureImporter</Importer> 
     89      <Processor>TextureProcessor</Processor> 
     90      <Options>None</Options> 
     91      <Output>C:\MyTemp\OliverK\pomppupeli\pomppupeli\pomppupeli\bin\x86\Debug\Content\golden block.xnb</Output> 
     92      <Time>2016-06-15T11:14:07.810649+03:00</Time> 
     93    </Item> 
     94    <Item> 
     95      <Source>images.jpg</Source> 
     96      <Name>images</Name> 
     97      <Importer>TextureImporter</Importer> 
     98      <Processor>TextureProcessor</Processor> 
     99      <Options>None</Options> 
     100      <Output>C:\MyTemp\OliverK\pomppupeli\pomppupeli\pomppupeli\bin\x86\Debug\Content\images.xnb</Output> 
     101      <Time>2016-06-15T11:14:46.1756165+03:00</Time> 
    57102    </Item> 
    58103    <BuildSuccessful>true</BuildSuccessful> 
  • 2016/24/OliverK/pomppupeli/pomppupeli/pomppupeli/obj/x86/Debug/cachefile-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}-targetpath.txt

    r7306 r7332  
    55Content\ukko.xnb 
    66Content\DL.xnb 
     7Content\ukko2.xnb 
     8Content\DL2.xnb 
     9Content\tausta2.xnb 
     10Content\golden block.xnb 
     11Content\images.xnb 
  • 2016/24/OliverK/pomppupeli/pomppupeli/pomppupeli/obj/x86/Debug/pomppupeli.csproj.FileListAbsolute.txt

    r7306 r7332  
    1313C:\MyTemp\OliverK\pomppupeli\pomppupeli\pomppupeli\bin\x86\Debug\Content\ukko.xnb 
    1414C:\MyTemp\OliverK\pomppupeli\pomppupeli\pomppupeli\bin\x86\Debug\Content\DL.xnb 
     15C:\MyTemp\OliverK\pomppupeli\pomppupeli\pomppupeli\bin\x86\Debug\Content\ukko2.xnb 
     16C:\MyTemp\OliverK\pomppupeli\pomppupeli\pomppupeli\bin\x86\Debug\Content\DL2.xnb 
     17C:\MyTemp\OliverK\pomppupeli\pomppupeli\pomppupeli\bin\x86\Debug\Content\tausta2.xnb 
     18C:\MyTemp\OliverK\pomppupeli\pomppupeli\pomppupeli\bin\x86\Debug\Content\golden block.xnb 
     19C:\MyTemp\OliverK\pomppupeli\pomppupeli\pomppupeli\bin\x86\Debug\Content\images.xnb 
  • 2016/24/OliverK/pomppupeli/pomppupeli/pomppupeli/pomppupeli.cs

    r7306 r7332  
    99public class pomppupeli : PhysicsGame 
    1010{ 
    11     const double nopeus = 200; 
     11    double nopeus = 1000; 
    1212    const double hyppyNopeus = 750; 
    1313    const int RUUDUN_KOKO = 40; 
     
    1515    PlatformCharacter pelaaja1; 
    1616 
    17     Image pelaajanKuva = LoadImage("ukko"); 
    18     Image tahtiKuva = LoadImage("DL"); 
    19  
     17    Image palikkakuva = LoadImage("images"); 
     18    Image pelaajanKuva = LoadImage("ukko2"); 
     19    Image tahtiKuva = LoadImage("DL2"); 
     20    Image taustakuva = LoadImage("tausta2"); 
    2021    SoundEffect maaliAani = LoadSoundEffect("maali"); 
    2122 
     23    
     24 
     25    IPhysicsObject ukko2; 
     26 
     27    public double Velocity { get; private set; } 
    2228 
    2329    public override void Begin() 
     
    2632 
    2733        Gravity = new Vector(0, -1000); 
    28  
    2934        LuoKentta(); 
    3035        LisaaNappaimet(); 
     36        AsetaOhujaimet(); 
    3137 
    3238        Camera.Follow(pelaaja1); 
     
    3844    { 
    3945        TileMap kentta = TileMap.FromLevelAsset("kentta1"); 
    40         kentta.SetTileMethod('#', LisaaTaso); 
     46        kentta.SetTileMethod('E', LisaaTaso); 
    4147        kentta.SetTileMethod('*', LisaaTahti); 
    4248        kentta.SetTileMethod('N', LisaaPelaaja); 
     49        kentta.SetTileMethod('#', lisaaPalikka); 
    4350        kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 
    4451        Level.CreateBorders(); 
    45         //Level.Background.CreateGradient(Color.White, Color.SkyBlue); 
    46         Level.Background.Color = Color.White; 
     52        Level.Background.Color = Color.Black; 
     53        //GameObject tausta = new GameObject(Level.Width, Level.Height); 
     54        //tausta.Image = taustakuva; 
     55        //Add(tausta, -3); 
     56 
     57    } 
     58 
     59    void lisaaPalikka(Vector paikka, double leveys, double korkeus) 
     60    { 
     61        PhysicsObject taso = PhysicsObject.CreateStaticObject(leveys, korkeus); 
     62        taso.Position = paikka; taso.Image = palikkakuva; 
     63        Add(taso); 
     64 
     65 
     66 
    4767    } 
    4868 
     
    5171        PhysicsObject taso = PhysicsObject.CreateStaticObject(leveys, korkeus); 
    5272        taso.Position = paikka; 
    53         taso.Color = Color.Green; 
     73        taso.Color = Color.Brown; 
    5474        Add(taso); 
    5575    } 
     
    106126    { 
    107127        maaliAani.Play(); 
    108         MessageDisplay.Add("Keräsi tähden!"); 
     128        MessageDisplay.Add("SAIT DAIMOND LUKON!"); 
    109129        tahti.Destroy(); 
    110130    } 
    111  
     131    void AsetaOhujaimet() 
     132    { 
     133        Keyboard.Listen(Key.Z, ButtonState.Down, hidasta, "Hidasta palloa"); 
     134        Keyboard.Listen(Key.A, ButtonState.Down, nopeuta, "Nopeuta palloa"); 
     135 
     136    } 
     137 
     138    void hidasta() 
     139    { 
     140        nopeus -= 100; 
     141 
     142    } 
     143    void nopeuta() 
     144    { 
     145        nopeus += 100; 
     146 
     147 
     148 
     149    } 
     150} 
  • 2016/24/OliverK/pomppupeli/pomppupeli/pomppupeli/pomppupeli.csproj.Debug.cachefile

    r7306 r7332  
    55Content\ukko.xnb 
    66Content\DL.xnb 
     7Content\ukko2.xnb 
     8Content\DL2.xnb 
     9Content\tausta2.xnb 
     10Content\golden block.xnb 
     11Content\images.xnb 
  • 2016/24/OliverK/pomppupeli/pomppupeli/pomppupeliContent/kentta1.txt

    r7306 r7332  
    1          * 
    2          ## 
    3  
    4        *    * 
    5        ##  ## 
    6  
    7      *        * 
    8      ##  ##  ## 
    9  
    10    *    *  *    *      
    11    ##  ##  ##  ## 
    12  
    13  *    *       *   * 
    14  ##  ##  ##  ##  ## 
    15  
    16         N 
    17 ###################### 
     1                              
     2                              
     3*                            * 
     4###########  ####  ########### 
     5                               
     6*     *       *        *    *  
     7###  ##  ###  #  ###  ##  ###  
     8                              
     9 *      *     *      *      * 
     10 ###  ####   ###    ####  ### 
     11                              
     12 *        *        *        * 
     13 ####    ####    ####    #### 
     14                              
     15            N                 
     16############################# 
  • 2016/24/OliverK/pomppupeli/pomppupeli/pomppupeliContent/pomppupeliContent.contentproj

    r7306 r7332  
    8181    </Compile> 
    8282  </ItemGroup> 
     83  <ItemGroup> 
     84    <Compile Include="ukko2.png"> 
     85      <Name>ukko2</Name> 
     86      <Importer>TextureImporter</Importer> 
     87      <Processor>TextureProcessor</Processor> 
     88    </Compile> 
     89  </ItemGroup> 
     90  <ItemGroup> 
     91    <Compile Include="DL2.png"> 
     92      <Name>DL2</Name> 
     93      <Importer>TextureImporter</Importer> 
     94      <Processor>TextureProcessor</Processor> 
     95    </Compile> 
     96    <Compile Include="tausta2.jpg"> 
     97      <Name>tausta2</Name> 
     98      <Importer>TextureImporter</Importer> 
     99      <Processor>TextureProcessor</Processor> 
     100    </Compile> 
     101  </ItemGroup> 
     102  <ItemGroup> 
     103    <Compile Include="golden block.png"> 
     104      <Name>golden block</Name> 
     105      <Importer>TextureImporter</Importer> 
     106      <Processor>TextureProcessor</Processor> 
     107    </Compile> 
     108  </ItemGroup> 
     109  <ItemGroup> 
     110    <Compile Include="images.jpg"> 
     111      <Name>images</Name> 
     112      <Importer>TextureImporter</Importer> 
     113      <Processor>TextureProcessor</Processor> 
     114    </Compile> 
     115  </ItemGroup> 
    83116  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    84117  <!--  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.