Bubble sort is great, I use it in RPGs to find out which character has the highest value in a skill and I make the skillcheck against that, took some time to find it out on my own, great idea to include it here!
@@RetroGameCoders yes, for 4 elements it's not too bad. But I could easily see someone carrying it forward to 100+ elements and wondering why it takes forever.
Its great to see CBM Basic lessons. I wonder when will someone have similar lessons for MEGA65 newer basic, Sinclair QL SuperBASIC and I believe BBC Basic as best and mightiest basic versions
@@RetroGameCoders Here's what I don't get though: I checked your code and nowhere does it state that the @ key is the character, unless the long string of characters then the @ key is it. Anyway, I tried it a few times, Didn't work. Also, your site doesn't have the code written in plain text. Could you update with that in mind?
Bubble sort is great, I use it in RPGs to find out which character has the highest value in a skill and I make the skillcheck against that, took some time to find it out on my own, great idea to include it here!
Cool! Yeah it is a bit overkill for sorting 4 numbers but it is a very useful subroutine to have in the toolbox :D
Bubble sort hurts me deep inside. Please don't use it. There are so much better options.
@@alexmcd378 depends on your definition of better. In this case it is easy to understand, quick to implement and works "good enough" :)
@@RetroGameCoders yes, for 4 elements it's not too bad. But I could easily see someone carrying it forward to 100+ elements and wondering why it takes forever.
@@alexmcd378 well in the video I’m sure I do say it’s not the most efficient :)
Its great to see CBM Basic lessons. I wonder when will someone have similar lessons for MEGA65 newer basic, Sinclair QL SuperBASIC and I believe BBC Basic as best and mightiest basic versions
Thanks for this great series of videos!
Thank you, I appreciate it - my videos never get many views so I live for positive comments ;)
In Commodore BASIC 2.0, it seems with IF, there's no ELSE clause, that later BASIC versions have... interesting...
Yeah IF ELSE was not in the earlier Commodore versions, the closest was a kind of Switch ability using ON (ON X GOTO 100,200,300)
This is great
Thank you!
So i use Get a$ to read the keyboard, then (left) and so on for character movement?
Yes a$ will contain the pressed key
@@RetroGameCoders Here's what I don't get though: I checked your code and nowhere does it state that the @ key is the character, unless the long string of characters then the @ key is it. Anyway, I tried it a few times, Didn't work. Also, your site doesn't have the code written in plain text. Could you update with that in mind?
@@RetroGameCoders I understand now. thank you
Have you setup a Discord for this channel?
No, there didn't seem enough interest :)
@@RetroGameCoders build it and they will come.
Is there a repository for these examples?
There’s a zip containing the d64