Search found 61 matches
- Sat Apr 18, 2020 10:49 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: For/Next/Step
- Replies: 2
- Views: 38035
Re: For/Next/Step
Hi there. To keep things short, the FOR...NEXT loop is initialized once by QBASIC before it starts, so you can't mess with the upper limit ("128" in your example) and you can't modify the value fed to STEP either. When you type: FOR a = b TO c STEP d PRINT a NEXT a QBASIC is actually doing...
- Mon Apr 13, 2020 5:43 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: how to share Common declare between modules
- Replies: 6
- Views: 69208
Re: how to share Common declare between modules
Okay, there's another way to share a variable only between certain routines: define the variable as usual in the main module, then use SHARED within the routine: DECLARE SUB test1 () DECLARE SUB test2 () DIM something AS STRING something = "anything, really" test1 test2 END SUB test1 SHARE...
- Wed Apr 08, 2020 6:49 pm
- Forum: News and Announcements
- Topic: Cody McCloud in: Rain of Terror
- Replies: 3
- Views: 52448
Cody McCloud in: Rain of Terror
It's a Breakout clone with a cloud... 30 levels of ball busting fun! It has a save game feature, SoundBlaster effects, joystick, mouse and keyboard support, particle effects, animated backgrounds (using palette-cycling tricks,) a handful of instruction screens, a high-score table, 3 difficulty setti...
- Fri Jan 10, 2020 3:56 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: how to share Common declare between modules
- Replies: 6
- Views: 69208
Re: how to share Common declare between modules
Wait, does your code actually work in QBasic or QuickBASIC? QB doesn't have the PUBLIC/PRIVATE declaration (everything is PUBLIC) and all variables are passed BYREF (I don't think you can explicitly use BYVAL unless it's for CALL ABSOLUTE or a non-BASIC procedure.) I'm not sure the code you wrote wo...
- Mon Dec 16, 2019 11:12 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Are arcade games possible in QB? [answered]
- Replies: 7
- Views: 55369
Re: Are arcade games possible in QB? [answered]
Damn I'm late. If you're still interested, I'm going to shamelessly plug my page here (don't mind the URL, it covers joystick, mouse, AND keyboard): https://qbmikehawk.neocities.org/articles/joystick/index.html Long story short: keyboards have no on-board memory. What they do is send ONE byte of inf...
- Mon Oct 07, 2019 5:51 am
- Forum: News and Announcements
- Topic: Panda BLAST!
- Replies: 23
- Views: 134642
Re: Panda BLAST!
Thanks Erik! I enjoyed playing it and will most likely load it onto my 486 and play some more. If you do, let me know how it goes: I'm aiming for low-end computers and all I have to test the code is DosBOX since I no longer have the legit hardware. I'll probably get back to it, mostly to iron out th...
- Sun Aug 18, 2019 2:52 pm
- Forum: News and Announcements
- Topic: Microsoft Quickbasic 1.00 is Found
- Replies: 2
- Views: 41780
Re: Microsoft Quickbasic 1.00 is Found
That's pretty cool! The QB timeline is such a crazy mess. Thanks for posting this!
- Thu Aug 08, 2019 1:02 am
- Forum: News and Announcements
- Topic: Minesweeper Duo (source & executable)
- Replies: 4
- Views: 56872
Re: Minesweeper Duo (source & executable)
Thanks; I hope I'll be able to release at least two more games before the end of the year.
- Wed Jul 31, 2019 2:06 pm
- Forum: News and Announcements
- Topic: Minesweeper Duo (source & executable)
- Replies: 4
- Views: 56872
Minesweeper Duo (source & executable)
It's a remake of Microsoft Live Messenger's Minesweeper Flags (hotseat or against the computer) with the classic single-player mode on top. It features a bunch of cool stuff like SoundBlaster sound effects, expanded memory (EMS,) mode-Y, support for mouse, joystick and keyboard, customizable profile...
- Mon Jun 24, 2019 3:50 pm
- Forum: News and Announcements
- Topic: Panda BLAST!
- Replies: 23
- Views: 134642
Re: Panda BLAST!
And thank you for keeping your site online! I think I've been visiting this place since I was sixteen or seventeen and it's one of the last that is still alive. Everything else is gone. Last year I sorted a bunch of files on an old drive and found a small pile of QBasic games. I played some of them ...
- Thu May 23, 2019 7:15 pm
- Forum: News and Announcements
- Topic: Panda BLAST!
- Replies: 23
- Views: 134642
Panda BLAST!
It was meant to be a small tech demo for Mode Y (unchained Mode 13) which provides 4 pages of video memory to work with. I haven't seen many QB programs use it, so here's one (and it is sourced too.) The game is inferior to Monkey Blast and has a handful of tiny glitches I probably won't fix out of ...
- Tue Mar 05, 2019 7:31 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: LTRIM $
- Replies: 2
- Views: 42914
Re: LTRIM $
I'm not sure I get it. Are you trying to do this?
You have to convert numbers to strings before you can use LTRIM$() on them. You could also try PRINT USING.
Code: Select all
PRINT LTRIM$(STR$(TP)) + "TOTAL PARTS";
- Wed Feb 27, 2019 1:19 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Menu issues
- Replies: 4
- Views: 48214
Re: Menu issues
Oh that hurts. What you want to do is add an extra item to your list (so the user knows how to go back), and redirect to the previous menu (GOTO the line number that starts with CLS). Like so: 255 PRINT TAB(25); "0. Go back" 265 IF (MB = 0) THEN 110 335 PRINT TAB(25); "0. Go back"...
- Tue Feb 26, 2019 9:41 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Menu issues
- Replies: 4
- Views: 48214
Re: Menu issues
I'm not sure I get what you're trying to do, so here's how I do menus as of late: Each menu is barely more than a bunch of items that the user can select. Each item can either execute a very specific action (save configuration, apply changes, exit program), change a setting (modify the content of a ...
- Fri Feb 15, 2019 6:22 am
- Forum: News and Announcements
- Topic: _MOUSEX Smart Slide
- Replies: 0
- Views: 151639
_MOUSEX Smart Slide
Another stupid one; it's your average slide puzzle with attractive (and barely dressed) people. Features keyboard, mouse and gamepad controls, SoundBlaster effects and music, 200x200 BMP images, and customizable puzzles (you can add new pictures via a text file). Should work on low-end computers (I ...
- Tue Dec 25, 2018 6:54 am
- Forum: News and Announcements
- Topic: Remake of "JAW in Attacking Earth's Food Supplies" (2006 - TµEE co.)
- Replies: 0
- Views: 151465
Remake of "JAW in Attacking Earth's Food Supplies" (2006 - TµEE co.)
It's been a while since I've coded anything in QuickBASIC, and in order to ease things out, I decided to look into existing games that could easily be remade in a matter of days. The author or JAW was so eager to have someone rewrite his code I felt compelled to do it. The original source features e...
- Sat Oct 06, 2018 3:52 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Qbasic Program wont run
- Replies: 1
- Views: 40794
Re: Qbasic Program wont run
Try using backslashes instead of forward slashes in D1$, and remove the excess spacing for the "Print Detail" label.
- Sun Sep 23, 2018 6:56 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: C++ Compilation Failed
- Replies: 1
- Views: 18765
Re: C++ Compilation Failed
Hi Rich. QBASIC Assignment? What year is this? "C++ Compilation Failed"?! I can't tell if this is some elaborate shitposting or if I'm missing something. I'm getting too old for the internet. I have no idea why you'd get a "C++ Compilation Failed", but there are more concerning t...
- Mon Jul 30, 2018 8:12 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: QB45 & DOSBox question
- Replies: 5
- Views: 52359
Re: QB45 & DOSBox question
I’m using 0.72 and 0.74 (both Win32), there are some differences with some games, but all in all it doesn’t make much of a difference. However, regardless of the version, when it comes to QuickBASIC games there seem to be some sound issues (Super Stack comes to mind), some interrupts that are not ha...
- Sun Jul 22, 2018 6:59 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: QB45 & DOSBox question
- Replies: 5
- Views: 52359
Re: QB45 & DOSBox question
Yes you can use DOSBox to test, compile and execute QuickBASIC 4.5 programs (lately I've been using a combo of NotePad++ and DOSBox to test programs and it works fine).