|
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Messages - OlDosLover
1
« on: June 11, 2012, 08:32:29 am »
Hi all, I recently started looking over Java. I find it quiet complex compared to QBasic but i intend to persevere. OlDosLover.
2
« on: June 11, 2012, 08:29:39 am »
Hi all, Amazing MrY! I have heard this but now i have seen the proof! OlDosLover.
3
« on: May 15, 2012, 06:04:05 am »
Hi all, It doesn't matter what to run it in as its cannot be highlighted and copied even to notepad until the code is placed in code boxes and smileys turned off. Try highlighting a line with a smiley on it and paste that line into notepad. As you will see it doesn't replicate it correctly and hence the program wont run unless the end user manually edits it. OlDosLover.
4
« on: May 08, 2012, 08:04:18 am »
Hi all, Im unable to run this. The problem is in the highlight copy and paste action. This program needs to be put into a code box and turn smileys off. The smileys (Chr$(  ) upset the ide dreadfully. OlDosLover.
5
« on: May 07, 2012, 10:09:50 pm »
Hi all, Interesting program John. I see this more as an added commentary to an existing graphical program rather than true text based game. Never the less i applaud you for you contribution. OlDosLover.
6
« on: May 01, 2012, 09:18:37 am »
Hi all, Here's the start of a graphics tutorial comparing the QBasic ideas to the new QB64 ideas. Criticisms and ideas welcomed. QB64 GRAPHICS Welcome to this tutorial. Here i will attempt to help the newcommer understand the legacy QBasic graphics ideas compared to the new QB64 graphic commands and how to use them. I will use some terms to describe things and define these terms next.
TERMS Legacy = QBasic or QB45 QB64 = The new underscored keywords Graphic surface = a set sized screen of pixels at a certain amount of colours Pages = a number of associated graphic surfaces all the same size and colour depth Colour Depth = maximum number of colours that can be displayed on a graphics surface Statement = a BASIC keyword used to invoke a command with correct parameters Monitor = computer screen Mode = a particular legacy screen Handle = Identifing label (a name)
LEGACY SCREEN's In the old DOS QBasic a user could only create fixed legacy screens in size and colour depth. In QBasic a user would create this one graphic window by using the statement SCREEN with a number. For example the main graphic screens that QBasic could create are:
SCREEN 7 SCREEN 9 SCREEN 12 SCREEN 13
The resolutions of these old screens are:
SCREEN 7 320 x 200 x 16 colours at 4 pages SCREEN 9 640 x 350 x 16 colours at 2 pages SCREEN 12 640 x 480 x 16 colours at 1 page SCREEN 13 320 x 200 x 256 colours at 1 page
When the programmer creates one of these screens one does it by invoking the SCREEN statement with the desired screen number. It is immediately created and made visual , so its seen. On todays modern computer monitors that have huge resolutions these old screen will appear to be very small. Never the less they can be made to fill the entire monitor screen by using the keyboard command ALT + ENTER.
QB64 SCREEN's
The programmer can still use the above QBasic syntax of creating a screen or use the QB64 only _NEWIMAGE. Newimage allows the user to create a graphic surface. This surface has a horizontal size and a vertical size and a colour depth. The colour depth is indicated by using the legacy MODE number (0,1,2,7,8,9,10,11,12,13) or stateing the colour depth as 256 or 32. The programmer indicates the horizontal pixel size , the vertical pixel size and the number of colors with the arguments in the statement declaration. For legacy screens the programmer indicates the color depth by using the Screen number (Mode) as the colour depth variable. To create the same legacy screen with the _NEWIMAGE command the user would do:
Handle& = _NEWIMAGE(640,480,7) 'Legacy QBasic Screen 7 Handle& = _NEWIMAGE(640,480,9) 'Legacy QBasic Screen 9 Handle& = _NEWIMAGE(640,480,12) 'Legacy QBasic Screen 12 Handle& = _NEWIMAGE(640,480,13) 'Legacy QBasic Screen 13
The HANDLE& is either the keyword SCREEN or a variable name composed by the author. Here are two examples:
SCREEN _NEWIMAGE(640,480,12) 'immediately create and make visable GraphicSurface& = _NEWIMAGE(640,480,12) 'immediately create but is not visable
Whats the differences? When the SCREEN statement is used as in the first example QB64 immediately creates a 640 pixel wide by 480 pixel deep with Legacy SCREEN 12 size at 16 colours and makes it immediately visable on the users computer monitor. When the user creates a surface with a Handle name QB64 allocates a negative number that isnt in use to identify the identity of that surface. Secondly QB64 immediately creates a 640 pixel wide by 480 pixel deep with 16 colours surface. It does not make this surface visable. Which means that it exists and is located in memory but is not actually shown. Interestingly the user can use the print statement on this surface to display the negative number assigned to that surface. Please note that the number -1 (negative one) is reserved to indicate that an error has occured. So if your Surface is -1 then it isnt created! and carnt be used. So how would the user do this to illustrate the handle number? Like this example
REM GraphicSurface& = _NEWIMAGE(640,480,16) 'create the equivalent Legacy Screen 12 SCREEN GraphicSurface& 'make this Surface visable PRINT GraphicSurface& 'print the surfaces handle number SLEEP SYSTEM
So the user can replicate the older DOS graphic screens but what about newer sized screens? Well with _NEWIMAGE the user can create any sized screen that they desire with 32 bit colours. This screen can be 8 pixels square up to 1000's of pixels square! Now even though you can make a 2,500 pixel screen the average computer monitor can not show the entire surface on the screen. What you will see is part of the screen. If you use your mouse cursor to click on the title bar of this screen and hold the button down you can slide it sideways to see its complete size. The user is better off using standard sizes that most monitors can display like full screen monitor resolutions.
OlDosLover.
7
« on: May 01, 2012, 06:54:14 am »
Hi all, John the above program. Did you want to work more on it? I was thinking that once the "line" is drawn (the start and end pixels are recorded) we could compute the line length by treating the line as the diagonal line of a triangle. If the drawn line is vertical or horizontal then computing in pexels is linear or so it would seem to me? Any thoughts? OlDosLover.
8
« on: May 01, 2012, 06:22:44 am »
Hi all, Ok i'll get on to it and reply here. OlDosLover.
9
« on: May 01, 2012, 06:18:26 am »
Hi all, Post the program John and lets have a look. OlDosLover.
10
« on: May 01, 2012, 06:14:36 am »
Hi all, Agreed gentlemen with a lot of your comments. clippy and that bunch bugg me big time This person may have good intentions but its comes across as hostility to me. I'd prefer a more open collaborative forum that encourages newcommers to participate rather than be exposed to embarrassment by senior members. Im hoping this site comes up with a really good spirit that fosters new people that wish to learn and contribute. OlDosLover.
11
« on: April 30, 2012, 09:37:56 am »
Hi all, Sound sensible thinking to me. i want to keep it simple to join, but not to simple that i attract spambots Perhaps you should try registering a new user from a different computer to prove that it works as expected. I can not explain John's difficulties but do believe him. OlDosLover.
12
« on: April 30, 2012, 09:25:49 am »
Hi all, I have an old text book called "Teach Yourself Game Programming in 21 Days" by Andre LM. It has a chapter on text games. Would you like me to scan it and make available a zip file of its contents Axlyon? OlDosLover.
13
« on: April 30, 2012, 09:23:11 am »
Hi all, Yes this is QB64. I NO longer write anything in QBasic or use the Qbasic IDE or interpreter. Was looking for independant confirmation that this program works as expected on other computers. OlDosLover.
14
« on: March 28, 2012, 10:20:38 am »
Hi all, Could someone test this program to make sure it works on thir computer also please. Be aware if you use Linux please edit the bas file to reflect the uppercase and lowercase way the David.jpg file name appers on your computer else it may error out . Windows treats all file names as uppercase! where Linux doesn't. OlDosLover.
15
« on: March 28, 2012, 10:18:09 am »
Hi all, Thanks i'll look into it VERY soon! OlDosLover.
|
Excelling in C++: Trust the Professional Code Experts at MyCodingHomework for Expert Homework Assistance
by Dilamon Saravi
June 05, 2023, 08:02:21 am
|
Make money online: 4 Reasons Why Blockchain Gaming is The Future
by Damingw
March 06, 2023, 05:51:43 am
|
Fairy Cat, New Profitable Blockchain Game
by claude william
March 01, 2023, 11:30:54 pm
|
GameFi - A way out for low-skilled workers
by claude william
February 28, 2023, 11:29:57 pm
|
The History of Gaming — From Pay-to-Play to Play-to-Earn
by claude william
February 27, 2023, 11:50:57 pm
|
Best Blockchain Games
by claude william
February 26, 2023, 11:46:46 pm
|
3 Best Blockchain Games to Invest In 2023
by claude william
February 25, 2023, 11:16:23 pm
|
The History of Gaming — From Pay-to-Play to Play-to-Earn
by claude william
February 24, 2023, 11:57:47 pm
|
Best Play-to-Earn Games with NFTs or Crypto
by claude william
February 24, 2023, 12:04:48 am
|
A few lines of fun writing to IT brothers during Covid
by claude william
February 22, 2023, 11:35:56 pm
|
|
|