Changeset 7216 for 2016/23


Ignore:
Timestamp:
2016-06-09 19:04:14 (3 years ago)
Author:
sieerinn
Message:

Aselaatikoille kuva

Location:
2016/23/ohjaajat/Punasininen/Punasininen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 2016/23/ohjaajat/Punasininen/Punasininen/Punasininen/Punasininen.cs

    r7215 r7216  
    3030    Color redColor = Color.FromHexCode("FABE1A"); 
    3131 
     32    private Image cratePic = LoadImage("weaponcrate"); 
    3233    private Image bluePistolpic = LoadImage("bluegun"); 
    3334    private Image orangePistolpic = LoadImage("orangegun"); 
     
    149150        WeaponCrate crate = new WeaponCrate(width, height); 
    150151        crate.Position = place; 
    151         crate.Color = Color.DarkGray; 
     152        crate.Image = cratePic; 
     153        crate.IgnoresCollisionResponse = true; 
     154        crate.MakeStatic(); 
    152155        Add(crate); 
     156 
     157        crate.Oscillate(Vector.UnitY, 10, 0.4); 
    153158    } 
    154159 
  • 2016/23/ohjaajat/Punasininen/Punasininen/PunasininenContent/PunasininenContent.contentproj

    r7213 r7216  
    392392    </Compile> 
    393393  </ItemGroup> 
     394  <ItemGroup> 
     395    <Compile Include="weaponcrate.png"> 
     396      <Name>weaponcrate</Name> 
     397      <Importer>TextureImporter</Importer> 
     398      <Processor>TextureProcessor</Processor> 
     399    </Compile> 
     400  </ItemGroup> 
    394401  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    395402  <!--  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.