summaryrefslogtreecommitdiff
authorandyq <andyq>2002-12-07 18:07:52 (UTC)
committer andyq <andyq>2002-12-07 18:07:52 (UTC)
commit87c1794b5cfb3e6bccf55d260a601341479d95c7 (patch) (unidiff)
tree380cd9dc4e7fdde8fecd1c8b242d17b5c4dc2bb1
parent25debd07f03e4a1b21047ee5d49a3dd811d8352a (diff)
downloadopie-87c1794b5cfb3e6bccf55d260a601341479d95c7.zip
opie-87c1794b5cfb3e6bccf55d260a601341479d95c7.tar.gz
opie-87c1794b5cfb3e6bccf55d260a601341479d95c7.tar.bz2
New
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/sfcave/helpwindow.cpp72
-rw-r--r--noncore/games/sfcave/helpwindow.h34
2 files changed, 106 insertions, 0 deletions
diff --git a/noncore/games/sfcave/helpwindow.cpp b/noncore/games/sfcave/helpwindow.cpp
new file mode 100644
index 0000000..8f277af
--- a/dev/null
+++ b/noncore/games/sfcave/helpwindow.cpp
@@ -0,0 +1,72 @@
1/***************************************************************************
2 helpwindow.cpp - description
3 -------------------
4 begin : Sun Sep 8 2002
5 copyright : (C) 2002 by Andy Qua
6 email : andy.qua@blueyonder.co.uk
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
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 *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18#include <qwidget.h>
19#include <qlayout.h>
20#include <qstring.h>
21#include <qtextview.h>
22
23#include "helpwindow.h"
24
25
26#define HELP_TEXT \
27"<qt><h1>SFCave Help</h1><p> " \
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 " \
30"you can.<br><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 " \
33"cavern avoiding all the blocks that just happen to be hanging in " \
34"midair<br><br>" \
35"<b>Gates</b> is similar to SFCave but instead you must fly through the " \
36"without crashing.<br><br>" \
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 " \
39"hug the ground - the closer to the land you fly the more points " \
40"scored.<br><br><br>" \
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 " \
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 " \
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. " \
47"The closer to the landscape you get the more points you get.<br><br>" \
48"Have lots of fun.<br>" \
49"Andy" \
50"</p></qt>"
51
52
53HelpWindow::HelpWindow( QWidget *parent, const char *name, bool modal, WFlags flags )
54 : QDialog( parent, name, modal, flags )
55{
56// resize( 230, 280 );
57
58 setCaption( "Help for AQPkg" );
59
60 QVBoxLayout *layout = new QVBoxLayout( this );
61 QString text = HELP_TEXT;;
62 QTextView *view = new QTextView( text, 0, this, "view" );
63 layout->insertSpacing( -1, 5 );
64 layout->insertWidget( -1, view );
65 layout->insertSpacing( -1, 5 );
66
67 showMaximized();
68}
69
70HelpWindow::~HelpWindow()
71{
72}
diff --git a/noncore/games/sfcave/helpwindow.h b/noncore/games/sfcave/helpwindow.h
new file mode 100644
index 0000000..edc1b6e
--- a/dev/null
+++ b/noncore/games/sfcave/helpwindow.h
@@ -0,0 +1,34 @@
1/***************************************************************************
2 helpwindow.h - description
3 -------------------
4 begin : Sun Sep 8 2002
5 copyright : (C) 2002 by Andy Qua
6 email : andy.qua@blueyonder.co.uk
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
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 *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18#ifndef HELPWINDOW_H
19#define HELPWINDOW_H
20
21#include <qdialog.h>
22
23/**
24 *@author Andy Qua
25 */
26
27class HelpWindow : public QDialog
28{
29public:
30 HelpWindow( QWidget *parent = 0, const char *name = 0, bool modal = true, WFlags flags = 0 );
31 ~HelpWindow();
32};
33
34#endif