aboutsummaryrefslogtreecommitdiff
path: root/src/MenuScene.cpp
diff options
context:
space:
mode:
authorSamu Laaksonen <laaksonen.sj@gmail.com>2012-09-28 22:36:58 +0300
committerSamu Laaksonen <laaksonen.sj@gmail.com>2012-09-28 22:36:58 +0300
commit1cf5a427a829b22abea7027b18a130a01da3ed6a (patch)
tree9076e816e052bb35e52890a13562844090312be5 /src/MenuScene.cpp
parent685fe05def77b039221edf06c74af74915d536c5 (diff)
downloadprism-1cf5a427a829b22abea7027b18a130a01da3ed6a.tar.gz
prism-1cf5a427a829b22abea7027b18a130a01da3ed6a.zip
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
Diffstat (limited to 'src/MenuScene.cpp')
-rw-r--r--src/MenuScene.cpp10
1 files changed, 7 insertions, 3 deletions
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");
}