ref #97 draw circle.

This commit is contained in:
IgorekLoschinin 2021-09-17 22:42:05 +03:00
parent 0643c0001e
commit 0c092ce3d8
3 changed files with 8 additions and 8 deletions

View File

@ -10,9 +10,9 @@
namespace TestLvl { namespace TestLvl {
GroupObjBox::GroupObjBox(): CRAWL::ClasterItem("GroupObjBox") { GroupObjBox::GroupObjBox(): CRAWL::IWorldItem("GroupObjBox") {
setDistance(2); setDistance(20);
changeLayout(CRAWL::Refresh::CIRCLE); changeLayout(CRAWL::Refresh::CIRCLE);
add(new Box); add(new Box);
@ -40,7 +40,7 @@ GroupObjBox::GroupObjBox(): CRAWL::ClasterItem("GroupObjBox") {
void GroupObjBox::render(unsigned int tbfMsec) void GroupObjBox::render(unsigned int tbfMsec)
{ {
Layout::render(tbfMsec);
} }
void GroupObjBox::init() void GroupObjBox::init()

View File

@ -13,7 +13,7 @@
namespace TestLvl { namespace TestLvl {
class GroupObjBox: public CRAWL::Layout, public CRAWL::ClasterItem { class GroupObjBox: public CRAWL::Layout, public CRAWL::IWorldItem {
public: public:
GroupObjBox(); GroupObjBox();

View File

@ -33,14 +33,14 @@ CRAWL::WorldRule *World::initWorldRules() {
return new CRAWL::WorldRule { return new CRAWL::WorldRule {
{0, {{registerObject<Box>(), 1}, {0, {{registerObject<Box>(), 1},
{registerObject<CRAWL::Fire>(), 10}, // {registerObject<CRAWL::Fire>(), 10},
{registerObject<CRAWL::DynamicWint>(), 1}, // {registerObject<CRAWL::DynamicWint>(), 1},
{registerObject<Background>(), 1}, {registerObject<Background>(), 1},
{registerObject<Day>(), 1}}}, {registerObject<Day>(), 1}}},
{500, {30,
{ {
{registerObject<GroupObjBox>(),1} {registerObject<GroupObjBox>(),5}
} }
}, },