_Title "Peace Train" ' 2022-03-10 Mod of old post 2019-03-24 mod B+ 2019-03-26
' play this: [youtube]https://www.youtube.com/watch?v=UkTQri3a4Gg[/youtube]
' Cat Stevens: Peace Train
'background B+ mod
LoadLandscape
'PRINT scapeWidth, scapeHeight
'train stuff [banned user] and Fellippe?
Smoke3
= Space$(16) + " @@ @@ @ @ @ "Smoke4
= Space$(16) + " @@ @@ @ @ @ "LoadTrain
col = 1
row = 7
p = 6
le = scapeWidth - 800
' background stuff
te = scapeWidth - le
_PutImage (0, 0)-(te
, scapeHeight
), scape&
, 0, (scapeWidth
- te
, 0)-(scapeWidth
, scapeHeight
) _PutImage (te
, 0)-(800, scapeHeight
), scape&
, 0, (0, 0)-(800 - te
, scapeHeight
) _PutImage (0, 0)-(800, scapeHeight
), scape&
, 0, (le
, 0)-(le
+ 800, scapeHeight
) '_PRINTSTRING (5, 5), STR$(le)
le = le - 1
If le
< 0 Then le
= scapeWidth
'train stuff
'_PRINTSTRING (0, 16 * j + 112), MID$(Train(p, j + 1), i, 80)
'If i < Len(Smoke4) Then
' If fcount Mod 30 < 15 Then
' _PrintString (0, 96 + 300), Mid$(Smoke1, i, 80)
' _PrintString (0, 64 + 300), Space$(8) + Mid$(Smoke1, i, 80)
' _PrintString (0, 32 + 300), Space$(24) + Mid$(Smoke3, i, 80)
' Else
' _PrintString (0, 80 + 280), Space$(4) + Mid$(Smoke1, i, 80)
' _PrintString (0, 48 + 280), Space$(12) + Mid$(Smoke2, i, 80)
' _PrintString (0, 32 + 280), Space$(24) + Mid$(Smoke4, i, 80)
' End If
'End If
fcount = fcount + 1
If fcount
= 60 Then fcount
= 0 col = col + 1: i = i + 1
peace 167, 579, 18, a
peace
215, 579, 18, a
+ _Pi / 2 peace
263, 579, 18, a
+ _Pi peace
311, 579, 18, a
+ _Pi * 1.5
peace
530, 591, 6, a
+ _Pi * .25 peace
578, 591, 6, a
+ _Pi * .75 peace
634, 591, 6, a
+ _Pi * 1.25 peace
682, 591, 6, a
+ _Pi * 1.75
peace
90, 585, 12, a
+ _Pi * .66 peace
386, 585, 12, a
+ _Pi * 1.66
peace
128, 419, 12, -a
+ _Pi * .1 peace
175, 386, 10, -a
- _Pi * .3 peace
281, 351, 9, -a
+ _Pi * .5 peace
328, 321, 10, -a
+ _Pi * .7 peace
401, 318, 7, -a
+ _Pi * .9 peace
477, 307, 9, -a
+ _Pi * 1.1 peace
562, 317, 6, -a
+ _Pi * 1.5
peace 608, 518, 28, 0
xmax = 800 * 6: ymax = 600
midInk 0, 0, 128, 128, 128, 200, i / ymax
'the land
startH = ymax - 200
rr = 70: gg = 70: bb = 90
Xright = 0
y = startH
' upDown = local up / down over range, change along Y
' range = how far up / down, along X
upDown
= (Rnd * .8 - .4) * (mountain
* .5) range = Xright + rand%(15, 25) * 2.5 / mountain
If range
> xmax
- 50 Then range
= xmax
- 50 lastx = Xright - 1
test = y + upDown
If Abs(test
- startH
) < .1 * startH
Then y
= test
Line (lastx
, y
)-(x
, ymax
), , BF
'just lines weren't filling right lastx = x
Xright = range
x = lastx + 1
y = y + (startH - y) / 40
Line (lastx
, y
)-(x
, ymax
), , BF
'just lines weren't filling right lastx = x
x = x + 1
rr = rand%(rr - 15, rr): gg = rand%(gg - 15, gg): bb = rand%(bb - 25, bb)
startH = startH + rand%(5, 20)
rand%
= Int(Rnd * (hi%
- lo%
+ 1)) + lo%
Sub midInk
(r1%
, g1%
, b1%
, r2%
, g2%
, b2%
, fr##
) Color _RGB(r1%
+ (r2%
- r1%
) * fr##
, g1%
+ (g2%
- g1%
) * fr##
, b1%
+ (b2%
- b1%
) * fr##
)
Read t: Train
(i
, j
) = t
+ Coal
(j
)
' Reverse: "312465"
Pattern = Pattern + t + t
Data " _________________ " Data "__|________________________|_" Data "|__________________________|_" Data " |_D__D__D_| |_D__D__D_| "
Data " ==== ________ ___________" Data " _D _| |_______/ \__I_I_____===__|_________|" Data " |(_)--- | H\________/ | | =|___ ___| " Data " / | | H | | | | ||_| |_|| " Data " | | | H |__--------------------| [___] | " Data " | ________|___H__/__|_____/[][]~\_______| | " Data " |/ | |-----------I_____I [][] [] D |=======|__" Data "__/ =| o |=-O=====O=====O=====O \ ____Y___________|__" Data " |/-=|___|= || || || |_____/~\___/ " Data " \_/ \__/ \__/ \__/ \__/ \_/ "
Data " ==== ________ ___________" Data " _D _| |_______/ \__I_I_____===__|_________|" Data " |(_)--- | H\________/ | | =|___ ___| " Data " / | | H | | | | ||_| |_|| " Data " | | | H |__--------------------| [___] | " Data " | ________|___H__/__|_____/[][]~\_______| | " Data " |/ | |-----------I_____I [][] [] D |=======|__" Data "__/ =| o |=-~O=====O=====O=====O\ ____Y___________|__" Data " |/-=|___|= || || || |_____/~\___/ " Data " \_/ \__/ \__/ \__/ \__/ \_/ "
Data " ==== ________ ___________" Data " _D _| |_______/ \__I_I_____===__|_________|" Data " |(_)--- | H\________/ | | =|___ ___| " Data " / | | H | | | | ||_| |_|| " Data " | | | H |__--------------------| [___] | " Data " | ________|___H__/__|_____/[][]~\_______| | " Data " |/ | |-----------I_____I [][] [] D |=======|__" Data "__/ =| o |=-~~\ /~~\ /~~\ /~~\ ____Y___________|__" Data " |/-=|___|=O=====O=====O=====O |_____/~\___/ " Data " \_/ \__/ \__/ \__/ \__/ \_/ "
Data " ==== ________ ___________" Data " _D _| |_______/ \__I_I_____===__|_________|" Data " |(_)--- | H\________/ | | =|___ ___| " Data " / | | H | | | | ||_| |_|| " Data " | | | H |__--------------------| [___] | " Data " | ________|___H__/__|_____/[][]~\_______| | " Data " |/ | |-----------I_____I [][] [] D |=======|__" Data "__/ =| o |=-~~\ /~~\ /~~\ /~~\ ____Y___________|__" Data " |/-=|___|= O=====O=====O=====O|_____/~\___/ " Data " \_/ \__/ \__/ \__/ \__/ \_/ "
Data " ==== ________ ___________" Data " _D _| |_______/ \__I_I_____===__|_________|" Data " |(_)--- | H\________/ | | =|___ ___| " Data " / | | H | | | | ||_| |_|| " Data " | | | H |__--------------------| [___] | " Data " | ________|___H__/__|_____/[][]~\_______| | " Data " |/ | |-----------I_____I [][] [] D |=======|__" Data "__/ =| o |=-~~\ /~~\ /~~\ /~~\ ____Y___________|__" Data " |/-=|___|= || || || |_____/~\___/ " Data " \_/ \O=====O=====O=====O_/ \_/ "
Data " ==== ________ ___________" Data " _D _| |_______/ \__I_I_____===__|_________|" Data " |(_)--- | H\________/ | | =|___ ___| " Data " / | | H | | | | ||_| |_|| " Data " | | | H |__--------------------| [___] | " Data " | ________|___H__/__|_____/[][]~\_______| | " Data " |/ | |-----------I_____I [][] [] D |=======|__" Data "__/ =| o |=-~~\ /~~\ /~~\ /~~\ ____Y___________|__" Data " |/-=|___|= || || || |_____/~\___/ " Data " \_/ \_O=====O=====O=====O/ \_/ "
l
= l
+ 1: x
= x0
+ l
* Cos(ra
): y
= y0
+ l
* Sin(ra
) For radius
= 0 To thic
/ 2
Sub peace
(x0
, y0
, r
, raRot
) ' 12 is about smallest thic = r / 5.5
lyne x0
, y0
, r
- .5 * thic
, _Pi * 1.5 + raRot
, thic
, &H11FFFFFF lyne x0
, y0
, r
- .5 * thic
, _Pi * .5 + raRot
, thic
, &H11FFFFFF lyne x0
, y0
, r
- .5 * thic
, _Pi * .25 + raRot
, thic
, &H11FFFFFF lyne x0
, y0
, r
- .5 * thic
, _Pi * .75 + raRot
, thic
, &H11FFFFFF