hedgewars/uLandTemplates.pas
author unc0rr
Tue, 10 Jan 2006 19:53:18 +0000
changeset 43 e297fea1a2f3
parent 35 9367f246fb5f
child 49 3afe33c1cf06
permissions -rw-r--r--
- Removed dark pixels on the corners of health case - Cleaned up dynamite code - Dynamite sprite - Frontend shows error messages from engine (except IPC-related :) ) - changed IPC-related stuff in frontend
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
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   221
const EdgeTemplates: array[0..6] of TEdgeTemplate =
23
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   222
      (
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   223
       (BasePoints: @Template0Points;
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   224
        BasePointsCount: Succ(High(Template0Points));
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   225
        BezPassCnt: 4;
27
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   226
        PassMin: 10; PassDelta: 5;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   227
        WaveAmplMin:    17; WaveAmplDelta: 20;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   228
        WaveFreqMin: 0.010; WaveFreqDelta: 0.002;
23
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   229
        FillPoints: @Template0FPoints;
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   230
        FillPointsCount: Succ(High(Template0FPoints));
27
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   231
        canMirror: false; canFlip: false;
23
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   232
       ),
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   233
       (BasePoints: @Template1Points;
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   234
        BasePointsCount: Succ(High(Template1Points));
30
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   235
        BezPassCnt: 3;
27
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   236
        PassMin: 10; PassDelta: 2;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   237
        WaveAmplMin:    25; WaveAmplDelta: 15;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   238
        WaveFreqMin: 0.008; WaveFreqDelta: 0.002;
23
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   239
        FillPoints: @Template1FPoints;
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   240
        FillPointsCount: Succ(High(Template1FPoints));
27
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   241
        canMirror: false; canFlip: false;
23
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   242
       ),
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   243
       (BasePoints: @Template2Points;
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   244
        BasePointsCount: Succ(High(Template2Points));
25
27aa8030322b - Get rid of old frontend
unc0rr
parents: 24
diff changeset
   245
        BezPassCnt: 3;
27
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   246
        PassMin: 14; PassDelta: 3;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   247
        WaveAmplMin:    10; WaveAmplDelta: 10;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   248
        WaveFreqMin: 0.010; WaveFreqDelta: 0.002;
23
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   249
        FillPoints: @Template2FPoints;
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   250
        FillPointsCount: Succ(High(Template2FPoints));
27
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   251
        canMirror: true; canFlip: false;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   252
       ),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   253
       (BasePoints: @Template3Points;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   254
        BasePointsCount: Succ(High(Template3Points));
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   255
        BezPassCnt: 4;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   256
        PassMin: 15; PassDelta: 2;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   257
        WaveAmplMin:    8; WaveAmplDelta: 12;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   258
        WaveFreqMin: 0.015; WaveFreqDelta: 0.0015;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   259
        FillPoints: @Template3FPoints;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   260
        FillPointsCount: Succ(High(Template3FPoints));
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   261
        canMirror: true; canFlip: false;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   262
       ),
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   263
       (BasePoints: @Template4Points;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   264
        BasePointsCount: Succ(High(Template4Points));
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   265
        BezPassCnt: 3;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   266
        PassMin: 19; PassDelta: 5;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   267
        WaveAmplMin:    12; WaveAmplDelta: 14;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   268
        WaveFreqMin: 0.008; WaveFreqDelta: 0.001;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   269
        FillPoints: @Template4FPoints;
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   270
        FillPointsCount: Succ(High(Template4FPoints));
c374fe590272 - improve land generation
unc0rr
parents: 25
diff changeset
   271
        canMirror: true; canFlip: false;
30
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   272
       ),       
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   273
       (BasePoints: @Template5Points;
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   274
        BasePointsCount: Succ(High(Template5Points));
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   275
        BezPassCnt: 4;
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   276
        PassMin: 15; PassDelta: 1;
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   277
        WaveAmplMin:    15; WaveAmplDelta: 14;
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   278
        WaveFreqMin: 0.008; WaveFreqDelta: 0.002;
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   279
        FillPoints: @Template5FPoints;
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   280
        FillPointsCount: Succ(High(Template5FPoints));
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   281
        canMirror: true; canFlip: false;
35
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   282
       ),
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   283
      (BasePoints: @Template6Points;
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   284
       BasePointsCount: Succ(High(Template6Points));
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   285
       BezPassCnt: 3;
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   286
       PassMin: 15; PassDelta: 1;
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   287
       WaveAmplMin:    15; WaveAmplDelta: 10;
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   288
       WaveFreqMin: 0.010; WaveFreqDelta: 0.0015;
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   289
       FillPoints: @Template6FPoints;
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   290
       FillPointsCount: Succ(High(Template6FPoints));
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   291
       canMirror: true; canFlip: false;
9367f246fb5f - New rope
unc0rr
parents: 30
diff changeset
   292
      )
30
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   293
       
23
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   294
      );
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   295
30
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   296
794e98e11b66 - Fixed slow sprite blt
unc0rr
parents: 27
diff changeset
   297
23
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   298
implementation
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   299
16322d14f068 - Land generator uses templates to generate
unc0rr
parents:
diff changeset
   300
end.