public PlayerSprite(Game1 game1, Vector3 vector3, Texture2D playerTexture) : base(game1) { this.game = (Game1)game1; texture = playerTexture; initialPosition = vector3; position = initialPosition; offset = new Vector2(-0.5f * texture.Width, -0.5f * texture.Height); }
public GameScreen(Game1 game, Texture2D tex, float duration) : base(game) { this.game = game; screenTexture = tex; this.duration = duration; var content = GameServices.GetService<ContentManager>(); effect = content.Load<Effect>("effects/titleEffect"); Reset(); }
public PlayerSprite(Game game, int index, Vector3 pos, Texture2D tex) : base(game) { this.game = (Game1)game; this.index = index; texture = tex; scale = 0.1f; currentScale = 0.1f; initialPosition = pos; position = initialPosition; offset = new Vector2(-0.5f * texture.Width, -0.5f * texture.Height); }
public MapPanel(Game1 game, Texture2D barTex, Texture2D darkTex, Texture2D iconTex) : base(game) { this.game = game; barTexture = barTex; darkTexture = darkTex; iconTexture = iconTex; iconSize = iconTexture.Height; iconOffset = new Vector2(-iconSize / 2, iconSize / 2); barOffset = new Vector2(0.0f, -barTexture.Height / 2); edgePosition = game.splitScreenPositions[1]; // global offsets for bar BAR_LEFT_OFFSET = 176; BAR_RIGHT_OFFSET = 76; BAR_WIDTH = Game1.SCREEN_WIDTH - BAR_LEFT_OFFSET - BAR_RIGHT_OFFSET; }