hedgewars/uLandTemplates.pas
author unc0rr
Sun, 15 Jan 2006 14:14:12 +0000
changeset 49 3afe33c1cf06
parent 35 9367f246fb5f
child 51 b6e3ae05857f
permissions -rw-r--r--
- Teams health bars sorting - Fixed slow walking on hedgehog - Fixed accidently disabled bots' ammo - Fixed exception when runnig engine without command line parameters - One more template
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
23
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
     1
unit uLandTemplates;
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
     2
interface
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
     3
uses SDLh;
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
     4
{$INCLUDE options.inc}
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
     5
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
     6
type PPointArray = ^TPointArray;
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
     7
     TPointArray = array[0..0] of TPoint;
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
     8
     TEdgeTemplate = record
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
     9
                     BasePoints: PPointArray;
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    10
                     BasePointsCount: Longword;
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    11
                     BezPassCnt: Longword; 
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    12
                     PassMin, PassDelta: Longword;
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    13
                     WaveAmplMin, WaveAmplDelta: real;
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    14
                     WaveFreqMin, WaveFreqDelta: real;
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    15
                     FillPoints: PPointArray;
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    16
                     FillPointsCount: Longword;
27
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
    17
                     canMirror, canFlip: boolean;
23
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    18
                     end;
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    19
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    20
const Template0Points: array[0..4] of TPoint =
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    21
      (
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    22
       (x:  500; y: 1500),
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    23
       (x:  350; y:  400),
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    24
       (x: 1023; y:  820),
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    25
       (x: 1700; y:  400),
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    26
       (x: 1550; y: 1500)
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    27
      );
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    28
      Template0FPoints: array[0..0] of TPoint =
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    29
      (
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    30
       (x: 1023; y: 1023)
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    31
      );
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    32
30
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
    33
const Template1Points: array[0..12] of TPoint =
23
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    34
      (
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    35
       (x:  300; y: 1500),
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    36
       (x:  300; y: 1000),
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    37
       (x:  250; y:  750),
30
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
    38
       (x:  550; y:  480),
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
    39
       (x:  650; y:  780),
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
    40
       (x:  810; y:  780),
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
    41
       (x:  800; y:  500),
27
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
    42
       (x: 1200; y:  500),
30
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
    43
       (x: 1300; y:  800),
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
    44
       (x: 1500; y:  500),
23
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    45
       (x: 1800; y:  750),
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    46
       (x: 1750; y: 1000),
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    47
       (x: 1750; y: 1500)
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    48
      );
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    49
      Template1FPoints: array[0..0] of TPoint =
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    50
      (
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    51
       (x: 1023; y: 1023)
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    52
      );
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    53
30
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
    54
const Template2Points: array[0..28] of TPoint =
23
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    55
      (
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    56
       (x:  350; y: 1500),
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    57
       (x:  350; y: 1000),
27
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
    58
       (x:  190; y:  850),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
    59
       (x:  500; y:  750),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
    60
       (x:  520; y:  450),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
    61
       (x:  190; y:  600),
23
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    62
       (x:  210; y:  260),
30
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
    63
       (x:  800; y:  310),
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
    64
       (x: 1350; y:  220),
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
    65
       (x: 1250; y:  360),
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
    66
       (x: 1550; y:  520),
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
    67
       (x: 1100; y:  400),
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
    68
       (x:  900; y:  470),
23
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    69
       (x:  650; y:  400),
30
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
    70
       (x:  900; y:  750),
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
    71
       (x:  600; y:  750),
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
    72
       (x:  600; y:  850),
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
    73
       (x: 1100; y:  900),
23
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    74
       (x: 1200; y: 1000),
30
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
    75
       (x: 1200; y: 1300),
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
    76
       (x: 1400; y: 1300),
23
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    77
       (x: 1400; y: 1000),
30
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
    78
       (x: 1280; y:  850),
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
    79
       (x: 1150; y:  630),
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
    80
       (x: 1600; y:  850),
23
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    81
       (x: 1800; y:  600),
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    82
       (x: 1900; y:  600),
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    83
       (x: 1700; y: 1010),
30
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
    84
       (x: 1700; y: 1500)
23
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    85
      );
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    86
      Template2FPoints: array[0..1] of TPoint =
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    87
      (
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    88
       (x:  600; y: 1023),
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    89
       (x: 1500; y: 1023)
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    90
      );
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
    91
