mirror of
https://github.com/QuasarApp/Snake.git
synced 2025-04-26 09:44:40 +00:00
ref #97 draw circle.
This commit is contained in:
parent
0643c0001e
commit
0c092ce3d8
@ -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()
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
@ -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}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user