I wrote a simple 2d game with collision, all works fine, but when I resize, move game window or make game fullscreen my players and enemies coordinates are changing and this is makes them out of range of my map, only in windows , on linux all worked fine