summaryrefslogtreecommitdiff
authorandyq <andyq>2002-12-11 17:58:16 (UTC)
committer andyq <andyq>2002-12-11 17:58:16 (UTC)
commit676f39d78772b19d11471db55ece82262278f942 (patch) (unidiff)
tree81cb41837adcd74bb8d48a4e39bd5c8832c04481
parent7c897dfbee81f0fabce4b1a8de4ebab70f3783ee (diff)
downloadopie-676f39d78772b19d11471db55ece82262278f942.zip
opie-676f39d78772b19d11471db55ece82262278f942.tar.gz
opie-676f39d78772b19d11471db55ece82262278f942.tar.bz2
Updated help
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/sfcave/helpwindow.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/noncore/games/sfcave/helpwindow.cpp b/noncore/games/sfcave/helpwindow.cpp
index 8f277af..aa15ac6 100644
--- a/noncore/games/sfcave/helpwindow.cpp
+++ b/noncore/games/sfcave/helpwindow.cpp
@@ -1,72 +1,79 @@
1/*************************************************************************** 1/***************************************************************************
2 helpwindow.cpp - description 2 helpwindow.cpp - description
3 ------------------- 3 -------------------
4 begin : Sun Sep 8 2002 4 begin : Sun Sep 8 2002
5 copyright : (C) 2002 by Andy Qua 5 copyright : (C) 2002 by Andy Qua
6 email : andy.qua@blueyonder.co.uk 6 email : andy.qua@blueyonder.co.uk
7 ***************************************************************************/ 7 ***************************************************************************/
8 8
9/*************************************************************************** 9/***************************************************************************
10 * * 10 * *
11 * This program is free software; you can redistribute it and/or modify * 11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by * 12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or * 13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. * 14 * (at your option) any later version. *
15 * * 15 * *
16 ***************************************************************************/ 16 ***************************************************************************/
17 17
18#include <qwidget.h> 18#include <qwidget.h>
19#include <qlayout.h> 19#include <qlayout.h>
20#include <qstring.h> 20#include <qstring.h>
21#include <qtextview.h> 21#include <qtextview.h>
22 22
23#include "helpwindow.h" 23#include "helpwindow.h"
24 24
25 25
26#define HELP_TEXT \ 26#define HELP_TEXT \
27"<qt><h1>SFCave Help</h1><p> " \ 27"<qt><h1>SFCave Help</h1><p> " \
28"SFCave is a flying game for the Zaurus.<br><br> " \ 28"SFCave is a flying game for the Zaurus.<br><br> " \
29"The aim is to stay alive for as long as possible and get the highest score " \ 29"The aim is to stay alive for as long as possible and get the highest score " \
30"you can.<br><br>" \ 30"you can.<br><br>" \
31"There are three game types currently - SFCave, Gates, and Fly.<br>" \ 31"There are three game types currently - SFCave, Gates, and Fly.<br>" \
32"<b>SFCave</b> is a remake of the classic SFCave game - fly through the " \ 32"<b>SFCave</b> is a remake of the classic SFCave game - fly through the " \
33"cavern avoiding all the blocks that just happen to be hanging in " \ 33"cavern avoiding all the blocks that just happen to be hanging in " \
34"midair<br><br>" \ 34"midair<br><br>" \
35"<b>Gates</b> is similar to SFCave but instead you must fly through the " \ 35"<b>Gates</b> is similar to SFCave but instead you must fly through the " \
36"without crashing.<br><br>" \ 36"without crashing.<br><br>" \
37"<b>Fly</b> is somewhat different to SFCave and above. Instead, you have " \ 37"<b>Fly</b> is somewhat different to SFCave and above. Instead, you have " \
38"are flying in the open air above a scrolling landscape, and the aim is to " \ 38"are flying in the open air above a scrolling landscape, and the aim is to " \
39"hug the ground - the closer to the land you fly the more points " \ 39"hug the ground - the closer to the land you fly the more points " \
40"scored.<br><br><br>" \ 40"scored.<br><br><br>" \
41"Basic instruction - Press <b>Up</B> or <b>Down</b> on the circle pad to " \ 41"Basic instruction - Press <b>Up</B> or <b>Down</b> on the circle pad to " \
42"start a new game, press the middle of the pad to apply thrust (makes you " \ 42"start a new game, press the middle of the pad to apply thrust (makes you " \
43"go up), and release the pad to remove thrust and drop down.<br><br>" \ 43"go up), and release the pad to remove thrust and drop down.<br><br>" \
44"Also, if playing the Fly game, you can press z to toggle the display " \ 44"Also, if playing the Fly game, you can press z to toggle the display " \
45"of the scoring zones. This will display 4 red lines at varying heights " \ 45"of the scoring zones. This will display 4 red lines at varying heights " \
46"above the landscape - if your ship falls into this zone, point are scored. " \ 46"above the landscape - if your ship falls into this zone, point are scored. " \
47"The closer to the landscape you get the more points you get.<br><br>" \ 47"The closer to the landscape you get the more points you get.<br><br>" \
48"In addition, SFCave has replays - save and load too so you can show off to all " \
49"your friends (or vice versa). Currently, this is in its infancy but will improve.<br>" \
50"To use, once you have crashed, press 'r' to replay the last game.<br>" \
51"To save the replay press 's'.<br>" \
52"To load a saved replay press 'l' (after you've crashed at least once).<br><br>" \
53"Replays are currently saved to your home directory in a file called sfcave.replay." \
54"This file can be copied and given to others as long as it it put in their home directory.<br><br>" \
48"Have lots of fun.<br>" \ 55"Have lots of fun.<br>" \
49"Andy" \ 56"Andy" \
50"</p></qt>" 57"</p></qt>"
51 58
52 59
53HelpWindow::HelpWindow( QWidget *parent, const char *name, bool modal, WFlags flags ) 60HelpWindow::HelpWindow( QWidget *parent, const char *name, bool modal, WFlags flags )
54 : QDialog( parent, name, modal, flags ) 61 : QDialog( parent, name, modal, flags )
55{ 62{
56// resize( 230, 280 ); 63// resize( 230, 280 );
57 64
58 setCaption( "Help for AQPkg" ); 65 setCaption( "Help for AQPkg" );
59 66
60 QVBoxLayout *layout = new QVBoxLayout( this ); 67 QVBoxLayout *layout = new QVBoxLayout( this );
61 QString text = HELP_TEXT;; 68 QString text = HELP_TEXT;;
62 QTextView *view = new QTextView( text, 0, this, "view" ); 69 QTextView *view = new QTextView( text, 0, this, "view" );
63 layout->insertSpacing( -1, 5 ); 70 layout->insertSpacing( -1, 5 );
64 layout->insertWidget( -1, view ); 71 layout->insertWidget( -1, view );
65 layout->insertSpacing( -1, 5 ); 72 layout->insertSpacing( -1, 5 );
66 73
67 showMaximized(); 74 showMaximized();
68} 75}
69 76
70HelpWindow::~HelpWindow() 77HelpWindow::~HelpWindow()
71{ 78{
72} 79}