author | Wuzzy <Wuzzy2@mail.ru> |
Mon, 13 May 2019 21:26:13 +0200 | |
changeset 14950 | f112847eb93e |
parent 14480 | 35d47e99f5e2 |
permissions | -rw-r--r-- |
10969
98cab7f366c3
add a bit more spacing around stars, add pad parameter to increase spacing between objects
nemo
parents:
10611
diff
changeset
|
1 |
HedgewarsScriptLoad("/Scripts/Params.lua") |
14480 | 2 |
local overrideFeatureSize = true |
3 |
local paramPadding = 0 |
|
10969
98cab7f366c3
add a bit more spacing around stars, add pad parameter to increase spacing between objects
nemo
parents:
10611
diff
changeset
|
4 |
local ObjectList = {} |
10604 | 5 |
|
8975
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
6 |
-- Overall padding for roping freedom |
10969
98cab7f366c3
add a bit more spacing around stars, add pad parameter to increase spacing between objects
nemo
parents:
10611
diff
changeset
|
7 |
local Padding = 430 |
13279
9ac674499985
ShoppaMap: Can change map complexity with slider, remove script param “pad”
Wuzzy <Wuzzy2@mail.ru>
parents:
13278
diff
changeset
|
8 |
-- If true, rope assumes team color |
11482 | 9 |
local TeamRope = false |
10969
98cab7f366c3
add a bit more spacing around stars, add pad parameter to increase spacing between objects
nemo
parents:
10611
diff
changeset
|
10 |
|
98cab7f366c3
add a bit more spacing around stars, add pad parameter to increase spacing between objects
nemo
parents:
10611
diff
changeset
|
11 |
function onParameters() |
98cab7f366c3
add a bit more spacing around stars, add pad parameter to increase spacing between objects
nemo
parents:
10611
diff
changeset
|
12 |
parseParams() |
11482 | 13 |
if params["teamrope"] ~= nil then |
14 |
TeamRope = true |
|
15 |
end |
|
14480 | 16 |
if params["scalemap"] ~= nil then |
17 |
overrideFeatureSize = false |
|
18 |
end |
|
19 |
if params["padding"] ~= nil then |
|
20 |
paramPadding = tonumber(params["padding"]) |
|
21 |
end |
|
10969
98cab7f366c3
add a bit more spacing around stars, add pad parameter to increase spacing between objects
nemo
parents:
10611
diff
changeset
|
22 |
end |
8975
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
23 |
|
11482 | 24 |
function onGearAdd(gear) |
25 |
if GetGearType(gear) == gtRope and TeamRope then |
|
26 |
SetTag(gear,1) |
|
27 |
SetGearValues(gear,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,GetClanColor(GetHogClan(CurrentHedgehog))) |
|
28 |
end |
|
29 |
end |
|
30 |
||
8975
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
31 |
-- This could probably use less points and more precision |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
32 |
-- 700x700 for object space |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
33 |
function DrawStar(x, y, d, f) |
13278
7476c1a50738
ShoppaMap: Delete unused/dead code
Wuzzy <Wuzzy2@mail.ru>
parents:
11482
diff
changeset
|
34 |
-- default scale is 700x700 or so |
9257 | 35 |
local s = 700 |
36 |
local i = 0 |
|
37 |
local j = 0 |
|
8975
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
38 |
if not(d == 1) then s = div(s,d) end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
39 |
if NoOverlap(x,y,s,s) then |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
40 |
AddCollision(x,y,s,s) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
41 |
if not(d == 1) then |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
42 |
i = 6-d |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
43 |
j = math.min(div(5,d),1) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
44 |
-- centre |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
45 |
AddPoint(x,y,div(20,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
46 |
-- arms |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
47 |
AddPoint(x-div(325,d),y-f*div(108,d),2) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
48 |
AddPoint(x+div(325,d),y-f*div(108,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
49 |
AddPoint(x-div(205,d),y+f*div(270,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
50 |
AddPoint(x,y-f*div(345,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
51 |
AddPoint(x+div(205,d),y+f*div(270,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
52 |
AddPoint(x-div(325,d),y-f*div(108,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
53 |
if d < 4 then |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
54 |
-- fill in arm 1 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
55 |
AddPoint(x-div(275,d),y-f*div(92,d),i) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
56 |
AddPoint(x-div(50,d),y-f*div(92,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
57 |
AddPoint(x-div(105,d),y+f*div(25,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
58 |
AddPoint(x-div(250,d),y-f*div(80,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
59 |
AddPoint(x-div(115,d),y-f*div(70,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
60 |
AddPoint(x-div(130,d),y-f*div(25,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
61 |
AddPoint(x-div(175,d),y-f*div(60,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
62 |
-- fill in arm 2 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
63 |
AddPoint(x+div(275,d),y-f*div(92,d),i) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
64 |
AddPoint(x+div(50,d),y-f*div(92,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
65 |
AddPoint(x+div(105,d),y+f*div(25,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
66 |
AddPoint(x+div(250,d),y-f*div(80,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
67 |
AddPoint(x+div(115,d),y-f*div(70,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
68 |
AddPoint(x+div(130,d),y-f*div(25,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
69 |
AddPoint(x+div(175,d),y-f*div(60,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
70 |
-- fill in arm 3 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
71 |
AddPoint(x-div(175,d),y+f*div(230,d),i) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
72 |
AddPoint(x-div(110,d),y+f*div(60,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
73 |
AddPoint(x,y+f*div(120,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
74 |
AddPoint(x-div(155,d),y+f*div(215,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
75 |
AddPoint(x-div(105,d),y+f*div(95,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
76 |
AddPoint(x-div(60,d),y+f*div(130,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
77 |
AddPoint(x-div(85,d),y+f*div(155,d),j) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
78 |
-- fill in arm 4 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
79 |
AddPoint(x,y-f*div(300,d),3) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
80 |
AddPoint(x+div(50,d),y-f*div(125,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
81 |
AddPoint(x-div(50,d),y-f*div(125,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
82 |
AddPoint(x,y-f*div(270,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
83 |
AddPoint(x-div(40,d),y-f*div(160,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
84 |
AddPoint(x+div(40,d),y-f*div(160,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
85 |
AddPoint(x,y-f*div(195,d),j) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
86 |
-- fill in arm 5 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
87 |
AddPoint(x+div(175,d),y+f*div(230,d),i) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
88 |
AddPoint(x+div(110,d),y+f*div(60,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
89 |
AddPoint(x,y+f*div(120,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
90 |
AddPoint(x+div(155,d),y+f*div(215,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
91 |
AddPoint(x+div(105,d),y+f*div(95,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
92 |
AddPoint(x+div(60,d),y+f*div(130,d)) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
93 |
AddPoint(x+div(85,d),y+f*div(155,d),j) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
94 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
95 |
else |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
96 |
-- centre |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
97 |
AddPoint(x,y,20) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
98 |
-- arms |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
99 |
AddPoint(x-325,y-f*108,1) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
100 |
AddPoint(x+325,y-f*108) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
101 |
AddPoint(x-205,y+f*270) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
102 |
AddPoint(x,y-f*345) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
103 |
AddPoint(x+205,y+f*270) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
104 |
AddPoint(x-325,y-f*108) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
105 |
-- fill in arm 1 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
106 |
AddPoint(x-275,y-f*92,4) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
107 |
AddPoint(x-50,y-f*92) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
108 |
AddPoint(x-105,y+f*25) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
109 |
AddPoint(x-250,y-f*80) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
110 |
AddPoint(x-115,y-f*70) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
111 |
AddPoint(x-130,y-f*25) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
112 |
AddPoint(x-175,y-f*60) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
113 |
-- fill in arm 2 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
114 |
AddPoint(x+275,y-f*92,4) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
115 |
AddPoint(x+50,y-f*92) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
116 |
AddPoint(x+105,y+f*25) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
117 |
AddPoint(x+250,y-f*80) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
118 |
AddPoint(x+115,y-f*70) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
119 |
AddPoint(x+130,y-f*25) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
120 |
AddPoint(x+175,y-f*60) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
121 |
-- fill in arm 3 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
122 |
AddPoint(x-175,y+f*230,4) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
123 |
AddPoint(x-110,y+f*60) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
124 |
AddPoint(x-10,y+f*120) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
125 |
AddPoint(x-155,y+f*215) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
126 |
AddPoint(x-105,y+f*95) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
127 |
AddPoint(x-60,y+f*130) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
128 |
AddPoint(x-85,y+f*155,5) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
129 |
-- fill in arm 4 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
130 |
AddPoint(x,y-f*300,3) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
131 |
AddPoint(x+50,y-f*125) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
132 |
AddPoint(x-50,y-f*125) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
133 |
AddPoint(x,y-f*270) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
134 |
AddPoint(x-40,y-f*160) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
135 |
AddPoint(x+40,y-f*160) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
136 |
AddPoint(x,y-f*195,5) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
137 |
-- fill in arm 5 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
138 |
AddPoint(x+175,y+f*230,4) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
139 |
AddPoint(x+110,y+f*60) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
140 |
AddPoint(x+10,y+f*120) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
141 |
AddPoint(x+155,y+f*215) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
142 |
AddPoint(x+105,y+f*95) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
143 |
AddPoint(x+60,y+f*130) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
144 |
AddPoint(x+85,y+f*155,5) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
145 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
146 |
return true |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
147 |
else |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
148 |
return false |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
149 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
150 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
151 |
|
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
152 |
-- well. this was easy |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
153 |
function DrawCircle(x, y, w) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
154 |
if NoOverlap(x,y,w*10+6,w*10+6) then |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
155 |
AddCollision(x,y,w*10+6,w*10+6) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
156 |
AddPoint(x,y,w) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
157 |
return true |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
158 |
else |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
159 |
return false |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
160 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
161 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
162 |
|
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
163 |
function DrawCrescent(x, y, w, s) |
9257 | 164 |
local b = div(w*(GetRandom(4)+1)*10+6,6) |
8975
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
165 |
|
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
166 |
if NoOverlap(x,y,w*10+6,w*10+6) then |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
167 |
AddCollision(x,y,w*10+6,w*10+6) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
168 |
AddPoint(x,y,w) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
169 |
if s then -- side |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
170 |
if GetRandom(1) == 0 then |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
171 |
b = b*-1 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
172 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
173 |
AddPoint(x-b,y,w,true) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
174 |
else -- top |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
175 |
AddPoint(x,y-b,w,true) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
176 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
177 |
return true |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
178 |
else |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
179 |
return false |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
180 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
181 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
182 |
|
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
183 |
function DrawCones(x,w,h,c) |
9257 | 184 |
local i = 0 |
185 |
local y = 2048-h |
|
186 |
local hw = div(w,2) |
|
8975
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
187 |
if NoOverlap(x+div(w*c,2),y+div(h,2),w*c,h) then |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
188 |
AddCollision(x+div(w*c,2),y+div(h,2),w*c,h) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
189 |
x = x + hw |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
190 |
for i = 1,c do -- I'm guessing outlining is slightly more efficient than fanning at 16px brush |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
191 |
AddPoint(x,y,1) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
192 |
AddPoint(x-hw+8,2048) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
193 |
AddPoint(x+hw-8,2048) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
194 |
AddPoint(x,y) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
195 |
for j = x-hw+25,x+hw,34 do |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
196 |
AddPoint(x,y+30,3) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
197 |
AddPoint(j,2048) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
198 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
199 |
if GetRandom(2)==0 then |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
200 |
AddPoint(x,y-20,8) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
201 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
202 |
x = x + w |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
203 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
204 |
else |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
205 |
return false |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
206 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
207 |
|
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
208 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
209 |
|
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
210 |
function DrawPlateau(x,y,l,t,b) |
9257 | 211 |
local bo = 0 |
212 |
local to = 0 |
|
213 |
local bSucc = false |
|
214 |
local tSucc = false |
|
8975
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
215 |
if NoOverlapXY(x-28,y-28,x+l+28,y+l+28) then |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
216 |
AddPoint(x,y,5) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
217 |
AddPoint(x+l,y) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
218 |
|
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
219 |
to = GetRandom(6) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
220 |
if not(to==0) then |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
221 |
if GetRandom(2)==0 then |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
222 |
to = div(l,to) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
223 |
else |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
224 |
to = l-div(l,to) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
225 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
226 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
227 |
if t>0 and NoOverlapXY(x+to-28,y-t-28,x+to+28,y+28) then |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
228 |
AddPoint(x+to,y-t,5) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
229 |
AddPoint(x+to,y) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
230 |
if GetRandom(2)==0 then |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
231 |
AddPoint(x+to,y-t+75,20) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
232 |
else -- square off |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
233 |
AddPoint(x+to-20,y-t,1) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
234 |
AddPoint(x+to-20,y-t-20) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
235 |
AddPoint(x+to+20,y-t-20) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
236 |
AddPoint(x+to+20,y-t) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
237 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
238 |
tSucc = true |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
239 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
240 |
|
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
241 |
if to > 120 and GetRandom(2)==0 then -- left bumper |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
242 |
AddPoint(x+15,y-20,9) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
243 |
else -- square off |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
244 |
--AddPoint(x-50,y,2) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
245 |
AddPoint(x,y+20,1) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
246 |
AddPoint(x-20,y+20) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
247 |
AddPoint(x-20,y-20) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
248 |
AddPoint(x,y-20) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
249 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
250 |
if to < (l-120) and GetRandom(2)==0 then -- right bumper |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
251 |
AddPoint(x+l-15,y-20,9) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
252 |
else -- square off |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
253 |
--AddPoint(x+l+50,y,2) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
254 |
AddPoint(x+l,y+20,1) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
255 |
AddPoint(x+l+20,y+20) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
256 |
AddPoint(x+l+20,y-20) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
257 |
AddPoint(x+l,y-20) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
258 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
259 |
bo = GetRandom(6) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
260 |
if not(bo == 0) then |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
261 |
if GetRandom(2)==0 then |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
262 |
bo = div(l,bo) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
263 |
else |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
264 |
bo = l-div(l,bo) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
265 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
266 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
267 |
-- still consider a success even if we can't place this one. Might need to return more than true/false |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
268 |
if b>0 and NoOverlapXY(x+bo-28,y-28,x+bo+28,y+b+28) then |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
269 |
AddPoint(x+bo,y,5) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
270 |
AddPoint(x+bo,y+b) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
271 |
if GetRandom(2)==0 then |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
272 |
AddPoint(x+bo,y+b-75,20) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
273 |
else -- square off |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
274 |
AddPoint(x+bo-20,y+b,1) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
275 |
AddPoint(x+bo-20,y+b+20) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
276 |
AddPoint(x+bo+20,y+b+20) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
277 |
AddPoint(x+bo+20,y+b) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
278 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
279 |
bSucc = true |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
280 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
281 |
if bSucc then AddCollisionXY(x+bo-28,y-28,x+bo+28,y+b+28) end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
282 |
if tSucc then AddCollisionXY(x+to-28,y-t-28,x+to+28,y+28) end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
283 |
AddCollisionXY(x-28,y-28,x+l+28,y+28) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
284 |
return true |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
285 |
else |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
286 |
return false |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
287 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
288 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
289 |
|
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
290 |
function AddCollision(x,y,w,h) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
291 |
table.insert(ObjectList,{x-div(w+Padding,2), |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
292 |
y-div(h+Padding,2), |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
293 |
x+div(w+Padding,2), |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
294 |
y+div(h+Padding,2)}) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
295 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
296 |
|
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
297 |
function AddCollisionXY(x,y,x2,y2) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
298 |
table.insert(ObjectList,{x-div(Padding,2), |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
299 |
y-div(Padding,2), |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
300 |
x2+div(Padding,2), |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
301 |
y2+div(Padding,2)}) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
302 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
303 |
|
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
304 |
-- bounding box check |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
305 |
function NoOverlap(x,y,w,h) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
306 |
w = w |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
307 |
h = h |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
308 |
x = x-div(w,2) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
309 |
y = y-div(h,2) |
9257 | 310 |
return NoOverlapXY(x,y,x+w,y+h) |
8975
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
311 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
312 |
function NoOverlapXY(x,y,x2,y2) |
9257 | 313 |
local i = 1 |
314 |
local l = table.getn(ObjectList) |
|
315 |
local ox = 0 |
|
316 |
local oy = 0 |
|
317 |
local ox2 = 0 |
|
318 |
local oy2 = 0 |
|
8975
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
319 |
while i<=l do |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
320 |
ox = ObjectList[i][1] |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
321 |
oy = ObjectList[i][2] |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
322 |
ox2 = ObjectList[i][3] |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
323 |
oy2 = ObjectList[i][4] |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
324 |
if x < ox2 and ox < x2 and y < oy2 and oy < y2 then |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
325 |
return false |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
326 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
327 |
i=i+1 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
328 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
329 |
return true |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
330 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
331 |
|
10150
fa5c83fd0ad9
Allow lua drawn maps (shoppamap, tunnels, diagonal maze etc) to generate previews.
nemo
parents:
10036
diff
changeset
|
332 |
function onPreviewInit() |
13278
7476c1a50738
ShoppaMap: Delete unused/dead code
Wuzzy <Wuzzy2@mail.ru>
parents:
11482
diff
changeset
|
333 |
onGameInit() |
10150
fa5c83fd0ad9
Allow lua drawn maps (shoppamap, tunnels, diagonal maze etc) to generate previews.
nemo
parents:
10036
diff
changeset
|
334 |
end |
fa5c83fd0ad9
Allow lua drawn maps (shoppamap, tunnels, diagonal maze etc) to generate previews.
nemo
parents:
10036
diff
changeset
|
335 |
|
8975
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
336 |
function onGameInit() |
13279
9ac674499985
ShoppaMap: Can change map complexity with slider, remove script param “pad”
Wuzzy <Wuzzy2@mail.ru>
parents:
13278
diff
changeset
|
337 |
-- Calculate padding, determined by map feature size |
14480 | 338 |
if paramPadding > 0 then |
339 |
Padding = paramPadding |
|
340 |
elseif MapFeatureSize <= 20 then |
|
13279
9ac674499985
ShoppaMap: Can change map complexity with slider, remove script param “pad”
Wuzzy <Wuzzy2@mail.ru>
parents:
13278
diff
changeset
|
341 |
-- 10 .. 710. Step size=35 |
9ac674499985
ShoppaMap: Can change map complexity with slider, remove script param “pad”
Wuzzy <Wuzzy2@mail.ru>
parents:
13278
diff
changeset
|
342 |
Padding = 10 + MapFeatureSize * 35 |
9ac674499985
ShoppaMap: Can change map complexity with slider, remove script param “pad”
Wuzzy <Wuzzy2@mail.ru>
parents:
13278
diff
changeset
|
343 |
else |
9ac674499985
ShoppaMap: Can change map complexity with slider, remove script param “pad”
Wuzzy <Wuzzy2@mail.ru>
parents:
13278
diff
changeset
|
344 |
-- 780 .. 1060. Step size=70 |
9ac674499985
ShoppaMap: Can change map complexity with slider, remove script param “pad”
Wuzzy <Wuzzy2@mail.ru>
parents:
13278
diff
changeset
|
345 |
Padding = 710 + (MapFeatureSize-20) * 70 |
9ac674499985
ShoppaMap: Can change map complexity with slider, remove script param “pad”
Wuzzy <Wuzzy2@mail.ru>
parents:
13278
diff
changeset
|
346 |
end |
14480 | 347 |
-- reset feature size after use, to disable scaling |
348 |
if overrideFeatureSize then MapFeatureSize = 12 end |
|
13279
9ac674499985
ShoppaMap: Can change map complexity with slider, remove script param “pad”
Wuzzy <Wuzzy2@mail.ru>
parents:
13278
diff
changeset
|
349 |
|
10423 | 350 |
MapGen = mgDrawn |
8975
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
351 |
TemplateFilter = 0 |
9257 | 352 |
local TotGen = 0 |
353 |
local Tries = 0 |
|
354 |
local i = 0 |
|
355 |
local l = 0 |
|
356 |
local x = 0 |
|
357 |
local y = 0 |
|
358 |
local w = 0 |
|
359 |
local h = 0 |
|
10172 | 360 |
if GetGameFlag(gfSolidLand) then EnableGameFlags(gfShoppaBorder) end |
10036 | 361 |
if not GetGameFlag(gfBottomBorder) and GetRandom(2) == 0 then |
8980
37f4cdd9cd2c
don't draw a border if there's already a bottom border, avoid placing objects over gaps in the floor
nemo
parents:
8975
diff
changeset
|
362 |
AddPoint(-50,2010,7) |
37f4cdd9cd2c
don't draw a border if there's already a bottom border, avoid placing objects over gaps in the floor
nemo
parents:
8975
diff
changeset
|
363 |
AddPoint(4150,2010) |
8975
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
364 |
for i = 0,GetRandom(3) do |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
365 |
x = GetRandom(4096) |
8980
37f4cdd9cd2c
don't draw a border if there's already a bottom border, avoid placing objects over gaps in the floor
nemo
parents:
8975
diff
changeset
|
366 |
w = GetRandom(40)+10 |
37f4cdd9cd2c
don't draw a border if there's already a bottom border, avoid placing objects over gaps in the floor
nemo
parents:
8975
diff
changeset
|
367 |
AddPoint(x,2200,w,true) |
8975
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
368 |
AddPoint(x,1900) |
8981 | 369 |
table.insert(ObjectList,{x-div(w*9,2), |
370 |
2010-div(100,2), |
|
371 |
x+div(w*9,2), |
|
372 |
2010+div(100,2)}) |
|
8975
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
373 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
374 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
375 |
|
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
376 |
if GetRandom(2) == 0 then |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
377 |
l = GetRandom(3)+1 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
378 |
w = GetRandom(200)+200 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
379 |
h = GetRandom(350)+200 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
380 |
x = GetRandom(4096-w*l) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
381 |
DrawCones(x,w,h,l) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
382 |
--if DrawCones(x,w,h,l) then TotGen = TotGen+1 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
383 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
384 |
if GetRandom(2) == 0 then |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
385 |
for i = 1,GetRandom(5)+1 do |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
386 |
w = GetRandom(35)+15 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
387 |
x = GetRandom(4096-w*12)+w |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
388 |
if GetRandom(2)==0 then |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
389 |
y = 2048-GetRandom(w*10+6) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
390 |
else |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
391 |
y = 2048 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
392 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
393 |
-- if AddPoint(x,y,w) then TotGetn = TotGen+1 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
394 |
DrawCircle(x,y,w) |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
395 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
396 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
397 |
if GetRandom(2)==0 then |
10969
98cab7f366c3
add a bit more spacing around stars, add pad parameter to increase spacing between objects
nemo
parents:
10611
diff
changeset
|
398 |
x = GetRandom(3300)+382 |
98cab7f366c3
add a bit more spacing around stars, add pad parameter to increase spacing between objects
nemo
parents:
10611
diff
changeset
|
399 |
y = GetRandom(1300)+382 |
8975
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
400 |
if DrawStar(x,y, 1, 1+GetRandom(2)*-2) then |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
401 |
TotGen = TotGen+1 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
402 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
403 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
404 |
|
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
405 |
while (TotGen < 6) and (Tries < 100) do |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
406 |
l = GetRandom(1000-Tries*10)+300 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
407 |
x = GetRandom(3900-l)+100 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
408 |
y = GetRandom(1900)+100 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
409 |
if GetRandom(2)==0 then b = GetRandom(800)+300 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
410 |
else b = 0 end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
411 |
if GetRandom(2)==0 then t = GetRandom(800)+300 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
412 |
else t = 0 end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
413 |
if y-t < 50 then t = y - 50 end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
414 |
if t < 200 then t = 0 end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
415 |
if DrawPlateau(x,y,l,t,b) then |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
416 |
TotGen = TotGen+1 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
417 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
418 |
Tries = Tries + 1 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
419 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
420 |
Tries = 0 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
421 |
while (TotGen < 17) and (Tries < 1000) do |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
422 |
if Tries < 500 and GetRandom(2)==0 then |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
423 |
x = GetRandom(3300)+350 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
424 |
y = GetRandom(1300)+350 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
425 |
if DrawStar(x,y, 1, 1+GetRandom(2)*-2) then |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
426 |
TotGen = TotGen+1 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
427 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
428 |
else |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
429 |
if Tries > 500 then d = GetRandom(2)+3 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
430 |
else d = GetRandom(3)+2 end |
10969
98cab7f366c3
add a bit more spacing around stars, add pad parameter to increase spacing between objects
nemo
parents:
10611
diff
changeset
|
431 |
x = GetRandom(4000-div(764,d))+div(764,d*2) |
98cab7f366c3
add a bit more spacing around stars, add pad parameter to increase spacing between objects
nemo
parents:
10611
diff
changeset
|
432 |
y = GetRandom(1300-div(764,d))+div(764,d*2) |
8975
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
433 |
if DrawStar(x,y, d, 1+GetRandom(2)*-2) then |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
434 |
TotGen = TotGen+1 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
435 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
436 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
437 |
w = GetRandom(35-div(Tries,29))+15 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
438 |
x = GetRandom(4050-w*20)+w*10 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
439 |
y = GetRandom(2000-w*20)+w*10 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
440 |
if DrawCircle(x,y,w) then |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
441 |
TotGen = TotGen+1 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
442 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
443 |
w = GetRandom(35-div(Tries,29))+5 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
444 |
x = GetRandom(4050-w*20)+w*10 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
445 |
y = GetRandom(2000-w*20)+w*10 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
446 |
if DrawCrescent(x,y,w,GetRandom(2)==0) then |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
447 |
TotGen = TotGen+1 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
448 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
449 |
Tries = Tries + 1 |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
450 |
end |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
451 |
FlushPoints() |
188a71ceda72
Add shoppamap lua as mikade requested. also add 50% chance of bottom border w/ holes as he requested. Also disable land objects in shoppa scheme, since that's more common way to play it.
nemo
parents:
diff
changeset
|
452 |
end |