QB64.org Forum
Active Forums => Programs => Topic started by: Petr on July 02, 2018, 12:03:56 pm
-
I want something for you all. Why not say this with program :-D
text$ = "Petr"
TextToArray P0(), text$
TextToArray p1(), "wish"
TextToArray p2(), "you"
TextToArray p3(), "a"
TextToArray p4(), "lot"
TextToArray p5(), "of"
TextToArray p6(), "fun!"
n = 16
o = 12
p = 4
q = 12
r = 8
s = 16
ToScreen P0(), m, 20
ToScreen p1(), n, 20
ToScreen p2(), o, 20
ToScreen p3(), p, 20
ToScreen p4(), q, 20
ToScreen p5(), r, 20
ToScreen p6(), s, 20
ERASE P0
, p1
, p2
, p3
, p4
, p5
, p6
DrawArray array
(), _WIDTH / 2 - (sx
* lenght
), _HEIGHT / 2 - sx
* 8, sx
, sx
SUB DrawArray
(p
() AS INTEGER, posx
, posy
, roztecx
, roztecy
) IF p
(x
, y
) THEN _PUTIMAGE (posx
+ (x
* roztecx
), posy
+ (y
* roztecy
)), image&
IF p
(x
, y
) THEN _PUTIMAGE (posx
+ (x
* roztecx
), (posy
+ (y
* roztecy
)) + Down
), image&
rd = rd + 1
-
Cool... Thank you!
J
-
Hi Petr (and all!),
I have coded a reply! After extracting zip file, load and run .bas file, press p for play...