27
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
    92
const Template3Points: array[0..23] of TPoint =
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
    93
      (
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
    94
       (x:  200; y: 1500),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
    95
       (x:  200; y: 1000),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
    96
       (x:  390; y:  650),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
    97
       (x:  210; y:  260),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
    98
       (x: 1000; y:  420),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
    99
       (x: 1100; y:  200),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   100
       (x: 1250; y:  420),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   101
       (x: 1250; y:  620),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   102
       (x:  900; y:  610),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   103
       (x:  650; y:  450),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   104
       (x:  550; y:  500),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   105
       (x:  650; y:  700),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   106
       (x: 1200; y:  800),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   107
       (x: 1200; y: 1000),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   108
       (x: 1200; y: 1200),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   109
       (x: 1400; y: 1200),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   110
       (x: 1400; y: 1000),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   111
       (x: 1280; y:  750),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   112
       (x: 1500; y:  600),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   113
       (x: 1400; y:  200),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   114
       (x: 1800; y:  200),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   115
       (x: 1700; y:  600),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   116
       (x: 1900; y: 1010),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   117
       (x: 1800; y: 1200)
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   118
      );
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   119
      Template3FPoints: array[0..1] of TPoint =
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   120
      (
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   121
       (x:  500; y: 1023),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   122
       (x: 1500; y: 1023)
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   123
      );
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   124
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   125
const Template4Points: array[0..38] of TPoint =
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   126
      (
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   127
       (x:  200; y: 1500),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   128
       (x:  200; y: 1000),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   129
       (x:  210; y:  800),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   130
       (x:  480; y:  830),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   131
       (x:  460; y:  700),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   132
       (x:  150; y:  610),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   133
       (x:  150; y:  310),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   134
       (x:  220; y:  200),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   135
       (x:  340; y:  195),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   136
       (x:  410; y:  415),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   137
       (x:  420; y:  495),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   138
       (x:  535; y:  615),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   139
       (x:  705; y:  600),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   140
       (x:  760; y:  425),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   141
       (x:  815; y:  230),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   142
       (x:  970; y:  200),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   143
       (x: 1050; y:  360),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   144
       (x:  850; y:  590),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   145
       (x: 1070; y:  790),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   146
       (x: 1000; y: 1000),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   147
       (x: 1000; y: 1500),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   148
       (x: 1250; y: 1500),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   149
       (x: 1250; y: 1000),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   150
       (x: 1260; y:  830),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   151
       (x: 1290; y:  700),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   152
       (x: 1270; y:  450),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   153
       (x: 1180; y:  280),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   154
       (x: 1210; y:  160),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   155
       (x: 1370; y:  160),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   156
       (x: 1505; y:  205),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   157
       (x: 1630; y:  315),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   158
       (x: 1660; y:  450),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   159
       (x: 1580; y:  620),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   160
       (x: 1670; y:  725),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   161
       (x: 1800; y:  730),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   162
       (x: 1860; y:  680),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   163
       (x: 1925; y:  810),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   164
       (x: 1800; y: 1000),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   165
       (x: 1800; y: 1500)
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   166
      );
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   167
      Template4FPoints: array[0..1] of TPoint =
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   168
      (
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   169
       (x:  500; y: 1023),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   170
       (x: 1500; y: 1023)
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   171
      );
30
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   172
    
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   173
const Template5Points: array[0..10] of TPoint =
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   174
      (
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   175
       (x:  225; y: 1260),
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   176
       (x:  254; y:  226),
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   177
       (x:  729; y:  238),
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   178
       (x:  658; y:  441),
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   179
       (x:  661; y:  651),
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   180
       (x: 1023; y:  759),
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   181
       (x: 1374; y:  648),
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   182
       (x: 1473; y:  285),
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   183
       (x: 1803; y:  207),
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   184
       (x: 1839; y:  801),
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   185
       (x: 1674; y: 1239)
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   186
      );
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   187
      Template5FPoints: array[0..0] of TPoint =
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   188
      (
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   189
       (x: 1023; y: 1023)
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   190
      );
