Changeset 6831


Ignore:
Timestamp:
2015-07-21 11:04:32 (4 years ago)
Author:
picakrty
Message:

hahmot ja tausta

Location:
2015/30/CamillaT
Files:
18 added
8 edited

Legend:

Unmodified
Added
Removed
  • 2015/30/CamillaT/YouCombat/YouCombat/YouCombat/YouCombat.cs

    r6825 r6831  
    99public class YouCombat : PhysicsGame 
    1010{ 
     11 
    1112    PhysicsObject rauski; 
    12     PhysicsObject vihollinen;  
     13    PhysicsObject miisas; 
     14 
     15    Image tubecon = LoadImage("TubeCombat - tausta"); 
     16    Image rauskinKuva = LoadImage("TubeCombat - Rauski"); 
     17    Image miisasinKuva = LoadImage("TubeCombat - Miisas"); 
    1318 
    1419    public override void Begin() 
     
    2025        PhoneBackButton.Listen(ConfirmExit, "Lopeta peli"); 
    2126        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
     27 
     28        Level.Width = Screen.Width; 
     29        Level.Height = Screen.Height; 
     30 
     31        GameObject tausta = new GameObject(Level.Width, Level.Height); 
     32        tausta.Image = tubecon; 
     33        Add(tausta, -3); 
     34         
     35 
    2236    } 
    2337 
    2438    void Hahmot() 
    2539    { 
    26         PhysicsObject rauski = new PhysicsObject(50, 80); 
    27         PhysicsObject vihollinen = new PhysicsObject(50, 80); 
     40        rauski = new PhysicsObject(270, 400); 
     41        miisas = new PhysicsObject(270, 350); 
     42 
     43        rauski.X = Level.Right; 
     44        rauski.Y = -200.0; 
     45 
     46        miisas.X = Level.Left;    
     47        miisas.Y = -200.0; 
     48 
     49        rauski.Image = rauskinKuva; 
     50        miisas.Image = miisasinKuva; 
    2851 
    2952        Add(rauski); 
    30         Add(vihollinen); 
    31  
    32        
    33  
    34  
    35             rauski.Shape = Shape.Heart; 
    36  
    37  
    38      
     53        Add(miisas); 
    3954    } 
    4055 
    4156 
    42  
    43  
     57    void HahmojenOhjaus() 
     58    { 
     59        //Keyboard.Listen(Key. A, ButtonState.Pressed, Liikuta, "Liiku Vasemmalle"); 
     60     
     61     
     62     
     63     
     64     
     65     
     66    } 
    4467 
    4568 
     
    4972    { 
    5073 
    51         vihollinen.Destroy();  
     74        miisas.Destroy();  
    5275 
    5376     
  • 2015/30/CamillaT/YouCombat/YouCombat/YouCombat/obj/x86/Debug/YouCombat.csproj.FileListAbsolute.txt

    r6825 r6831  
    66C:\MyTemp\CamillaT\YouCombat\YouCombat\YouCombat\obj\x86\Debug\YouCombat.exe 
    77C:\MyTemp\CamillaT\YouCombat\YouCombat\YouCombat\obj\x86\Debug\YouCombat.pdb 
     8C:\MyTemp\CamillaT\YouCombat\YouCombat\YouCombat\obj\x86\Debug\YouCombat.csprojResolveAssemblyReference.cache 
     9C:\MyTemp\CamillaT\YouCombat\YouCombat\YouCombat\bin\x86\Debug\Content\TubeCombat - tausta.xnb 
     10C:\MyTemp\CamillaT\YouCombat\YouCombat\YouCombat\bin\x86\Debug\Content\TubeCombat - Rauski.xnb 
     11C:\MyTemp\CamillaT\YouCombat\YouCombat\YouCombat\bin\x86\Debug\Content\TubeCombat - Miisas.xnb 
  • 2015/30/CamillaT/YouCombat/YouCombat/YouCombatContent/YouCombatContent.contentproj

    r6825 r6831  
    4545    <Reference Include="AnimationExtension" /> 
    4646  </ItemGroup> 
     47  <ItemGroup> 
     48    <Compile Include="TubeCombat - tausta.png"> 
     49      <Name>TubeCombat - tausta</Name> 
     50      <Importer>TextureImporter</Importer> 
     51      <Processor>TextureProcessor</Processor> 
     52    </Compile> 
     53  </ItemGroup> 
     54  <ItemGroup> 
     55    <Compile Include="TubeCombat - Rauski.png"> 
     56      <Name>TubeCombat - Rauski</Name> 
     57      <Importer>TextureImporter</Importer> 
     58      <Processor>TextureProcessor</Processor> 
     59    </Compile> 
     60  </ItemGroup> 
     61  <ItemGroup> 
     62    <Compile Include="TubeCombat - Miisas.png"> 
     63      <Name>TubeCombat - Miisas</Name> 
     64      <Importer>TextureImporter</Importer> 
     65      <Processor>TextureProcessor</Processor> 
     66    </Compile> 
     67  </ItemGroup> 
    4768  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    4869  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
  • 2015/30/CamillaT/YouCombat/YouCombat/YouCombatContent/obj/x86/Debug/ContentPipeline.xml

    r6825 r6831  
    22<XnaContent xmlns:Pipeline="Microsoft.Xna.Framework.Content.Pipeline"> 
    33  <Asset Type="Pipeline:BuildItemCollection"> 
     4    <Item> 
     5      <Source>TubeCombat - tausta.png</Source> 
     6      <Name>TubeCombat - tausta</Name> 
     7      <Importer>TextureImporter</Importer> 
     8      <Processor>TextureProcessor</Processor> 
     9      <Options>None</Options> 
     10      <Output>C:\MyTemp\CamillaT\YouCombat\YouCombat\YouCombat\bin\x86\Debug\Content\TubeCombat - tausta.xnb</Output> 
     11      <Time>2015-07-21T10:09:24.7358707+03:00</Time> 
     12    </Item> 
     13    <Item> 
     14      <Source>TubeCombat - Rauski.png</Source> 
     15      <Name>TubeCombat - Rauski</Name> 
     16      <Importer>TextureImporter</Importer> 
     17      <Processor>TextureProcessor</Processor> 
     18      <Options>None</Options> 
     19      <Output>C:\MyTemp\CamillaT\YouCombat\YouCombat\YouCombat\bin\x86\Debug\Content\TubeCombat - Rauski.xnb</Output> 
     20      <Time>2015-07-21T10:27:37.0809192+03:00</Time> 
     21    </Item> 
     22    <Item> 
     23      <Source>TubeCombat - Miisas.png</Source> 
     24      <Name>TubeCombat - Miisas</Name> 
     25      <Importer>TextureImporter</Importer> 
     26      <Processor>TextureProcessor</Processor> 
     27      <Options>None</Options> 
     28      <Output>C:\MyTemp\CamillaT\YouCombat\YouCombat\YouCombat\bin\x86\Debug\Content\TubeCombat - Miisas.xnb</Output> 
     29      <Time>2015-07-21T10:56:24.1850681+03:00</Time> 
     30    </Item> 
    431    <BuildSuccessful>true</BuildSuccessful> 
    532    <Settings> 
     
    1542    <Assemblies> 
    1643      <Assembly> 
     44        <Key>C:\Program Files (x86)\Jypeli\lib\ContentExtensions\TextFileContentExtension.dll</Key> 
     45        <Value>2015-02-09T20:18:44+02:00</Value> 
     46      </Assembly> 
     47      <Assembly> 
     48        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.XImporter.dll</Key> 
     49        <Value>2010-08-23T12:41:18+03:00</Value> 
     50      </Assembly> 
     51      <Assembly> 
     52        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.VideoImporters.dll</Key> 
     53        <Value>2010-08-23T12:41:18+03:00</Value> 
     54      </Assembly> 
     55      <Assembly> 
     56        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.dll</Key> 
     57        <Value>2010-08-23T12:41:18+03:00</Value> 
     58      </Assembly> 
     59      <Assembly> 
     60        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.FBXImporter.dll</Key> 
     61        <Value>2010-08-23T12:41:18+03:00</Value> 
     62      </Assembly> 
     63      <Assembly> 
     64        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.EffectImporter.dll</Key> 
     65        <Value>2010-08-23T12:41:18+03:00</Value> 
     66      </Assembly> 
     67      <Assembly> 
     68        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.AudioImporters.dll</Key> 
     69        <Value>2010-08-23T12:41:18+03:00</Value> 
     70      </Assembly> 
     71      <Assembly> 
     72        <Key>C:\Program Files (x86)\Jypeli\lib\ContentExtensions\AnimationExtension.dll</Key> 
     73        <Value>2015-02-17T22:27:18+02:00</Value> 
     74      </Assembly> 
     75      <Assembly> 
    1776        <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> 
    1877        <Value>2015-07-07T20:25:22.0280455+03:00</Value> 
Note: See TracChangeset for help on using the changeset viewer.