From 65195fdab6262d31056c74f922376de3b009943c Mon Sep 17 00:00:00 2001 From: manuel Date: Sun, 17 Apr 2011 19:19:56 +0200 Subject: 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 --- pacman-c++/constants.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'pacman-c++/constants.h') 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 { const unsigned int player_minimum_distance = 5; /* if the distance above isn't possible, decrease the distance by this value */ const unsigned int player_distance_decr = 2; - } - - namespace Random - { - /* there's a chance of 1:20 that a bonus point will be added */ - const unsigned int bouns_point_chance = 20; + /* there's a chance of 1:30 that a bonus point will be added (with one actor) */ + const unsigned int bouns_point_chance = 30; + /* every additional player will raise the chance of a bonus point by that factor */ + const unsigned int bouns_point_chance_playerfactor = 3; + /* there's a chance of 1:5 that a block will be colorized */ + const unsigned int colorize_block_chance = 5; + /* how long colorized blocks will stay colorized */ + const unsigned int colorize_block_tickcount_min = 50; + const unsigned int colorize_block_tickcount_max = 100; } } -- cgit v1.2.3