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

Aselaatikoille kuva

File:
1 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 
Note: See TracChangeset for help on using the changeset viewer.