… | |
… | |
44 | hills_rocky => "#aa8", |
44 | hills_rocky => "#aa8", |
45 | treed_hills => "#6a4", |
45 | treed_hills => "#6a4", |
46 | hills => "#aa4", |
46 | hills => "#aa4", |
47 | mountain => "#ccc", |
47 | mountain => "#ccc", |
48 | mountain2 => "#cdd", |
48 | mountain2 => "#cdd", |
49 | mountain3 => "#ddc", |
49 | # mountain3 => "#ddc", |
50 | mountain4 => "#ddb", |
50 | mountain4 => "#ddb", |
51 | mountain5 => "#ddd", |
51 | mountain5 => "#ddd", |
52 | s_mountain => "#dff", |
52 | s_mountain => "#dff", |
53 | |
53 | |
54 | wasteland => "#ddf", |
54 | wasteland => "#ddf", |
… | |
… | |
89 | $y += 100; |
89 | $y += 100; |
90 | print "gce $ENV{CROSSFIRE_LIBDIR}/maps/world/world_${x}_${y}\n"; |
90 | print "gce $ENV{CROSSFIRE_LIBDIR}/maps/world/world_${x}_${y}\n"; |
91 | exit |
91 | exit |
92 | } elsif ($ARGV[0] eq 'partial') { |
92 | } elsif ($ARGV[0] eq 'partial') { |
93 | ($part_x, $part_y) = ($ARGV[1], $ARGV[2]); |
93 | ($part_x, $part_y) = ($ARGV[1], $ARGV[2]); |
94 | } elsif ($ARGV[0] =~ m/-*?:he?l?p?/) { |
94 | } elsif ($ARGV[0] =~ m/-*?he?l?p?/) { |
95 | print <<USAGE; |
95 | print <<USAGE; |
96 | gen_worldmap [<mode>] |
96 | gen_worldmap [<mode>] |
97 | possible modes are: |
97 | possible modes are: |
98 | - palette generates the palette.png for drawing world.png |
98 | - palette generates the palette.png for drawing world.png |
99 | - pixel2map takes 2 further arguments representing coordinates in |
99 | - pixel2map takes 2 further arguments representing coordinates in |
… | |
… | |
104 | it will only generate that particular worldmap. |
104 | it will only generate that particular worldmap. |
105 | (no overlay png is generated in this mode) |
105 | (no overlay png is generated in this mode) |
106 | without any mode the complete world is regenerated from the world.png and |
106 | without any mode the complete world is regenerated from the world.png and |
107 | the overlay png is written. |
107 | the overlay png is written. |
108 | USAGE |
108 | USAGE |
|
|
109 | exit |
109 | } |
110 | } |
110 | |
111 | |
111 | Crossfire::load_archetypes; |
112 | Crossfire::load_archetypes; |
112 | |
113 | |
113 | open my $png, "convert world.png -depth 8 rgb:- |" |
114 | open my $png, "convert world.png -depth 8 rgb:- |" |