Changeset 8376


Ignore:
Timestamp:
2016-12-17 14:48:15 (3 years ago)
Author:
tesatapa
Message:
 
Location:
2016/koodauskerho/VilleH/Tasohyppelypeli/Tasohyppelypeli
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • 2016/koodauskerho/VilleH/Tasohyppelypeli/Tasohyppelypeli/Tasohyppelypeli/Tasohyppelypeli.csproj.Debug.cachefile

    r8361 r8376  
    55Content\doritos-nacho-cheese.xnb 
    66Content\tyyppi.xnb 
     7Content\kissa.xnb 
    78Content\kentta1.xnb 
    8 Content\kissa.xnb 
  • 2016/koodauskerho/VilleH/Tasohyppelypeli/Tasohyppelypeli/Tasohyppelypeli/ninjakissanhikileikit.cs

    r8361 r8376  
    1414 
    1515    PlatformCharacter pelaaja1; 
    16     AssaultRifle pelaajan1Ase; 
    1716    Image pelaajanKuva = LoadImage("kissa"); 
    1817    Image doritos = LoadImage("doritos-nacho-cheese"); 
     
    3029        Camera.ZoomFactor = 1.2; 
    3130        Camera.StayInLevel = true; 
    32         //Mouse.ListenMovement(0.1, Tahtaa, "Tähtää aseella"); 
    33         //Keyboard.Listen(Key.Space, ButtonState.Down, AmmuAseella, "Ammu", pelaajan1Ase); 
     31         
    3432    } 
    3533 
     
    3937        kentta.SetTileMethod('#', LisaaTaso); 
    4038        kentta.SetTileMethod('p', LisaaPiikki); 
    41         kentta.SetTileMethod('*', LisaaTahti); 
     39        kentta.SetTileMethod('D', LisaaTahti); 
    4240        kentta.SetTileMethod('N', LisaaPelaaja); 
    4341        kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 
     
    8482        Add(pelaaja1); 
    8583 
    86         //... 
    87         pelaajan1Ase = new AssaultRifle(30, 10); 
    88  
    89         //Ammusten määrä aluksi: 
    90         pelaajan1Ase.Ammo.Value = 1000; 
    91  
    92         //Mitä tapahtuu kun ammus osuu johonkin? 
    93         pelaajan1Ase.ProjectileCollision = AmmusOsui; 
    94  
    95         pelaaja1.Weapon = pelaajan1Ase; 
    96  
    97         //pelaaja1 on PlatformCharacter-tyyppinen 
    98         pelaaja1.Weapon = new AssaultRifle(30, 10); 
    99  
    100         //Ammusten määrä aluksi: 
    101         pelaaja1.Weapon.Ammo.Value = 1000; 
    102  
    103         //Mitä tapahtuu kun ammus osuu johonkin? 
    104         pelaaja1.Weapon.ProjectileCollision = AmmusOsui; 
     84      
    10585 
    10686    } 
    107     void AmmusOsui(PhysicsObject ammus, PhysicsObject kohde) 
    108     { 
    109         //ammus.Destroy(); 
    110     } 
     87    
    11188 
    11289    void LisaaNappaimet() 
     
    143120    { 
    144121        maaliAani.Play(); 
    145         MessageDisplay.Add("Keräsit tähden!"); 
     122        MessageDisplay.Add("nom nom!"); 
    146123        tahti.Destroy(); 
    147124    } 
     
    152129    } 
    153130 
    154     //void AmmuAseella(AssaultRifle ase) 
    155     //{ 
    156     //    PhysicsObject ammus = ase.Shoot(); 
    157  
    158     //    if (ammus != null) 
    159     //    { 
    160     //        //ammus.Size *= 3; 
    161     //        //ammus.Image = ... 
    162     //        //ammus.MaximumLifetime = TimeSpan.FromSeconds(2.0); 
    163     //    } 
    164     //} 
    165  
    166     //void AmmuAseella(PlatformCharacter pelaaja) 
    167     //{ 
    168     //    PhysicsObject ammus = pelaaja.Weapon.Shoot(); 
    169  
    170     //    if (ammus != null) 
    171     //    { 
    172     //        //ammus.Size *= 3; 
    173     //        //ammus.Image =  
    174     //       //ammus.MaximumLifetime = TimeSpan.FromSeconds(2.0); 
    175     //    } 
    176     //} 
    177  
    178     //void Tahtaa(AnalogState hiirenLiike) 
    179     //{ 
    180     //    Vector suunta = (Mouse.PositionOnWorld - pelaaja1.Weapon.AbsolutePosition).Normalize(); 
    181     //    pelaaja1.Weapon.Angle = suunta.Angle; 
    182     //} 
    183  
    184131} 
    185132 
  • 2016/koodauskerho/VilleH/Tasohyppelypeli/Tasohyppelypeli/Tasohyppelypeli/obj/x86/Debug/ContentPipeline-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}.xml

    r8361 r8376  
    88      <Processor>SoundEffectProcessor</Processor> 
    99      <Options>None</Options> 
    10       <Output>C:\MyTemp\VilleH\Tasohyppelypeli\Tasohyppelypeli\Tasohyppelypeli\bin\x86\Debug\Content\maali.xnb</Output> 
    11       <Time>2016-11-19T10:47:57.7360789+02:00</Time> 
     10      <Output>C:\MyTemp\villeH\Tasohyppelypeli\Tasohyppelypeli\Tasohyppelypeli\bin\x86\Debug\Content\maali.xnb</Output> 
     11      <Time>2016-12-17T10:27:34.4476585+02:00</Time> 
    1212    </Item> 
    1313    <Item> 
     
    1717      <Processor>TextureProcessor</Processor> 
    1818      <Options>None</Options> 
    19       <Output>C:\MyTemp\VilleH\Tasohyppelypeli\Tasohyppelypeli\Tasohyppelypeli\bin\x86\Debug\Content\norsu.xnb</Output> 
    20       <Time>2016-11-19T10:47:57.8452789+02:00</Time> 
     19      <Output>C:\MyTemp\villeH\Tasohyppelypeli\Tasohyppelypeli\Tasohyppelypeli\bin\x86\Debug\Content\norsu.xnb</Output> 
     20      <Time>2016-12-17T10:27:34.5568585+02:00</Time> 
    2121    </Item> 
    2222    <Item> 
     
    2626      <Processor>TextureProcessor</Processor> 
    2727      <Options>None</Options> 
    28       <Output>C:\MyTemp\VilleH\Tasohyppelypeli\Tasohyppelypeli\Tasohyppelypeli\bin\x86\Debug\Content\tahti.xnb</Output> 
    29       <Time>2016-11-19T10:47:57.9232789+02:00</Time> 
     28      <Output>C:\MyTemp\villeH\Tasohyppelypeli\Tasohyppelypeli\Tasohyppelypeli\bin\x86\Debug\Content\tahti.xnb</Output> 
     29      <Time>2016-12-17T10:27:34.6504585+02:00</Time> 
    3030    </Item> 
    3131    <Item> 
     
    3535      <Processor>TextureProcessor</Processor> 
    3636      <Options>None</Options> 
    37       <Output>C:\MyTemp\VilleH\Tasohyppelypeli\Tasohyppelypeli\Tasohyppelypeli\bin\x86\Debug\Content\piikki.xnb</Output> 
    38       <Time>2016-11-19T10:47:57.7360789+02:00</Time> 
     37      <Output>C:\MyTemp\villeH\Tasohyppelypeli\Tasohyppelypeli\Tasohyppelypeli\bin\x86\Debug\Content\piikki.xnb</Output> 
     38      <Time>2016-12-17T10:27:34.4476585+02:00</Time> 
    3939    </Item> 
    4040    <Item> 
     
    4444      <Processor>TextureProcessor</Processor> 
    4545      <Options>None</Options> 
    46       <Output>C:\MyTemp\VilleH\Tasohyppelypeli\Tasohyppelypeli\Tasohyppelypeli\bin\x86\Debug\Content\doritos-nacho-cheese.xnb</Output> 
    47       <Time>2016-11-19T10:47:57.7516789+02:00</Time> 
     46      <Output>C:\MyTemp\villeH\Tasohyppelypeli\Tasohyppelypeli\Tasohyppelypeli\bin\x86\Debug\Content\doritos-nacho-cheese.xnb</Output> 
     47      <Time>2016-12-17T10:27:34.4632585+02:00</Time> 
    4848    </Item> 
    4949    <Item> 
     
    5353      <Processor>TextureProcessor</Processor> 
    5454      <Options>None</Options> 
    55       <Output>C:\MyTemp\VilleH\Tasohyppelypeli\Tasohyppelypeli\Tasohyppelypeli\bin\x86\Debug\Content\tyyppi.xnb</Output> 
    56       <Time>2016-11-19T10:47:57.7360789+02:00</Time> 
     55      <Output>C:\MyTemp\villeH\Tasohyppelypeli\Tasohyppelypeli\Tasohyppelypeli\bin\x86\Debug\Content\tyyppi.xnb</Output> 
     56      <Time>2016-12-17T10:27:34.4476585+02:00</Time> 
     57    </Item> 
     58    <Item> 
     59      <Source>kissa.png</Source> 
     60      <Name>kissa</Name> 
     61      <Importer>TextureImporter</Importer> 
     62      <Processor>TextureProcessor</Processor> 
     63      <Options>None</Options> 
     64      <Output>C:\MyTemp\villeH\Tasohyppelypeli\Tasohyppelypeli\Tasohyppelypeli\bin\x86\Debug\Content\kissa.xnb</Output> 
     65      <Time>2016-12-17T10:27:34.6504585+02:00</Time> 
    5766    </Item> 
    5867    <Item> 
     
    6271      <Processor>TextFileContentProcessor</Processor> 
    6372      <Options>None</Options> 
    64       <Output>C:\MyTemp\VilleH\Tasohyppelypeli\Tasohyppelypeli\Tasohyppelypeli\bin\x86\Debug\Content\kentta1.xnb</Output> 
    65       <Time>2016-11-19T14:44:00.1162789+02:00</Time> 
    66     </Item> 
    67     <Item> 
    68       <Source>kissa.png</Source> 
    69       <Name>kissa</Name> 
    70       <Importer>TextureImporter</Importer> 
    71       <Processor>TextureProcessor</Processor> 
    72       <Options>None</Options> 
    73       <Output>C:\MyTemp\VilleH\Tasohyppelypeli\Tasohyppelypeli\Tasohyppelypeli\bin\x86\Debug\Content\kissa.xnb</Output> 
    74       <Time>2016-11-19T14:45:57.4142789+02:00</Time> 
     73      <Output>C:\MyTemp\villeH\Tasohyppelypeli\Tasohyppelypeli\Tasohyppelypeli\bin\x86\Debug\Content\kentta1.xnb</Output> 
     74      <Time>2016-12-17T13:40:10.124043+02:00</Time> 
    7575    </Item> 
    7676    <BuildSuccessful>true</BuildSuccessful> 
     
    8181      <BuildConfiguration>Debug</BuildConfiguration> 
    8282      <CompressContent>false</CompressContent> 
    83       <RootDirectory>C:\MyTemp\VilleH\Tasohyppelypeli\Tasohyppelypeli\TasohyppelypeliContent\</RootDirectory> 
    84       <LoggerRootDirectory>C:\MyTemp\VilleH\Tasohyppelypeli\Tasohyppelypeli\Tasohyppelypeli\</LoggerRootDirectory> 
    85       <IntermediateDirectory>C:\MyTemp\VilleH\Tasohyppelypeli\Tasohyppelypeli\Tasohyppelypeli\obj\x86\Debug\</IntermediateDirectory> 
    86       <OutputDirectory>C:\MyTemp\VilleH\Tasohyppelypeli\Tasohyppelypeli\Tasohyppelypeli\bin\x86\Debug\Content\</OutputDirectory> 
     83      <RootDirectory>C:\MyTemp\villeH\Tasohyppelypeli\Tasohyppelypeli\TasohyppelypeliContent\</RootDirectory> 
     84      <LoggerRootDirectory>C:\MyTemp\villeH\Tasohyppelypeli\Tasohyppelypeli\Tasohyppelypeli\</LoggerRootDirectory> 
     85      <IntermediateDirectory>C:\MyTemp\villeH\Tasohyppelypeli\Tasohyppelypeli\Tasohyppelypeli\obj\x86\Debug\</IntermediateDirectory> 
     86      <OutputDirectory>C:\MyTemp\villeH\Tasohyppelypeli\Tasohyppelypeli\Tasohyppelypeli\bin\x86\Debug\Content\</OutputDirectory> 
    8787    </Settings> 
    8888    <Assemblies> 
     
    121121      <Assembly> 
    122122        <Key>C:\Windows\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Content.Pipeline\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Content.Pipeline.dll</Key> 
    123         <Value>2015-09-16T19:06:04.2493246+03:00</Value> 
     123        <Value>2015-09-16T19:52:38.3293055+03:00</Value> 
    124124      </Assembly> 
    125125    </Assemblies> 
  • 2016/koodauskerho/VilleH/Tasohyppelypeli/Tasohyppelypeli/Tasohyppelypeli/obj/x86/Debug/cachefile-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}-targetpath.txt

    r8361 r8376  
    55Content\doritos-nacho-cheese.xnb 
    66Content\tyyppi.xnb 
     7Content\kissa.xnb 
    78Content\kentta1.xnb 
    8 Content\kissa.xnb 
  • 2016/koodauskerho/VilleH/Tasohyppelypeli/Tasohyppelypeli/TasohyppelypeliContent/kentta1.txt

    r8361 r8376  
    66            
    77            
    8                
    9 ............# 
    10 ............# 
    11 N...........#.......................................... 
    12 #########...####################...................########### 
    13 ........#...#................ #............#.......#  
    14 ........#...#.................#..#................ # 
    15 ........#...#.................#......#.............#  
    16 ........#...#.................#............#.......# 
    17 ........#...###################...................## 
    18 ........#..........................................# 
    19 #################################################### 
    20                                                          
     8............D 
     9............#................................................................................................................................................ 
     10............#................................................................#............................................................................... 
     11N...........#..........................................................#..................................................................................... 
     12#########...####################........................#######.............................................................................................. 
     13........#...#................ #............#......#######..........................................................################################################ 
     14........#...#.................#..#................ #.........................................#........#................#.....................................#.....# 
     15........#...#.................#......#.............#..................................#.....................#......................................................#. 
     16........#...#.................#............#.......#........................................................#....................................#......#...#......# 
     17........#...###################...................##........................................................#..........#...................#.................#.....# 
     18........#........................................#.#........................................................#........#.#........###..........................#.....# 
     19........#...................................................................................................#..........#.....................................#.....# 
     20##############################################################################################################################################################.....# 
     21...................................................................................................................................................................# 
     22...................................................................................................................................................................# 
     23:...................................D..........................................................#....................#..............................................# 
     24.........#..#.......................#.....#.........................................................#....................#.........................................# 
     25.........#.......#..................#..........#........................................................#....................#.....................................# 
     26.........#............#.............#................#.........................................................#................#......#...........................# 
     27.........#.................#........#.......................#......#.....#........#...#.........................................................#....#.............# 
     28.........#......................#...#......................................................................................................................#.......# 
     29.........#.........................:#..............................................................................................................................# 
     30.........############################################################################################################################################################ 
     31 
     32 
     33 
     34 
     35 
     36 
     37 
     38 
     39###################################################################################################################################################################### 
Note: See TracChangeset for help on using the changeset viewer.