Search found 61 matches

by MikeHawk
Sat Dec 16, 2023 3:48 pm
Forum: News and Announcements
Topic: FAX-ME: Let's write Tetris
Replies: 3
Views: 3206

Re: FAX-ME: Let's write Tetris

Wow! This is like an early Christmas gift! Super cool! Thanks! I should probably add some illustrations for the OR operator (XOR is used a few times but never explained, and MOD can be replaced with AND in this case, so I should probably point that out too.) I also spotted some remnants of old code...
by MikeHawk
Sat Dec 16, 2023 3:39 pm
Forum: General Discussion
Topic: Small BASIC
Replies: 3
Views: 2676

Re: Small BASIC

Oof... that's definitely not on my radar. I confused it with Small BASIC on Source Forge (https://sourceforge.net/projects/smallbasic/ -- I don't believe it to be related.) But this one seems very "new-Microsoft" in its approach and I don't understand what they're trying to do. Let me take...
by MikeHawk
Fri Dec 15, 2023 3:08 pm
Forum: News and Announcements
Topic: FAX-ME: Let's write Tetris
Replies: 3
Views: 3206

FAX-ME: Let's write Tetris

If you ever wanted to learn more about binary representation, boolean operators, and how this knowledge can help you program cool stuff, I just uploaded a simple black-and-white page packed with illustrations, code, and step-by-step instructions on how to build your own Tetris engine. Let me know wh...
by MikeHawk
Fri Sep 08, 2023 10:14 am
Forum: General Discussion
Topic: Net Basic - a BASIC in PHP
Replies: 14
Views: 19532

Re: Net Basic - a BASIC in PHP

Works perfectly. Always greater than 0 and less than 1. I updated your egg dropping example to reflect the change. Neat! :D Now you may embed Net Basic apps on any site. 8) Also neat :shock: If you did not already: check out Ethan Winer's BASIC Techniques and Utilities Book , it explains a lot of t...
by MikeHawk
Wed Sep 06, 2023 5:17 pm
Forum: General Discussion
Topic: Net Basic - a BASIC in PHP
Replies: 14
Views: 19532

Re: Net Basic - a BASIC in PHP

It seems that QB's RND() function could be emulated with: rand(0, getrandmax() - 1) / getrandmax() That said, I think I found something that you're not going to like much. I was about to say that a good alternative to NOT() is to use XOR -1... but... after running the following code in Net BASIC: 10...
by MikeHawk
Wed Sep 06, 2023 8:45 am
Forum: General Discussion
Topic: Net Basic - a BASIC in PHP
Replies: 14
Views: 19532

Re: Net Basic - a BASIC in PHP

May I include your snippets in the Net Basic examples? Sure, go ahead. IIRC, Net Basic didn't throw an error when I attempted to do: IF (r < g) AND (r < b) THEN LET min = r It failed and after looking into the sample codes, I understood I had to jump instead. But I expected an error at least. I als...
by MikeHawk
Tue Sep 05, 2023 12:20 pm
Forum: General Discussion
Topic: Net Basic - a BASIC in PHP
Replies: 14
Views: 19532

Re: Net Basic - a BASIC in PHP

Neat. I gave that code a go: 1 REM Get biggest common divisor of scrWidth and scrHeight (Euclidean Algorithm,) compute aspect ratio 10 LET scrWidth = 1024 20 LET scrHeight = 768 30 LET a = scrWidth 40 LET b = scrHeight 50 LET c = 0 100 IF (scrWidth < scrHeight) THEN 130 110 LET a = scrHeight 120 LET...
by MikeHawk
Wed Aug 16, 2023 11:06 am
Forum: News and Announcements
Topic: Columns in QB - Release
Replies: 6
Views: 11298

Re: Columns in QB - Release

The Autumn Springs Columns clone was one of the reasons I wanted to write my own. It has a sweet audio engine and looks good but some choices are baffling to me. It uses a high-resolution SVGA graphic mode so they could have square pixels but they also made every pixel 4x their size (I mean, if you'...
by MikeHawk
Sun Jan 22, 2023 9:23 am
Forum: News and Announcements
Topic: New Qbasic Christmas Game: Santa's Delivery Rush
Replies: 10
Views: 12951

Re: New Qbasic Christmas Game: Santa's Delivery Rush

I wish I could learn how to sound more supportive when I type because I'm really happy to see new games being programmed in QuickBASIC; especially ones that are actually complete and worth playing like yours (I got a fairly large collection of programs and a good chunk of them, while charming, are u...
by MikeHawk
Mon Jan 16, 2023 8:26 pm
Forum: News and Announcements
Topic: New Qbasic Christmas Game: Santa's Delivery Rush
Replies: 10
Views: 12951

Re: New Qbasic Christmas Game: Santa's Delivery Rush

sdrush_055.png
sdrush_055.png (1.16 KiB) Viewed 10048 times
I really think the actors' collision box should be thinner and maybe a little shorter too.
by MikeHawk
Sun Jan 15, 2023 8:13 pm
Forum: News and Announcements
Topic: New Qbasic Christmas Game: Santa's Delivery Rush
Replies: 10
Views: 12951

Re: New Qbasic Christmas Game: Santa's Delivery Rush

Some jumps are deceptive, others are really tricky to pull off: there's one in particular in a bonus round in which I expected the spring to bring me over the ledge to the left, but it didn't (I had to jump from the block directly below) and my first game over was on level 14 because I didn't realiz...
by MikeHawk
Mon Oct 10, 2022 8:50 am
Forum: Pete's QB Site News
Topic: Forum Upgraded to PHPBB v3.3
Replies: 5
Views: 25959

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: 6
Views: 11298

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: 6
Views: 11298

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: 7668

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: 28935

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: 6474

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: 7668

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: 7668

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: 6474

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...