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.
13 lines
200 B
13 lines
200 B
1 year ago
|
#include "olcPixelGameEngine.h"
|
||
|
#include "Rect.h"
|
||
|
|
||
|
Rect::Rect(int x,int y,int w, int h)
|
||
|
:x(x),y(y),w(w),h(h){}
|
||
|
|
||
|
olc::vi2d Rect::GetPos(){
|
||
|
return {x,y};
|
||
|
}
|
||
|
|
||
|
olc::vi2d Rect::GetSize(){
|
||
|
return {w,h};
|
||
|
}
|