27
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   191
35
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   192
const Template6Points: array[0..20] of TPoint =
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   193
      (
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   194
       (x:  318; y: 1494),
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   195
       (x:  270; y: 1023),
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   196
       (x:  252; y:  921),
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   197
       (x:  480; y:  888),
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   198
       (x:  492; y:  753),
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   199
       (x:  654; y:  756),
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   200
       (x:  687; y:  630),
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   201
       (x:  906; y:  627),
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   202
       (x:  987; y:  813),
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   203
       (x: 1125; y:  825),
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   204
       (x: 1134; y:  645),
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   205
       (x: 1236; y:  558),
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   206
       (x: 1260; y:  438),
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   207
       (x: 1467; y:  462),
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   208
       (x: 1536; y:  348),
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   209
       (x: 1680; y:  402),
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   210
       (x: 1713; y:  594),
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   211
       (x: 1593; y:  693),
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   212
       (x: 1707; y:  774),
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   213
       (x: 1728; y:  894),
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   214
       (x: 1788; y: 1491)
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   215
      );
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   216
      Template6FPoints: array[0..0] of TPoint =
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   217
      (
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   218
       (x: 1023; y: 1023)
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   219
      );
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   220
49
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   221
const Template7Points: array[0..43] of TPoint =
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   222
      (
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   223
       (x:  180; y: 1485),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   224
       (x:  411; y: 1020),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   225
       (x:  402; y:  912),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   226
       (x:  141; y:  897),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   227
       (x:  156; y:  729),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   228
       (x:  417; y:  813),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   229
       (x:  432; y:  585),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   230
       (x:  147; y:  570),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   231
       (x:  138; y:  435),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   232
       (x:  444; y:  417),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   233
       (x:  447; y:  207),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   234
       (x:  573; y:  261),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   235
       (x:  663; y:  201),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   236
       (x:  711; y:  375),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   237
       (x:  897; y:  411),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   238
       (x:  936; y:  498),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   239
       (x:  663; y:  558),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   240
       (x:  669; y:  762),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   241
       (x:  957; y:  723),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   242
       (x:  984; y:  864),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   243
       (x:  729; y:  879),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   244
       (x:  879; y: 1020),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   245
       (x:  981; y: 1449),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   246
       (x: 1242; y: 1449),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   247
       (x: 1476; y: 1020),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   248
       (x: 1470; y:  900),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   249
       (x: 1284; y:  897),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   250
       (x: 1218; y:  774),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   251
       (x: 1464; y:  765),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   252
       (x: 1464; y:  672),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   253
       (x: 1119; y:  630),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   254
       (x: 1116; y:  537),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   255
       (x: 1485; y:  501),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   256
       (x: 1167; y:  246),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   257
       (x: 1263; y:  180),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   258
       (x: 1572; y:  312),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   259
       (x: 1767; y:  162),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   260
       (x: 1827; y:  306),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   261
       (x: 1647; y:  465),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   262
       (x: 1875; y:  621),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   263
       (x: 1683; y:  747),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   264
       (x: 1665; y:  831),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   265
       (x: 1818; y:  951),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   266
       (x: 1893; y: 1476)
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   267
       );
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   268
      Template7FPoints: array[0..1] of TPoint =
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   269
      (
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   270
       (x: 630; y: 1023),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   271
       (x:1655; y: 1023)
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   272
      );
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   273
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   274
const EdgeTemplates: array[0..7] of TEdgeTemplate =
23
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   275
      (
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   276
       (BasePoints: @Template0Points;
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   277
        BasePointsCount: Succ(High(Template0Points));
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   278
        BezPassCnt: 4;
27
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   279
        PassMin: 10; PassDelta: 5;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   280
        WaveAmplMin:    17; WaveAmplDelta: 20;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   281
        WaveFreqMin: 0.010; WaveFreqDelta: 0.002;
23
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   282
        FillPoints: @Template0FPoints;
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   283
        FillPointsCount: Succ(High(Template0FPoints));
27
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   284
        canMirror: false; canFlip: false;
23
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   285
       ),
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   286
       (BasePoints: @Template1Points;
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   287
        BasePointsCount: Succ(High(Template1Points));
30
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   288
        BezPassCnt: 3;
27
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   289
        PassMin: 10; PassDelta: 2;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   290
        WaveAmplMin:    25; WaveAmplDelta: 15;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   291
        WaveFreqMin: 0.008; WaveFreqDelta: 0.002;
23
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   292
        FillPoints: @Template1FPoints;
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   293
        FillPointsCount: Succ(High(Template1FPoints));
27
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   294
        canMirror: false; canFlip: false;
23
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   295
       ),
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   296
       (BasePoints: @Template2Points;
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   297
        BasePointsCount: Succ(High(Template2Points));
25
27aa8030322b - Get rid of old frontend
unc0rr
parents: 24
diff changeset
   298
        BezPassCnt: 3;
27
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   299
        PassMin: 14; PassDelta: 3;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   300
        WaveAmplMin:    10; WaveAmplDelta: 10;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   301
        WaveFreqMin: 0.010; WaveFreqDelta: 0.002;
23
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   302
        FillPoints: @Template2FPoints;
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   303
        FillPointsCount: Succ(High(Template2FPoints));
27
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   304
        canMirror: true; canFlip: false;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   305
       ),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   306
       (BasePoints: @Template3Points;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   307
        BasePointsCount: Succ(High(Template3Points));
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   308
        BezPassCnt: 4;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   309
        PassMin: 15; PassDelta: 2;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   310
        WaveAmplMin:    8; WaveAmplDelta: 12;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   311
        WaveFreqMin: 0.015; WaveFreqDelta: 0.0015;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   312
        FillPoints: @Template3FPoints;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   313
        FillPointsCount: Succ(High(Template3FPoints));
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   314
        canMirror: true; canFlip: false;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   315
       ),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   316
       (BasePoints: @Template4Points;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   317
        BasePointsCount: Succ(High(Template4Points));
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   318
        BezPassCnt: 3;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   319
        PassMin: 19; PassDelta: 5;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   320
        WaveAmplMin:    12; WaveAmplDelta: 14;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   321
        WaveFreqMin: 0.008; WaveFreqDelta: 0.001;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   322
        FillPoints: @Template4FPoints;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   323
        FillPointsCount: Succ(High(Template4FPoints));
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   324
        canMirror: true; canFlip: false;
49
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   325
       ),
30
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   326
       (BasePoints: @Template5Points;
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   327
        BasePointsCount: Succ(High(Template5Points));
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   328
        BezPassCnt: 4;
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   329
        PassMin: 15; PassDelta: 1;
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   330
        WaveAmplMin:    15; WaveAmplDelta: 14;
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   331
        WaveFreqMin: 0.008; WaveFreqDelta: 0.002;
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   332
        FillPoints: @Template5FPoints;
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   333
        FillPointsCount: Succ(High(Template5FPoints));
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   334
        canMirror: true; canFlip: false;
35
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   335
       ),
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   336
      (BasePoints: @Template6Points;
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   337
       BasePointsCount: Succ(High(Template6Points));
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   338
       BezPassCnt: 3;
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   339
       PassMin: 15; PassDelta: 1;
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   340
       WaveAmplMin:    15; WaveAmplDelta: 10;
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   341
       WaveFreqMin: 0.010; WaveFreqDelta: 0.0015;
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   342
       FillPoints: @Template6FPoints;
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   343
       FillPointsCount: Succ(High(Template6FPoints));
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   344
       canMirror: true; canFlip: false;
49
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   345
      ),
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   346
      (BasePoints: @Template7Points;
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   347
       BasePointsCount: Succ(High(Template7Points));
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   348
       BezPassCnt: 3;
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   349
       PassMin: 12; PassDelta: 4;
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   350
       WaveAmplMin:     5; WaveAmplDelta: 15;
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   351
       WaveFreqMin: 0.015; WaveFreqDelta: 0.002;
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   352
       FillPoints: @Template7FPoints;
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   353
       FillPointsCount: Succ(High(Template7FPoints));
3afe33c1cf06 - Teams health bars sorting
unc0rr
parents: 35
diff changeset
   354
       canMirror: true; canFlip: false;
35
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   355
      )
30
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   356
       
23
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   357
      );
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   358
30
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   359
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   360
23
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   361
implementation
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   362
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   363
end.