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.
 
 
 
TiledCollisionEditor/main.cpp

56 lines
705 B

#include "olcUTIL_Geometry2D.h"
#include "pixelGameEngine.h"
#include "olcPGEX_TransformedView.h"
#include "olcUTIL_Camera2D.h"
using namespace olc;
#define WIDTH 640
#define HEIGHT 480
class TiledCollisionEditor : public olc::PixelGameEngine
{
public:
TiledCollisionEditor()
{
sAppName = "TiledCollisionEditor";
}
public:
bool OnUserCreate() override
{
return true;
}
bool OnUserUpdate(float fElapsedTime) override
{
return true;
}
bool OnUserDestroy()override{
return true;
}
};
enum Direction{
RIGHT,
DOWN,
LEFT,
UP
};
struct Data{
int x,y;
};
int main()
{
TiledCollisionEditor demo;
if (demo.Construct(640, 480, 4, 4))
demo.Start();
return 0;
}