Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Screen 0
#1
OK, just a learner still, but could someone please tell me exactly what is screen 0 and what is its significance?
Reply
#2
It's the only screen you'll ever need.

Pete

 - This thread is closed to further posts. j/k Big Grin
Reply
#3
(04-06-2024, 02:54 AM)Pete Wrote: It's the only screen you'll ever need.

Pete

 - This thread is closed to further posts. j/k Big Grin
It's the only screen PETE will ever need. FTFY

It's the default text screen that QB64 (and QuickBasic) uses at start up.

PRINT "HELLO WORLD"

The window with the black background is text SCREEN 0. It only allows text, no graphics. To leave SCREEN 0 you need to initiate a graphics screen:

SCREEN 13 ' legacy 320x200 graphics screen

SCREEN _NEWIMAGE(800, 600, 32) ' modern 800x600 32bit graphics screen
There are two ways to write error-free programs; only the third one works.
QB64 Tutorial
Reply
#4
Thank you, Pete and Terry.
Reply
#5
SCREEN 0 advantages:

Pi in SCREEN 0 just tastes better.

Pete Big Grin
If eggs are brain food, Biden has his scrambled.

Reply
#6
i said it once and i will say it again

https://qb64phoenix.com/forum/showthread...7#pid24237
'the only good reason to use screen 0 is for screen function'
b = b + ...
Reply
#7
(04-06-2024, 03:04 AM)Pete Wrote: SCREEN 0 advantages:

Pi in SCREEN 0 just tastes better.

Pete Big Grin
I agree, the TEXTure is much better.
There are two ways to write error-free programs; only the third one works.
QB64 Tutorial
Reply
#8
(04-06-2024, 03:09 AM)TerryRitchie Wrote:
(04-06-2024, 03:04 AM)Pete Wrote: SCREEN 0 advantages:

Pi in SCREEN 0 just tastes better.

Pete Big Grin
I agree, the TEXTure is much better.

If you hiv a New Zealand eccent, "better" sounds sounds like a nigative, not a positive!
Of all the places on Earth, and all the planets in the Universe, I'd rather live here (Perth, W.A.) Big Grin
Please visit my Website at: http://oldendayskids.blogspot.com/
Reply
#9
If you have a New Zealand accent, you have my sympathies. Actually, N.Z. is a lot like my home state of California. Again, my sympathies.

Pete Big Grin
Reply
#10
By the way, Terry, I implemented the code you gave me, SCREEN _NEWIMAGE(800, 600, 32) ' modern 800x600 32bit graphics screen. Very helpful. I am only on lesson 4 of the tutorial, but it still helps to be able to see the practice programs more completely than with the default.
Reply




Users browsing this thread: 1 Guest(s)