Example #1
0
 public Wave(BoatJourney context, Vector2 position = default(Vector2))
     : base(context, "Minigames\\boatJourneyMap", new Rectangle(640, 506, 32, 12), new Vector2(16f, 6f), position)
 {
     numFrames      = 2;
     frameInterval  = 1.25f;
     _startPosition = position;
 }
Example #2
0
 public Entity(BoatJourney context, string texture_path, Rectangle source_rect, Vector2 origin = default(Vector2), Vector2 position = default(Vector2))
 {
     _context      = context;
     _texture      = Game1.temporaryContent.Load <Texture2D>(texture_path);
     _sourceRect   = source_rect;
     this.origin   = origin;
     this.position = position;
 }
Example #3
0
 public WaterSparkle(BoatJourney context)
     : base(context, "Minigames\\boatJourneyMap", new Rectangle(647, 524, 1, 1), new Vector2(0f, 0f), new Vector2(0f, 0f))
 {
     currentFrame   = Game1.random.Next(0, 7);
     numFrames      = 7;
     frameInterval  = 0.1f;
     _startPosition = position;
     RandomizePosition();
 }
Example #4
0
 public Boat(BoatJourney context, string texture_path, Rectangle source_rect, Vector2 origin = default(Vector2), Vector2 position = default(Vector2))
     : base(context, texture_path, source_rect, origin, position)
 {
 }