public Level(Seizonsha game) { this.game = game; this.map = new TileMap(this, Static.TILES_ON_SCREEN_X*2, Static.TILES_ON_SCREEN_Y); this.tileSprites = new Dictionary<int, Texture2D>(); initialize(); }
public GameEntity(Seizonsha game, Texture2D sprite, int x, int y, int width, int height, int targetType, int maxHealth) { this.x = x; this.y = y; this.width = width; this.height = height; this.targetType = targetType; this.maxHealth = maxHealth; this.health = maxHealth; this.remove = false; this.hitbox = new Rectangle(x, y, width, height); this.velocityX = 0; this.velocityY = 0; this.game = game; this.sprite = sprite; this.direction = 0; this.collidable = true; this.color = Color.White; this.frozen = 0; }
public Player(Seizonsha game, PlayerIndex playerIndex, Texture2D sprite, int x, int y) : base(game, sprite, x, y, Static.PLAYER_WIDTH, Static.PLAYER_HEIGHT, Static.TARGET_TYPE_FRIENDLY, Static.PLAYER_MAX_HEALTH) { this.cameraX = 0; this.cameraY = 0; this.skillPoints = 0; this.xp = 0; this.mana = Static.PLAYER_MAX_MANA; this.health = Static.PLAYER_MAX_HEALTH; this.dead = false; this.playerIndex = playerIndex; this.skillSlots = new Equipable[5]; //each slot is different skill, weapon, or item this.inventory = new List<Equipable>(); Equip(new ChangeColor(Color.Red), Static.PLAYER_L1_SKILL_INDEX); Equip(new ChangeColor(Color.Purple), Static.PLAYER_L2_SKILL_INDEX); Equip(new ChangeColor(Color.Green), Static.PLAYER_R1_SKILL_INDEX); Equip(new Sword(30, 10), Static.PLAYER_R2_SKILL_INDEX); Equip(new Gun(30, 10, new Vector2(10,10)), Static.PLAYER_LEFTCLICK_SKILL_INDEX); }
static void Main() { using (var game = new Seizonsha()) game.Run(); }