Search found 50 matches

by MikeHawk
Mon Oct 10, 2022 8:50 am
Forum: Pete's QB Site News
Topic: Forum Upgraded to PHPBB v3.3
Replies: 4
Views: 1798

Re: Forum Upgraded to PHPBB v3.3

Thank you very much!
by MikeHawk
Mon Apr 25, 2022 2:32 pm
Forum: News and Announcements
Topic: Columns in QB - Release
Replies: 4
Views: 2288

Re: Columns in QB - Release

Thanks! Yes, the short delay before the column is placed was in the original game. I got some things close enough (holding the down arrow key increases the score like it does on the Genesis, but there's a one point difference because I didn't pay attention to the delay before cementing the column,) ...
by MikeHawk
Thu Mar 17, 2022 7:03 am
Forum: News and Announcements
Topic: Columns in QB - Release
Replies: 4
Views: 2288

Columns in QB - Release

It's a clone of Sega's 1990 Columns in QuickBASIC. It has both the "original" and "flash" game modes, and supports joystick. It also features all the blocks from the Game Gear version. It's been tested under DOSBox (around 1500 cycles) and on a 18 years old laptop (Intel Celeron ...
by MikeHawk
Sun Mar 06, 2022 4:02 pm
Forum: News and Announcements
Topic: WorDOSle -- Wordle for DOS made in QB!
Replies: 6
Views: 2981

Re: WorDOSle -- Wordle for DOS made in QB!

Damn, that's really cool!
by MikeHawk
Sun Mar 06, 2022 4:00 pm
Forum: News and Announcements
Topic: How to: GET, PUT, and animations
Replies: 0
Views: 1487

How to: GET, PUT, and animations

I wrote two articles if anyone's interested: the first one covers basic tricks with GET and PUT (such as sprites,) and the other explains how to build a fairly flexible system to animate every object and character in your game without going through tedious condition blocks or redundant code. I'm joi...
by MikeHawk
Sat Feb 26, 2022 3:17 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: [SOLVED][QB64] Need help with the hour hand of my clock
Replies: 5
Views: 3135

Re: [SOLVED][QB64] Need help with the hour hand of my clock

Hi there! It's cool to see you're still working on your clock. If I could suggest a bigger optimization, it would be to remove the several calls to COS(), SIN() and the two multiplications done every update for each hand because it's fairly costly. It's not a problem for a simple clock program but c...
by MikeHawk
Thu Feb 24, 2022 9:43 am
Forum: News and Announcements
Topic: WorDOSle -- Wordle for DOS made in QB!
Replies: 6
Views: 2981

Re: WorDOSle -- Wordle for DOS made in QB!

Great! I'm fairly confident a binary search is fast enough to return the index in the array, but you're right about the ordered list: it takes time... I gave a try with Quick sort, and even though it's 4x faster than Shell sort, it also takes 2x the time to parse an already sorted list. Storing the ...
by MikeHawk
Wed Feb 23, 2022 10:17 am
Forum: News and Announcements
Topic: WorDOSle -- Wordle for DOS made in QB!
Replies: 6
Views: 2981

Re: WorDOSle -- Wordle for DOS made in QB!

Nice! Can I make three suggestions? They are trivial to implement, except for the last one. In GetWord$, use the file size to obtain the number of words in the dictionary rather than using a hard-coded value (so words can be added or removed without modifying the program.) Allow the player to give u...
by MikeHawk
Tue Feb 22, 2022 10:24 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: [SOLVED][QB64] Need help with the hour hand of my clock
Replies: 5
Views: 3135

Re: [QB64] Need help with the hour hand of my clock

Hi there! I'm a little bit of an autist when it comes to numbers, so I'll use the TIMER function to extract the hour in number form rather than convert the TIME$ string (TIMER returns the number of seconds elapsed since midnight:) EDIT: as it turns out, TIMER doesn't return the number of seconds ela...
by MikeHawk
Wed Sep 01, 2021 2:44 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Need second opinion on ASM snippet (MULTIKEY issues)
Replies: 0
Views: 5347

Need second opinion on ASM snippet (MULTIKEY issues)

I need the opinion of someone who knows assembly and the obscure intricacies of messing with pointers in an interrupt because I'm an ASM noob. I used to use Milo Sedlacek's MULTIKEY assembly code to replace the keyboard interrupt service routine because up until recently, it never failed to deliver....
by MikeHawk
Sun Aug 22, 2021 11:31 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Missing game: Hackman
Replies: 1
Views: 3333

