Map range: Difference between revisions
Content added Content deleted
m (→Basic RPL code) |
Basicgames (talk | contribs) |
||
Line 1,090: | Line 1,090: | ||
define fn (maprange) as b1 + ( s - a1 ) * ( b2 - b1 ) / ( a2 - a1 ) |
define fn (maprange) as b1 + ( s - a1 ) * ( b2 - b1 ) / ( a2 - a1 ) |
||
⚫ | |||
do |
|||
let s = i |
let s = i |
||
Line 1,100: | Line 1,100: | ||
print i, " : ", (maprange) |
print i, " : ", (maprange) |
||
next i |
|||
⚫ | |||
loop i < 11 |
|||
end</syntaxhighlight> |
end</syntaxhighlight> |