Changeset 7997 for 2016


Ignore:
Timestamp:
2016-07-07 20:23:43 (3 years ago)
Author:
tesatapa
Message:

Collectiblet typellä collectible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2016/27/ohjaajat/VenienteFragore/VenienteFragore/VenienteFragore/LevelCreationMethods.cs

    r7994 r7997  
    207207        } 
    208208 
     209 
     210        private void CreateCollectible(Vector position, double width, double height, Dictionary<string, string> properties) 
     211        { 
     212            SimplePhysics.Object collectible = new SimplePhysics.Object(width, height); 
     213            collectible.IgnoresGravity = true; 
     214            collectible.Position = position; 
     215            collectible.Tag = "collectible"; 
     216            collectible.Shape = Shape.CreateRegularPolygon(RandomGen.NextInt(3, 8)); 
     217            collectible.Color = Color.Purple; 
     218            //collectible.Image = jotain; 
     219            Add(collectible); 
     220 
     221        } 
     222 
    209223        private void CreateMovingPlatform(Vector position, double width, double height, Dictionary<string, string> properties) 
    210224        { 
Note: See TracChangeset for help on using the changeset viewer.