public Fish(Texture2D fishTexture, MaritimeTravel game) { this.fishSprite = new Sprite(fishTexture, new Vector2(fishTexture.Width / 2, fishTexture.Height / 2)); this.transform = new Transform(); this.physics = new Rigidbody(30, 0.05f); this.health = new Health(); this.transform.Scale *= 2; this.fishSprite.LayerDepth = 1; this.game = game; }
public Scene(MaritimeTravel game) { this.game = game; this.songs = new Dictionary <string, Song>(); }
public TitleScene(MaritimeTravel game) : base(game) { this.gameObjects = new List <GameObject>(); this.camera = new Camera(); }
public TutorialScene(MaritimeTravel game) : base(game) { gameObjects = new List <GameObject>(); registeredTextures = new Dictionary <string, Texture2D>(); camera = new Camera(); }