Esempio n. 1
0
 public GameObject(Position position, float width, float height, OpenTKColor color, bool isVisiable, bool collider)
 {
     this.position = position;
     Width         = width;
     Height        = height;
     this.color    = color;
     IsVisiable    = isVisiable;
     Collider      = collider;
 }
Esempio n. 2
0
        public Player(Position position, float width, float height, int id)
            : base(position, width / playerScale, height / playerScale, new OpenTKColor(1.0f, 0.0f, 0.0f), true, false)
        {
            Id = id;

            position.X += (this.Width / playerScale); // * (playerScale + 2); // if playerScale == 3
            position.Y -= (this.Height / playerScale);

            viewBlockIndentX = Width / viewBlockScale;
            viewBlockIndentY = Height / viewBlockScale;

            AbilitiesCount = 2;
            if (id == 9)
            {
                color = new OpenTKColor(0.0f, 0.0f, 1.0f);
            }
        }