Changeset 7199 for 2016/23/ohjaajat


Ignore:
Timestamp:
2016-06-07 19:49:42 (3 years ago)
Author:
empaheik
Message:
 
File:
1 edited

Legend:

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

    r7198 r7199  
    3535    { 
    3636        Gravity = new Vector(0, -1000); 
    37  
    38         IsFullScreen = true; 
    3937 
    4038        ColorTileMap map = ColorTileMap.FromLevelAsset("dungeon1"); 
     
    8482        }); 
    8583 
    86     /*    Label percentageLabel = new Label() { TextColor = playersColor, DoubleFormatString = "{0:0.0}%", Position = trackerPosition}; 
    87         Add(percentageLabel); 
    88  
    89         DoubleMeter percentageTracker = new DoubleMeter(0, 0, 100); 
    90         percentageLabel.BindTo(percentageTracker); 
    91  
    92         percentageTracker.AddTrigger(30, TriggerDirection.Up, delegate() { Win(player); }); 
    93  
    94         AddCollisionHandler(player, "platform", delegate(PhysicsObject a, PhysicsObject b) 
    95         { 
    96             ColorTile(a, b, percentageTracker); 
    97         }); 
    98      * */ 
    99  
    10084        return player; 
    10185    } 
     
    124108        List<GameObject> colored = GetObjects(o => (o.Color == red.Color || o.Color == blue.Color) && (String)o.Tag == "platform"); 
    125109        tracker.Value = (double)colored.FindAll(o => o.Color == red.Color).Count/colored.Count * 100; 
    126  
    127         //tracker.Value = (double)GetObjects(o => o.Color == player.Color && (String)o.Tag == "platform").Count / GetObjects(o => o.Color == player.Color || o.Color == blue.Color && (String)o.Tag == "platform").Count * 100.0; 
    128         //tracker.Value = (double)GetObjects(o => o.Color == player.Color && (String)o.Tag == "colored").Count / GetObjectsWithTag("platform").Count * 100.0; 
    129110    } 
    130111 
     
    149130    void Move(AnalogState stick, Player player) 
    150131    { 
    151         //player.Walk(stick.StateVector.X * 500); 
    152          
    153132        if (stick.StateVector.Magnitude > 0.15) 
    154133            player.Walk(stick.StateVector.X > 0 ? Direction.Right : Direction.Left); 
Note: See TracChangeset for help on using the changeset viewer.