Missing game: Hackman

I've been looking for Hackman (the first one) by James Robert Osborne (aka Wisdomdude.) I'm certain it exists since his old website mentions the game, but I've been unable to locate any copy of it on the Internet. Most QB repositories still provide a link to either Hackman 2 or 3 (or both,) but neve...
by MikeHawk
Wed Aug 18, 2021 9:28 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: File search in QB without crash
Replies: 2
Views: 4807

Re: File search in QB without crash

I wrote an answer, but I'm dumb and tired so I'm revising it. Short answer to your problem: you don't have to search all folders and keep track of the whole directory tree starting from the root IF you parse your folders linearly (one scope at the time.) That means you only need to keep track of fol...
by MikeHawk
Thu Jan 21, 2021 3:25 am
Forum: QBASIC and QB64 Questions & Answers
Topic: structure array within a structure
Replies: 2
Views: 6041

Re: structure array within a structure

QBasic doesn't support namespaces, which is what I think you're trying to do with "maindata." I'm afraid you'll have to create a set of shared variables instead (see this topic for shared variables.) It's dirty but there's no other way that I'm aware of: DIM SHARED mdStoreName AS STRING * ...
by MikeHawk
Sat Jan 16, 2021 9:22 am
Forum: QBASIC and QB64 Questions & Answers
Topic: shortening loading time for call absolute
Replies: 4
Views: 8901

Re: shortening loading time for call absolute

Way back when, we used to simply store assembly code in hexadecimal text-form in DATA statements... I'd replace the target string with an INTEGER array and use POKE to fill it faster. This would remove the need for the CHR$() and would also avoid resizing strings on-the-fly, which is much slower tha...
by MikeHawk
Tue Jan 05, 2021 10:47 am
Forum: News and Announcements
Topic: QB 4.0 ERROR: Length incorrect with certain string variables
Replies: 1
Views: 6244

Re: QB 4.0 ERROR: Length incorrect with certain string variables

Fairly certain it's working as intended. Fixed-length strings will always return the same length, regardless of their content. DIM v AS STRING * 50 v = "Fifty" PRINT "*";STRING$(50, "-");"*" PRINT "*";v;"*" Consider the following: DECLARE F...
by MikeHawk
Sun Jan 03, 2021 3:19 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Caling custom interrupt without using "call interrupt"
Replies: 1
Views: 5192

Re: Caling custom interrupt without using "call interrupt"

That's probably more an ASM question than a QB question. Anyway, a while back Hans Lunsing wrote a replacement for Call InterruptX in assembly so QBasic 1.1 could also support interrupts. The code is available right here . I don't know much about assembly but it should be possible to retrieve the in...
by MikeHawk
Tue Dec 22, 2020 3:44 pm
Forum: News and Announcements
Topic: PlayMATE - a PLAY composer
Replies: 3
Views: 8251

Re: PlayMATE - a PLAY composer

Okay, I think I removed the crash on exit bug again. Let's see how long that lasts. Version .4 fixes a few things (like changes not warranting a confirmation prompt, and some crashes caused by saving/loading empty documents) and includes folder browsing for file load/save. Also, the interface librar...
by MikeHawk
Sat Dec 12, 2020 8:02 am
Forum: News and Announcements
Topic: PlayMATE - a PLAY composer
Replies: 3
Views: 8251

Re: PlayMATE - a PLAY composer

Let me know how it goes; I worked a little bit more on it (v.4, it's not online) and the crash on exit came back. I still have no idea what's the cause of this thing, or how it vanished in v.3...
by MikeHawk
Tue Nov 24, 2020 8:31 am
Forum: News and Announcements
Topic: PlayMATE - a PLAY composer
Replies: 3
Views: 8251

PlayMATE - a PLAY composer

I'm not much of a musician so writing PLAY strings from scratch can be a hassle for me... so I wrote a PLAY "tracker" to provide visual support. Right now, it features simple stuff like changing time signature and tempo, copy/insert bars, transposition and note length rescaling. It can imp...
by MikeHawk
Fri May 08, 2020 7:56 pm
Forum: News and Announcements
Topic: Panda BLAST!
Replies: 23
Views: 53742

Re: Panda BLAST!

I gave it another go, I hope this prevents the lock up. There's still no proper sound mixing and no ISR, but if it can at least play reliably one sound at a time, then I'm okay with it for now (that's enough to fix the previous games.)