Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
another variation of "10 PRINT"
#5
Code: (Select All)
Dim As Integer u1, u2, j, ps, wd, ht, x, y, xm, ym
Dim As Long mfont
Randomize Val(Right$(Time$, 2))
ps = 20
xm = ps \ 2
ym = ps
wd = 640
ht = 400
Screen _NewImage(wd, ht, 32)
mfont = _LoadFont("CousineNerdFontMono-Regular.ttf", ps, "UNICODE")
_Font mfont
_PrintMode _KeepBackground
For j = 1 To 1600
    u1 = &H25
    u2 = Int(Rnd * 3) + &H71
    If u2 <> &H72 Then
        _UPrintString (x, y), Chr$(&H71) + Chr$(u1), ps, 16
    End If
    If u2 <> &H71 Then
        _UPrintString (x, y), Chr$(&H72) + Chr$(u1), ps, 16
    End If
    x = x + xm
    If x >= wd Then
        x = 0
        y = y + ym
        If y >= ht Then Exit For
    End If
Next
Sleep
System

I don't know why some folks are acting like it's difficult to get this demo to run on Windows.  All one has to do is grab the proper font file (I've zipped it up and attached it here for convenience's sake, but it can be found following the link in the first post as well.), and then extract it into the QB64PE folder and change the path where it'll be found as above.

That's all there is to it!

1) Copy code above into IDE
2) Download and extract font here into your QB64PE folder.
3) Compile and Run.

Nothing complicated about any of that.  Wink


Attached Files
.7z   CousineNerdFontMono-Regular.7z (Size: 1.23 MB / Downloads: 7)
Reply


Messages In This Thread
another variation of "10 PRINT" - by hsiangch_ong - 12-27-2024, 04:55 PM
RE: another variation of "10 PRINT" - by Jack002 - 01-09-2025, 11:54 PM
RE: another variation of "10 PRINT" - by bplus - 01-11-2025, 06:13 PM
RE: another variation of "10 PRINT" - by SMcNeill - 01-11-2025, 10:28 PM
RE: another variation of "10 PRINT" - by bplus - 01-11-2025, 11:48 PM
RE: another variation of "10 PRINT" - by SMcNeill - 01-11-2025, 11:58 PM
RE: another variation of "10 PRINT" - by SMcNeill - 01-12-2025, 12:35 AM
RE: another variation of "10 PRINT" - by bplus - 01-12-2025, 12:41 AM
RE: another variation of "10 PRINT" - by SMcNeill - 01-12-2025, 12:43 AM
RE: another variation of "10 PRINT" - by SMcNeill - 01-12-2025, 12:48 AM
RE: another variation of "10 PRINT" - by bplus - 01-12-2025, 12:53 AM
RE: another variation of "10 PRINT" - by JRace - 01-12-2025, 02:03 AM
RE: another variation of "10 PRINT" - by SMcNeill - 01-12-2025, 02:23 AM
RE: another variation of "10 PRINT" - by bplus - 01-12-2025, 02:52 AM
RE: another variation of "10 PRINT" - by JRace - 01-12-2025, 03:11 AM
RE: another variation of "10 PRINT" - by SMcNeill - 01-12-2025, 03:24 AM
RE: another variation of "10 PRINT" - by bplus - 01-12-2025, 03:23 AM
RE: another variation of "10 PRINT" - by JRace - 01-12-2025, 03:47 AM
RE: another variation of "10 PRINT" - by Jack002 - 01-12-2025, 07:45 PM
RE: another variation of "10 PRINT" - by bplus - 01-12-2025, 09:02 PM
RE: another variation of "10 PRINT" - by Jack002 - 01-13-2025, 02:56 PM
RE: another variation of "10 PRINT" - by JRace - 01-13-2025, 10:16 PM
RE: another variation of "10 PRINT" - by Jack002 - Yesterday, 10:05 PM
RE: another variation of "10 PRINT" - by SMcNeill - 01-13-2025, 02:12 PM
RE: another variation of "10 PRINT" - by bplus - 01-13-2025, 04:25 PM
RE: another variation of "10 PRINT" - by JRace - 01-13-2025, 06:24 PM
RE: another variation of "10 PRINT" - by SMcNeill - 01-13-2025, 06:44 PM
RE: another variation of "10 PRINT" - by JRace - 01-13-2025, 07:03 PM
RE: another variation of "10 PRINT" - by bplus - 01-13-2025, 07:51 PM
RE: another variation of "10 PRINT" - by Jack002 - Yesterday, 09:59 PM
RE: another variation of "10 PRINT" - by bplus - Yesterday, 01:39 AM
RE: another variation of "10 PRINT" - by JRace - Yesterday, 02:16 AM
RE: another variation of "10 PRINT" - by bplus - Yesterday, 02:27 AM
RE: another variation of "10 PRINT" - by JRace - Yesterday, 02:33 AM



Users browsing this thread: 6 Guest(s)