|
|
@@ -7,27 +7,27 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
|
|
|
CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
|
|
|
CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
|
|
|
|
|
|
- Screen *screen = new Screen();
|
|
|
+ Scene *scene = new Scene(Scene::SCENE_2D_TOPLEFT);
|
|
|
|
|
|
- ScreenShape *shape = new ScreenShape(ScreenShape::SHAPE_RECT, 100,100);
|
|
|
+ ScenePrimitive *shape = new ScenePrimitive(ScenePrimitive::TYPE_VPLANE, 100,100);
|
|
|
shape->setColor(1.0, 0.0, 0.0, 1.0);
|
|
|
shape->setPosition(150,240);
|
|
|
- screen->addChild(shape);
|
|
|
+ scene->addChild(shape);
|
|
|
|
|
|
- shape = new ScreenShape(ScreenShape::SHAPE_CIRCLE, 100,100);
|
|
|
+ shape = new ScenePrimitive(ScenePrimitive::TYPE_CIRCLE, 100,100,100);
|
|
|
shape->setColor(0.0, 1.0, 0.0, 1.0);
|
|
|
shape->setPosition(260,240);
|
|
|
- screen->addChild(shape);
|
|
|
+ scene->addChild(shape);
|
|
|
|
|
|
- shape = new ScreenShape(ScreenShape::SHAPE_CIRCLE, 100,100,3);
|
|
|
+ shape = new ScenePrimitive(ScenePrimitive::TYPE_CIRCLE, 100,100,3);
|
|
|
shape->setColor(1.0, 0.0, 1.0, 1.0);
|
|
|
shape->setPosition(350,240);
|
|
|
- screen->addChild(shape);
|
|
|
+ scene->addChild(shape);
|
|
|
|
|
|
- shape = new ScreenShape(ScreenShape::SHAPE_CIRCLE, 100,100,6);
|
|
|
+ shape = new ScenePrimitive(ScenePrimitive::TYPE_CIRCLE, 100,100,6);
|
|
|
shape->setColor(0.0, 1.0, 1.0, 1.0);
|
|
|
shape->setPosition(460,240);
|
|
|
- screen->addChild(shape);
|
|
|
+ scene->addChild(shape);
|
|
|
}
|
|
|
|
|
|
bool HelloPolycodeApp::Update() {
|