summaryrefslogtreecommitdiff
path: root/noncore/games
authorharlekin <harlekin>2002-05-15 17:33:19 (UTC)
committer harlekin <harlekin>2002-05-15 17:33:19 (UTC)
commit968718335dd546fcb0f7cd27094d151a247f6c48 (patch) (side-by-side diff)
tree2cd22f9a78477f09bf58eb341dd1eb96eabc6cbd /noncore/games
parenta1f53542132be75295e52b17661204860bc486d4 (diff)
downloadopie-968718335dd546fcb0f7cd27094d151a247f6c48.zip
opie-968718335dd546fcb0f7cd27094d151a247f6c48.tar.gz
opie-968718335dd546fcb0f7cd27094d151a247f6c48.tar.bz2
image relocation
Diffstat (limited to 'noncore/games') (more/less context) (show whitespace changes)
-rw-r--r--noncore/games/snake/interface.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/noncore/games/snake/interface.cpp b/noncore/games/snake/interface.cpp
index c9b4931..c824543 100644
--- a/noncore/games/snake/interface.cpp
+++ b/noncore/games/snake/interface.cpp
@@ -65,3 +65,3 @@ SnakeGame::SnakeGame(QWidget* parent, const char* name, WFlags f) :
- welcomescreen();
+ QTimer::singleShot( 16, this, SLOT(welcomescreen()) );
gamestopped = true;
@@ -90,3 +90,3 @@ void SnakeGame::welcomescreen()
title->show();
- QCanvasPixmapArray* titlearray = new QCanvasPixmapArray(Resource::findPixmap("title"));
+ QCanvasPixmapArray* titlearray = new QCanvasPixmapArray(Resource::findPixmap("snake/title"));
QCanvasSprite* titlepic = new QCanvasSprite(titlearray, &canvas);
@@ -104,3 +104,3 @@ void SnakeGame::welcomescreen()
w = cont->boundingRect().width();
- cont->move(canvas.width()/2-w/2, canvas.height()/2+80);
+ cont->move(canvas.width()/2-w/2, canvas.height()-20);
cont->setColor(yellow);
@@ -126,8 +126,5 @@ void SnakeGame::newGame()
waitover = true;
- int x = canvas.width()/2 - 70;
- x = x - x % 16;
int y = canvas.height()-50;
- y = y - y % 16;
- (void)new Obstacle(&canvas, x, 32);
- (void)new Obstacle(&canvas, x, y);
+ (void)new Obstacle(&canvas, 32);
+ (void)new Obstacle(&canvas, y);
createTargets();
@@ -194,3 +191,3 @@ void SnakeGame::gameOver()
waitover = false;
- pauseTimer->start(2500);
+ pauseTimer->start(1500);
}