summaryrefslogtreecommitdiff
path: root/Source/Applications/Demos/GOL.cpp
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-11-27 22:17:21 +0100
committerAlexis211 <alexis211@gmail.com>2009-11-27 22:17:21 +0100
commitbcb8807209f4aa7da4d7fec54857599b60c87947 (patch)
treed25484efbe8d75a47b30609d7cdbbbd484103208 /Source/Applications/Demos/GOL.cpp
parent56ace5efd6ccc02004ddafb1e564a3f9d5d538d2 (diff)
downloadMelon-bcb8807209f4aa7da4d7fec54857599b60c87947.tar.gz
Melon-bcb8807209f4aa7da4d7fec54857599b60c87947.zip
Some bugfixes
Diffstat (limited to 'Source/Applications/Demos/GOL.cpp')
-rw-r--r--Source/Applications/Demos/GOL.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/Applications/Demos/GOL.cpp b/Source/Applications/Demos/GOL.cpp
index 298c73a..e6da3a6 100644
--- a/Source/Applications/Demos/GOL.cpp
+++ b/Source/Applications/Demos/GOL.cpp
@@ -83,12 +83,16 @@ int main(Vector<String> args) {
u64int y = Rand::rand() * h / Rand::max();
cells[x * h + y] = true;
}
+ } else if (kp.character == WChar("p")) {
+ outvt << " [PAUSED] press a key to resume";
+ invt.getKeypress();
} else if (kp.character == WChar("h")) {
outvt << "\n\n** Melon's demo Game Of Life Simulator help :\n";
outvt << " - ctrl+c : quit\n";
outvt << " - ctrl+h : show this\n";
+ outvt << " - ctrl+p : pause\n";
outvt << " - ctrl+r : add some random cells\n";
- outvt << " - ctrl+R : add more cells, but not random\n\n";
+ outvt << " - ctrl+R : add more cells, still random\n\n";
outvt << "Press any key to return to simultaor...";
invt.getKeypress();
}