public Enemy(ITSGame game, Color baseColor, float radius, Vector2 startPos, float startRot = 0, Behavior behavior = null) : base(game, GenerateImage(), null, new Color(0.8f, 0.8f, 0.8f, 0.4f), baseColor, radius) { this.StartPos = startPos; this.StartRot = startRot; this.Behavior = behavior; this.IsAlive = true; }
public HUD(ITSGame game) { this.game = game; lanIp = WebControllerManager.getLanIpWithPort(); Title = new Sprite("Images/title.png", 500, Color.White, false); distanceMarker = new Image("Images/distanceIndicator-marker.png"); }
public Leviathan(ITSGame game, Color baseColor, float radius, Vector2 startPos, float startRot = 0, LeviathanBehavior behavior = null) : base(game, new MonoGame_Engine.Gfx.Image(TimeSpan.FromSeconds(0.4), AnimationType.Loop, "Images/boss-1.png", "Images/boss-2.png"), "Images/boss-1.png", Color.SlateGray, baseColor, radius, false) { this.StartPos = startPos; this.StartRot = startRot; this.Behavior = behavior; this.IsAlive = true; this.IsFleeing = false; this.HighlightIndicator = true; health = 500; astronaut = new Image("Images/happy-ending.png"); }
public Player(ITSGame game, int playerNum, float radius) : base(game, "Images/player.png", $"Images/character_{(playerNum % 4) + 1:00}.png", colors[playerNum % colors.Length], colors[playerNum % colors.Length], radius) { this.PlayerNum = playerNum; Collectables = new Dictionary <CollectableType, int>(); foreach (CollectableType e in Enum.GetValues(typeof(CollectableType))) { Collectables.Add(e, 0); } Bullets = new BulletSystem(this, "Images/bullet.png", 300, 15); IsAlive = true; BulletType = BulletType.Normal; this.flame = new MonoGame_Engine.Gfx.Image(TimeSpan.FromSeconds(0.2), AnimationType.Loop, "Images/PlayerFlame-1.png", "Images/PlayerFlame-2.png"); }
public MainScene(ITSGame game) : base(game) { BackgroundImg = new TilingImage("Images/starfield.png", game); Background = new Sprite(BackgroundImg, -1); Parcel = new Parcel(game, Color.White, 32f); Players = new List <Player>(); Enemies = new List <Enemy>(); CollisionHandler = new CollisionHandler(this); Level = new Level(game, 300, 1000, 30, 40, TimeSpan.FromSeconds(2)); Leviathan = new Leviathan(game, Color.White, 400, game.Camera.Phy.Pos, MathHelper.PiOver2, new LeviathanBehavior(this)); Hud = new HUD(game); }
public GameObject(ITSGame game, string assetPath, string indicatorAssetPath, Color indicatorColor, Color baseColor, float radius, bool orientedPhysics = true) : base(assetPath, radius, baseColor, orientedPhysics) { this.game = game; this.IndicatorColor = indicatorColor; this.IndicatorAsset = indicatorAssetPath; }
public Parcel(ITSGame game, Color color, float radius) : base(game, "Images/parcel.png", "Images/parcel.png", color, color, radius) { }