From 1cf5a427a829b22abea7027b18a130a01da3ed6a Mon Sep 17 00:00:00 2001 From: Samu Laaksonen Date: Fri, 28 Sep 2012 22:36:58 +0300 Subject: Rename commit Renamed some files according the project name Added base directory structure for resources Changed more fitting parallax scrolled background to menus - added 3 new layers as resources Changed more cheerful buttons to menus Added base classes to build HUD later on Added one new test level that is size of 800*480 with tilesize of 32*32 --- src/MenuScene.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/MenuScene.cpp') diff --git a/src/MenuScene.cpp b/src/MenuScene.cpp index 1deaa66..241f423 100644 --- a/src/MenuScene.cpp +++ b/src/MenuScene.cpp @@ -15,8 +15,12 @@ MenuScene::MenuScene(const QString &name, const QRectF &rect, GameView *parent) m_background = new ParallaxScrollerStatic(this); m_background->setLayerWidth(rect.width()); - m_background->addParallaxScrollItem(QString(appDir + "/gfx/bg/layer1.png"), QPointF(0,0), -2, 6); - m_background->addParallaxScrollItem(QString(appDir + "/gfx/bg/layer2.png"), QPointF(0,0), -1, 4); + //m_background->addParallaxScrollItem(QString(appDir + "/gfx/bg/layer1.png"), QPointF(0,0), -2, 6); + //m_background->addParallaxScrollItem(QString(appDir + "/gfx/bg/layer2.png"), QPointF(0,0), -1, 4); + + m_background->addParallaxScrollItem(QString(appDir + "/data/gfx/background/layer_three.png"), QPointF(0,0), -3, 8); + m_background->addParallaxScrollItem(QString(appDir + "/data/gfx/background/layer_two.png"), QPointF(0,0), -2, 6); + m_background->addParallaxScrollItem(QString(appDir + "/data/gfx/background/layer_one.png"), QPointF(0,0), -1, 4); initializeScene(); } @@ -49,5 +53,5 @@ void MenuScene::initializeScene() connect(btn2, SIGNAL(clicked()), gameView(), SLOT(showCreditsScene())); connect(btn3, SIGNAL(clicked()), qApp, SLOT(quit())); - addTitle("Platformer"); + addTitle("prism"); } -- cgit v1.2.3