Ignore:
Timestamp:
2014-07-03 12:31:09 (9 years ago)
Author:
mijoilmo
Message:
 
Location:
2014/27/AleksanteriV/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor
Files:
3 added
12 edited

Legend:

Unmodified
Added
Removed
  • 2014/27/AleksanteriV/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Player.cs

    r5320 r5342  
    4242        } 
    4343        this.AngularDamping = 0.7; 
     44        this.Restitution = 0.2; 
    4445 
    4546        this.thrusterEffect = new GameObject(40, 40); 
  • 2014/27/AleksanteriV/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor.cs

    r5339 r5342  
    3333        images["background0"] = LoadImage("graphics/backgrounds/space_background"); 
    3434        images["backgroundmars"] = LoadImage("graphics/backgrounds/Mars"); 
     35        images["backgroundplanet1"] = LoadImage("graphics/backgrounds/planet1"); 
    3536        images["player"] = LoadImage("graphics/ships/player"); 
    3637        images["tile0"] = LoadImage("graphics/tiles/tile0"); 
     
    4445        if (level.IsPlanet) 
    4546        { 
    46             Gravity = new Vector(0, -400); 
     47            Gravity = new Vector(0, -200); 
     48            player.LinearDamping = 0.99;//ns ilmanvastus 
     49        } 
     50        else { 
     51            Gravity = new Vector(0, 0); 
     52            player.LinearDamping = 1;//avaruudessa ei ilmanvastusta 
    4753        } 
    4854        Add(this.player); 
     
    8692 
    8793        //luo backgroundit (3) 
    88         GameObject bg = new GameObject(1,1); 
    89         //bg.Image = images["ba"]; 
     94 
     95        GameObject bgCenter = new GameObject(Level.Width,Level.Height); 
     96        bgCenter.Image = images["backgroundplanet1"]; 
     97        Add(bgCenter, -3); 
     98        GameObject bgLeft = new GameObject(Level.Width, Level.Height); 
     99        bgLeft.Image = images["backgroundplanet1"]; 
     100        bgLeft.X += Level.Width; 
     101        Add(bgLeft, -3); 
     102        GameObject bgRight = new GameObject(Level.Width, Level.Height); 
     103        bgRight.Image = images["backgroundplanet1"]; 
     104        bgRight.X -= Level.Width; 
     105        Add(bgRight, -3); 
    90106    } 
    91107    void createTile(Vector position, double w, double h, string id) 
     
    112128        this.player = new Player(this); 
    113129        this.player.IsUpdated = true; 
    114  
    115130        LoadLevel(new ProtoLevel(this, "0", true));//tää on huono metodi, TODO: luo level-classit ennen lataamista 
    116131    } 
  • 2014/27/AleksanteriV/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor.csproj.Debug.cachefile

    r5339 r5342  
    99Content\graphics\Enemy\Enemy1.2.xnb 
    1010Content\graphics\Enemy\Enemy2.0.xnb 
     11Content\graphics\backgrounds\Mars.xnb 
     12Content\graphics\backgrounds\planet1.xnb 
  • 2014/27/AleksanteriV/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/obj/x86/Debug/ContentPipeline-{5156C658-EF8C-4216-BA6D-9928D133FE72}.xml

    r5339 r5342  
    9292      <Time>2014-07-03T11:51:49.7351934+03:00</Time> 
    9393    </Item> 
     94    <Item> 
     95      <Source>graphics\backgrounds\Mars.png</Source> 
     96      <Name>graphics\backgrounds\Mars</Name> 
     97      <Importer>TextureImporter</Importer> 
     98      <Processor>TextureProcessor</Processor> 
     99      <Options>None</Options> 
     100      <Output>C:\MyTemp\AleksanteriV\Protokolla236TrueSurvivor\Protokolla236TrueSurvivor\Protokolla236TrueSurvivor\bin\x86\Debug\Content\graphics\backgrounds\Mars.xnb</Output> 
     101      <Time>2014-07-02T10:19:55.4802372+03:00</Time> 
     102    </Item> 
     103    <Item> 
     104      <Source>graphics\backgrounds\planet1.png</Source> 
     105      <Name>graphics\backgrounds\planet1</Name> 
     106      <Importer>TextureImporter</Importer> 
     107      <Processor>TextureProcessor</Processor> 
     108      <Options>None</Options> 
     109      <Output>C:\MyTemp\AleksanteriV\Protokolla236TrueSurvivor\Protokolla236TrueSurvivor\Protokolla236TrueSurvivor\bin\x86\Debug\Content\graphics\backgrounds\planet1.xnb</Output> 
     110      <Time>2014-07-03T12:30:13.8820204+03:00</Time> 
     111    </Item> 
    94112    <BuildSuccessful>true</BuildSuccessful> 
    95113    <Settings> 
  • 2014/27/AleksanteriV/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/obj/x86/Debug/Protokolla236TrueSurvivor.csproj.FileListAbsolute.txt

    r5339 r5342  
    3131C:\MyTemp\AleksanteriV\Protokolla236TrueSurvivor\Protokolla236TrueSurvivor\Protokolla236TrueSurvivor\obj\x86\Debug\Protokolla236TrueSurvivor.exe 
    3232C:\MyTemp\AleksanteriV\Protokolla236TrueSurvivor\Protokolla236TrueSurvivor\Protokolla236TrueSurvivor\obj\x86\Debug\Protokolla236TrueSurvivor.pdb 
     33C:\MyTemp\AleksanteriV\Protokolla236TrueSurvivor\Protokolla236TrueSurvivor\Protokolla236TrueSurvivor\bin\x86\Debug\Content\graphics\backgrounds\Mars.xnb 
     34C:\MyTemp\AleksanteriV\Protokolla236TrueSurvivor\Protokolla236TrueSurvivor\Protokolla236TrueSurvivor\bin\x86\Debug\Content\graphics\backgrounds\planet1.xnb 
  • 2014/27/AleksanteriV/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/obj/x86/Debug/cachefile-{5156C658-EF8C-4216-BA6D-9928D133FE72}-targetpath.txt

    r5339 r5342  
    99Content\graphics\Enemy\Enemy1.2.xnb 
    1010Content\graphics\Enemy\Enemy2.0.xnb 
     11Content\graphics\backgrounds\Mars.xnb 
     12Content\graphics\backgrounds\planet1.xnb 
  • 2014/27/AleksanteriV/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Protokolla236TrueSurvivorContent/Protokolla236TrueSurvivorContent.contentproj

    r5339 r5342  
    110110    </Compile> 
    111111  </ItemGroup> 
     112  <ItemGroup> 
     113    <Compile Include="graphics\backgrounds\Mars.png"> 
     114      <Name>Mars</Name> 
     115      <Importer>TextureImporter</Importer> 
     116      <Processor>TextureProcessor</Processor> 
     117    </Compile> 
     118  </ItemGroup> 
     119  <ItemGroup> 
     120    <Compile Include="graphics\backgrounds\planet1.png"> 
     121      <Name>planet1</Name> 
     122      <Importer>TextureImporter</Importer> 
     123      <Processor>TextureProcessor</Processor> 
     124    </Compile> 
     125  </ItemGroup> 
    112126  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    113127  <!--  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.