00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include <qlayout.h>
00019 #include <qtextview.h>
00020
00021 #include <qpe/qpeapplication.h>
00022
00023 #include "helpwindow.h"
00024
00025
00026 static QString HELP_TEXT() {
00027 return QObject::tr("<qt><h1>SFCave Help</h1><p> "
00028 "SFCave is a flying game for the Zaurus.<br><br> "
00029 "The aim is to stay alive for as long as possible and get the highest score "
00030 "you can.<br><br>"
00031 "There are three game types currently - SFCave, Gates, and Fly.<br>"
00032 "<b>SFCave</b> is a remake of the classic SFCave game - fly through the "
00033 "cavern avoiding all the blocks that just happen to be hanging in "
00034 "midair<br><br>"
00035 "<b>Gates</b> is similar to SFCave but instead you must fly through the "
00036 "without crashing.<br><br>"
00037 "<b>Fly</b> is somewhat different to SFCave and above. Instead, you have "
00038 "are flying in the open air above a scrolling landscape, and the aim is to "
00039 "hug the ground - the closer to the land you fly the more points "
00040 "scored.<br><br><br>"
00041 "Basic instruction - Press <b>Up</B> or <b>Down</b> on the circle pad to "
00042 "start a new game, press the middle of the pad to apply thrust (makes you "
00043 "go up), and release the pad to remove thrust and drop down.<br><br>"
00044 "Also, if playing the Fly game, you can press z to toggle the display "
00045 "of the scoring zones. This will display 4 red lines at varying heights "
00046 "above the landscape - if your ship falls into this zone, point are scored. "
00047 "The closer to the landscape you get the more points you get.<br><br>"
00048 "In addition, SFCave has replays - save and load too so you can show off to all "
00049 "your friends (or vice versa). Currently, this is in its infancy but will improve.<br>"
00050 "To use, once you have crashed, press 'r' to replay the last game.<br>"
00051 "To save the replay press 's'.<br>"
00052 "To load a saved replay press 'l' (after you've crashed at least once).<br><br>"
00053 "Replays are currently saved to your home directory in a file called sfcave.replay."
00054 "This file can be copied and given to others as long as it it put in their home directory.<br><br>"
00055 "Have lots of fun.<br>"
00056 "Andy"
00057 "</p></qt>");
00058 }
00059
00060
00061 HelpWindow::HelpWindow( QWidget *parent, const char *name)
00062 : QWidget( parent, name, WDestructiveClose )
00063 {
00064 setCaption( tr("Help for SFCave") );
00065
00066 QVBoxLayout *layout = new QVBoxLayout( this );
00067 QString text = HELP_TEXT();;
00068 QTextView *view = new QTextView( text, 0, this, "view" );
00069 layout->insertSpacing( -1, 5 );
00070 layout->insertWidget( -1, view );
00071 layout->insertSpacing( -1, 5 );
00072 }
00073
00074 HelpWindow::~HelpWindow()
00075 {
00076 }