author | harlekin <harlekin> | 2002-05-15 17:33:19 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-05-15 17:33:19 (UTC) |
commit | 968718335dd546fcb0f7cd27094d151a247f6c48 (patch) (unidiff) | |
tree | 2cd22f9a78477f09bf58eb341dd1eb96eabc6cbd /noncore/games | |
parent | a1f53542132be75295e52b17661204860bc486d4 (diff) | |
download | opie-968718335dd546fcb0f7cd27094d151a247f6c48.zip opie-968718335dd546fcb0f7cd27094d151a247f6c48.tar.gz opie-968718335dd546fcb0f7cd27094d151a247f6c48.tar.bz2 |
image relocation
-rw-r--r-- | noncore/games/snake/interface.cpp | 15 |
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) : | |||
65 | 65 | ||
66 | welcomescreen(); | 66 | QTimer::singleShot( 16, this, SLOT(welcomescreen()) ); |
67 | gamestopped = true; | 67 | gamestopped = true; |
@@ -90,3 +90,3 @@ void SnakeGame::welcomescreen() | |||
90 | title->show(); | 90 | title->show(); |
91 | QCanvasPixmapArray* titlearray = new QCanvasPixmapArray(Resource::findPixmap("title")); | 91 | QCanvasPixmapArray* titlearray = new QCanvasPixmapArray(Resource::findPixmap("snake/title")); |
92 | QCanvasSprite* titlepic = new QCanvasSprite(titlearray, &canvas); | 92 | QCanvasSprite* titlepic = new QCanvasSprite(titlearray, &canvas); |
@@ -104,3 +104,3 @@ void SnakeGame::welcomescreen() | |||
104 | w = cont->boundingRect().width(); | 104 | w = cont->boundingRect().width(); |
105 | cont->move(canvas.width()/2-w/2, canvas.height()/2+80); | 105 | cont->move(canvas.width()/2-w/2, canvas.height()-20); |
106 | cont->setColor(yellow); | 106 | cont->setColor(yellow); |
@@ -126,8 +126,5 @@ void SnakeGame::newGame() | |||
126 | waitover = true; | 126 | waitover = true; |
127 | int x = canvas.width()/2 - 70; | ||
128 | x = x - x % 16; | ||
129 | int y = canvas.height()-50; | 127 | int y = canvas.height()-50; |
130 | y = y - y % 16; | 128 | (void)new Obstacle(&canvas, 32); |
131 | (void)new Obstacle(&canvas, x, 32); | 129 | (void)new Obstacle(&canvas, y); |
132 | (void)new Obstacle(&canvas, x, y); | ||
133 | createTargets(); | 130 | createTargets(); |
@@ -194,3 +191,3 @@ void SnakeGame::gameOver() | |||
194 | waitover = false; | 191 | waitover = false; |
195 | pauseTimer->start(2500); | 192 | pauseTimer->start(1500); |
196 | } | 193 | } |