X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Forbi.cpp;h=5775459dd5a6f5f6c9a95c578b01d46d4c80c13b;hb=a8523bee4fc349a800f5f6d67b470c3a801beaa9;hp=b05244189b05a5c9535fee342f1cde49eb522d92;hpb=dbc08d84d9de1a77cba0dd97e4701f4ac99d056e;p=orbi.git diff --git a/src/orbi.cpp b/src/orbi.cpp index b052441..5775459 100644 --- a/src/orbi.cpp +++ b/src/orbi.cpp @@ -48,8 +48,14 @@ int main(int argc, const char *argv[]) { world.SetTile(Vector(9, 5), Tile(0)); world.SetTile(Vector(9, 6), Tile(0)); + world.SetTile(Vector(3, 8), Tile(0)); + world.SetTile(Vector(2, 9), Tile(0)); + world.SetTile(Vector(3, 9), Tile(0)); + Entity e; - e.bounds = AABB(Vector(5, 0), Vector(2, 3)); + e.vbox = AABB(Vector(.1, 0), Vector(1.8, 3)); + e.hbox = AABB(Vector(0, .1), Vector(2, 1.8)); + e.Move(Vector(5, 0)); Entity &player = world.AddEntity(e); Application app(canv, world, tiles);