Ejemplo n.º 1
0
 public PlayerWorldBuilder(string name, string description, int gate, string playerName, bool playerEntered, Vector4 primaryColor,
                           Vector4 secondaryColor, TexturedPlaneBuilder image)
 {
     Name           = name;
     Description    = description;
     GateLevel      = gate;
     PlayerName     = playerName;
     PlayerEntered  = playerEntered;
     PrimaryColor   = primaryColor;
     SecondaryColor = secondaryColor;
     Image          = image;
 }
Ejemplo n.º 2
0
        public TexturedPlane(TexturedPlaneBuilder builder)
        {
            position = builder.Position;
            if (builder.Rotation != new Quaternion(0, 0, 0, 0))
            {
                rotation = builder.Rotation;
            }
            scale   = builder.Scale;
            texture = ScreenManager.Content.Load <Texture2D>(builder.ImagePath);
            color   = new Color(builder.Color);

            vertexArray    = new VertexPositionColorTexture[4];
            vertexArray[0] = new VertexPositionColorTexture(new Vector3(scale.X, 0, scale.Y), color, new Vector2(1, 0));
            vertexArray[1] = new VertexPositionColorTexture(new Vector3(-scale.X, 0, scale.Y), color, new Vector2(1, 1));
            vertexArray[2] = new VertexPositionColorTexture(new Vector3(scale.X, 0, -scale.Y), color, new Vector2(0, 0));
            vertexArray[3] = new VertexPositionColorTexture(new Vector3(-scale.X, 0, -scale.Y), color, new Vector2(0, 1));
        }
Ejemplo n.º 3
0
 public GenericMeteorBuilder(string name, TexturedPlaneBuilder image)
 {
     Name  = name;
     Image = image;
 }