You'd think this would be faster, but NO!!!!!! [Resolved]
#21
(10-14-2022, 08:51 PM)Pete Wrote: @TerryRitchie

I know, right? I think this one still has the devs a bit mystified. I had Steve mesmerized for days the time I pulled a rabbit out of my hat. He said it caught him off guard, because he was so used to me pulling ideas out of my other end. Ah, misdirection, my favorite tool in my SCREEN ZERO magic kit!

Pete

I knews it twasn't so, ya varmit!  Function calls always have overhead attached to them, so you'll always be faster to go with a variable when you can like this.  My code above proved to ya that 3 SCREEN calls weren't as fast as 1 SCREEN call and then 3 variable calls.  I just hadn't dug through the code enough to search out where your actual roadblock was at -- though it seems Matt has did that for us already, Mr. Reused-H!!  ;D
Reply
#22
Well I'm glad it gave you a chuckle. I think after line 1,000 I hit some sort of brain fog wall, but not quite ready for the senior center just yet... I hope.

Hey for fun, could you guys have a look at the game and see if it sizes to your desktops? I coded what I think is a way to achieve that, but all my laptops are the same dimensions. So I only know it works on my. If the screen doesn't display correctly, mostly if it's too big, just hit ALT + ENTER, and run it full screen.

https://staging.qb64phoenix.com/showthre...01#pid7901

Pete
Reply
#23
(10-14-2022, 09:49 PM)Pete Wrote: Eeeeeeeks! It looks like I sent you guys on a snipe hunt this time around. My apologizes for wasting your time.

That's it, double use of a looping variable. I'm usually on the lookout for this kind of error. In the code, there are a lot of uses of the local variables h, i, j, and k. So much so, I had to make some exceptions to avoid the problem, you just found, by going to names like k2 or ii.

Well this puts a platter of eggs on my face, but I'm actually glad it isn't some internal compiler problem. Thanks for figuring it out. The important thing is... you beat Steve!

Pete

Edited thread title to reflect "Resolved."

Snipes is good eatin'! You're not alone Pete. I can't count the number times I've posted code on .ORG and .NET stating something was fishy only to have someone else find the flaw in my code when I'm sure my code was correct.

I always told my students that if you can't find any flaws in your code, even after staring at it for hours, but something unexpected is still going on, hand the code to someone else and 9 times out of 10 they'll find the culprit within 5 minutes. Fresh eyes vs tired brain syndrome.
Reply
#24
What worries me the most is from this point on, no one will take me seriously. Oh wait, when did I ever want anyone to take me seriously? No worries, I'm golden! Big Grin

Thanks Terry,

Pete
Reply
#25
(10-15-2022, 04:11 AM)Pete Wrote: What worries me the most is from this point on, no one will take me seriously. Oh wait, when did I ever want anyone to take me seriously? No worries, I'm golden! Big Grin

Thanks Terry,

Pete

Nah, I know I've referred to your code a number of times to figure out how to get something done, especially in SCREEN 0. And more than once you've corrected/added to my code to make it better. Hell, I even saw Clippy compliment your code once!
Reply
#26
Clippy? Oh yeah, Clippy. I taught Clippy every thing he knows, and that was 5 horrible seconds of my life I'll never get back. Big Grin

Hey, did you get a chance to take the game for a spin? https://staging.qb64phoenix.com/showthre...01#pid7901

I'd like your take on how much work you think it would take to put it into a graphics version. I'm considering working out some designs with TheBOB, but I really don't know how involved it could get.

Pete
Reply
#27
(10-15-2022, 05:12 AM)Pete Wrote: Clippy? Oh yeah, Clippy. I taught Clippy every thing he knows, and that was 5 horrible seconds of my life I'll never get back. Big Grin

Hey, did you get a chance to take the game for a spin? https://staging.qb64phoenix.com/showthre...01#pid7901

I'd like your take on how much work you think it would take to put it into a graphics version. I'm considering working out some designs with TheBOB, but I really don't know how involved it could get.

Pete

No, not yet. I've purposely been avoiding it until I get done with my current project. I'm like a dog and get distracted by squirrels easily. I am eager to see what you are building though. I want to add a section to the tutorial called "Build a game step-by-step" and your post looks perfect for this if you wouldn't mind me using it. Best part is you start with text based and then move to graphics.

I'll fire your game up tomorrow and have a look. Converting text based games to graphics is usually fairly easy since the underlying game logic is already in place.
Reply
#28
(10-15-2022, 05:12 AM)Pete Wrote: Clippy? Oh yeah, Clippy. I taught Clippy every thing he knows, and that was 5 horrible seconds of my life I'll never get back. Big Grin

Hey, did you get a chance to take the game for a spin? https://staging.qb64phoenix.com/showthre...01#pid7901

I'd like your take on how much work you think it would take to put it into a graphics version. I'm considering working out some designs with TheBOB, but I really don't know how involved it could get.

Pete

@Pete

I just played the game and left my thoughts. I like it!

Edit: ok, how do you properly tag a user in a message?
Reply
#29
You did the tag properly. It's Case sensitive, and you got that right, too. What browser are you using? I have an older FireFox and every time I use @ message, and this is a PITA, I have to do this:

1) Save it

2) Click on Quick Edit, and save changes

Then to see that it got hyperlinked, I have to refresh the page!

I'm wondering if other browsers or more current ones don't have this problem on this board.

Pete
Reply




Users browsing this thread: 13 Guest(s)