A stealth-based 2D platformer where you don't have to kill anyone unless you want to. https://www.semicolin.games
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
453 B

3 years ago
  1. using Microsoft.Xna.Framework;
  2. namespace SemiColinGames {
  3. public static class FnaExtensionMethods {
  4. // Point
  5. public static Vector2 ToVector2(this Point p) {
  6. return new Vector2(p.X, p.Y);
  7. }
  8. // Rectangle
  9. public static Point Size(this Rectangle r) {
  10. return new Point(r.Width, r.Height);
  11. }
  12. // Vector2
  13. public static Point ToPoint(this Vector2 v) {
  14. return new Point((int) v.X, (int) v.Y);
  15. }
  16. }
  17. }