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

using Microsoft.Xna.Framework;
namespace SemiColinGames {
public static class FnaExtensionMethods {
// Point
public static Vector2 ToVector2(this Point p) {
return new Vector2(p.X, p.Y);
// Rectangle
public static Point Size(this Rectangle r) {
return new Point(r.Width, r.Height);
// Vector2
public static Point ToPoint(this Vector2 v) {
return new Point((int) v.X, (int) v.Y);