An image editing program inspired by the 3DS title 'FlipNote Studio' featuring the same resolution to give the images the same look.
at master 430 B view raw
1using static SDL2.SDL; 2using Fjord.Modules.Input; 3 4namespace Game { 5 public static class helpers { 6 public static bool mouse_inside(SDL_Rect rect, int margin=0) { 7 if ((mouse.x > rect.x - margin && mouse.x < rect.x + rect.w + margin) && (mouse.y > rect.y - margin && mouse.y < rect.y + rect.h + margin)) 8 return true; 9 else 10 return false; 11 } 12 } 13}