summaryrefslogtreecommitdiffstats
path: root/pacman-c++/constants.h
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2011-04-17 19:19:56 +0200
committermanuel <manuel@mausz.at>2011-04-17 19:19:56 +0200
commit65195fdab6262d31056c74f922376de3b009943c (patch)
treee76a6141ae0603494dab0830baa41ec29a55f74e /pacman-c++/constants.h
parent8187d48b30defcb11c61ba5365fe974151849e38 (diff)
downloadfoop-65195fdab6262d31056c74f922376de3b009943c.tar.gz
foop-65195fdab6262d31056c74f922376de3b009943c.tar.bz2
foop-65195fdab6262d31056c74f922376de3b009943c.zip
a bigger commit again:
- fix pacman movement. now more like real pacman (again). e.g. if you press a direction-key again: the pacman will move in that direction as soon as possible and no repeated keypress is needed - add random colorized blocks (without dieing yet) - add cmdline-option: --nocolorblocks to disable that
Diffstat (limited to 'pacman-c++/constants.h')
-rw-r--r--pacman-c++/constants.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/pacman-c++/constants.h b/pacman-c++/constants.h
index 06b6561..dc72611 100644
--- a/pacman-c++/constants.h
+++ b/pacman-c++/constants.h
@@ -31,12 +31,15 @@ namespace Constants {
31 const unsigned int player_minimum_distance = 5; 31 const unsigned int player_minimum_distance = 5;
32 /* if the distance above isn't possible, decrease the distance by this value */ 32 /* if the distance above isn't possible, decrease the distance by this value */
33 const unsigned int player_distance_decr = 2; 33 const unsigned int player_distance_decr = 2;
34 } 34 /* there's a chance of 1:30 that a bonus point will be added (with one actor) */
35 35 const unsigned int bouns_point_chance = 30;
36 namespace Random 36 /* every additional player will raise the chance of a bonus point by that factor */
37 { 37 const unsigned int bouns_point_chance_playerfactor = 3;
38 /* there's a chance of 1:20 that a bonus point will be added */ 38 /* there's a chance of 1:5 that a block will be colorized */
39 const unsigned int bouns_point_chance = 20; 39 const unsigned int colorize_block_chance = 5;
40 /* how long colorized blocks will stay colorized */
41 const unsigned int colorize_block_tickcount_min = 50;
42 const unsigned int colorize_block_tickcount_max = 100;
40 } 43 }
41} 44}
42 45