~eda-qa/dhlib/main

« back to all changes in this revision

Viewing changes to restricted/app-fortress/fortress/Global.ihx

  • Committer: edA-qa mort-ora-y
  • Date: 2010-02-16 05:36:32 UTC
  • Revision ID: eda-qa@disemia.com-20100216053632-60lt7fndfi3fgblw
first

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * This global class maintains values used
 
3
 * throughout the program.
 
4
 * 
 
5
 * The sizes as important here to ensure that
 
6
 * the various drawn compoennts will match
 
7
 * size when dragged from one region to another
 
8
 *
 
9
 * These are done with M4 macros to allow easy
 
10
 * notation of changes based on difficulty.
 
11
 */
 
12
 
 
13
/**
 
14
 * DIFFICULTY.
 
15
 *
 
16
 * Here we will try to alter the enemy stats rather
 
17
 * than the player stats.  This gives the player a
 
18
 * consistent feel.  Though some items, such as
 
19
 * build walls and new cannons do get altered (
 
20
 * as there is no other way to alter the build phase)
 
21
 */
 
22
                
 
23
        //////////////////////////////////////////////////////////////////
 
24
        // Build metrics
 
25
        
 
26
//less than 15 is damn near impossible when combined with increasing shooting of boats! 
 
27
//more than 25 just gets boring in Build phase
 
28
DInt( numWalls, MIN( 25, MAX( 15, 20 - 3 * IDIFF ) ) )  
 
29
        
 
30
        ///////////////////////////////////////////////////////////////////
 
31
        // LiveObject metrics
 
32
DIPoint( cannonSize, 2, 2 )
 
33
DFloat( cannonHP, 5 )   
 
34
DInt( cannonUpgradeLevels, 20 ) //levels to display for upgrading
 
35
        
 
36
DFloat( cannonSizeInc, 0.1 )
 
37
DFloat( cannonSpeedInc, 1 )
 
38
        
 
39
DFloat( initCannonBallSpeed, 10 )
 
40
DFloat( initCannonBallSize, 0.5 )
 
41
 
 
42
//no need to scale per DIFF since the firing rate will increas anyways
 
43
DFloat( cpuCannonBallSpeed, 7 )
 
44
DFloat( cpuCannonBallSize, 0.5 )
 
45
        
 
46
DFloat( towerHP, 5 )
 
47
        
 
48
DFloat( bouncerSpeed, FSCALE( 1.5, 0.1 ) )
 
49
DFloat( bouncerFireSpeed, MAX( 5, 10 -  2 * FDIFF ) )
 
50
DFloat( bouncerHP, MAX( 1, 3 + FDIFF ) )
 
51
        
 
52
DFloat( boatSpeed, FSCALE( 0.5, 0.2 ) )
 
53
DFloat( boatFireSpeed, MAX( 2, 5 - FDIFF ) )
 
54
DFloat( boatHP, MAX( 1, 4 + FDIFF ) )
 
55
        
 
56
DFloat( lboatSpeed, FSCALE( 0.6, 0.2 ) )
 
57
DFloat( lboatFireSpeed, MAX( 5, 20 - 5 * FDIFF ) )
 
58
DFloat( lboatHP, MAX( 1, 6 + 2 * FDIFF ) )
 
59
        
 
60
DFloat( flyerSpeed, FSCALE( 0.5, 0.1 ) )
 
61
DFloat( flyerCircleSpeed, FSCALE( 0.8, 0.1 ) )
 
62
DFloat( flyerFireSpeed, MAX( 6, 12 - 2 * FDIFF ) )
 
63
DFloat( flyerHP, MAX( 1, 2 + FDIFF ) )
 
64
        
 
65
DFloat( walkerSpeed, FSCALE( 0.5, 0.2 ) )       
 
66
DFloat( walkerFireSpeed, 2 )
 
67
DFloat( walkerHP, MAX( 1, 2 + FDIFF ) )
 
68
DFloat( walkerDamage, 0.5 )
 
69
DFloat( walkerDamagePause, MAX( 2, 5 - FDIFF ) )
 
70
 
 
71
        //////////////////////////////////////////////////////////////////////////
 
72
        // Scoring
 
73
DInt( actionBonusTime, 60 - 10*IDIFF )
 
74
DInt( actionDangerTime, 20 - 5 * IDIFF )
 
75
DInt( buildBonusTime, 45 - 5*IDIFF  )
 
76
DInt( buildDangerTime, 10 - IDIFF )