예제 #1
0
        internal ControlObject(DiscoRoboGame game, Vector2 position, Texture2D texture)
            : base(game, position, texture)
        {
            _game = game;

            ScaleX = 0.33f;
            ScaleY = 0.33f;
        }
예제 #2
0
        // Constructor
        public GamePage()
        {
            InitializeComponent();

            _game = XamlGame<DiscoRoboGame>.Create("", this);

            // Sample code to localize the ApplicationBar
            //BuildLocalizedApplicationBar();
        }
예제 #3
0
 internal BalloonObject(DiscoRoboGame game, Texture2D texture, Vector2 position)
     : base(game, position, texture)
 {
     _game = game;
     IsActive = false;
     Scale = new Vector2(0.3f, 0.3f);
     _speed = 3;
     SpriteColor = Color.Blue;
 }
예제 #4
0
 public LineObject(DiscoRoboGame game, Vector2 position, Texture2D texture)
     : base(game, position, texture)
 {
 }
예제 #5
0
 internal ControlObject(DiscoRoboGame game, Vector2 position, Texture2D texture, ControlType type)
     : this(game, position, texture)
 {
     InputType = type;
 }