示例#1
0
 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;
 }
示例#2
0
 public Scene(MaritimeTravel game)
 {
     this.game  = game;
     this.songs = new Dictionary <string, Song>();
 }
示例#3
0
 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();
 }