C64 BASIC Part 3: IF Logic, Positioning Text, and Reading the Keyboard

Поделиться
HTML-код
  • Опубликовано: 28 окт 2024
  • ИгрыИгры

Комментарии • 22

  • @TheDarkmore
    @TheDarkmore 3 года назад +2

    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
      @RetroGameCoders  3 года назад +1

      Cool! Yeah it is a bit overkill for sorting 4 numbers but it is a very useful subroutine to have in the toolbox :D

    • @alexmcd378
      @alexmcd378 3 года назад

      Bubble sort hurts me deep inside. Please don't use it. There are so much better options.

    • @RetroGameCoders
      @RetroGameCoders  3 года назад +2

      @@alexmcd378 depends on your definition of better. In this case it is easy to understand, quick to implement and works "good enough" :)

    • @alexmcd378
      @alexmcd378 3 года назад

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

    • @RetroGameCoders
      @RetroGameCoders  3 года назад +2

      @@alexmcd378 well in the video I’m sure I do say it’s not the most efficient :)

  • @RasVoja
    @RasVoja Год назад

    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

  • @DavideNastri
    @DavideNastri 2 года назад

    Thanks for this great series of videos!

    • @RetroGameCoders
      @RetroGameCoders  2 года назад

      Thank you, I appreciate it - my videos never get many views so I live for positive comments ;)

  • @be236
    @be236 11 месяцев назад +1

    In Commodore BASIC 2.0, it seems with IF, there's no ELSE clause, that later BASIC versions have... interesting...

    • @RetroGameCoders
      @RetroGameCoders  11 месяцев назад

      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)

  • @rodneydaub3812
    @rodneydaub3812 Год назад +1

    This is great

  • @AllGamingStarred
    @AllGamingStarred 2 года назад

    So i use Get a$ to read the keyboard, then (left) and so on for character movement?

    • @RetroGameCoders
      @RetroGameCoders  2 года назад

      Yes a$ will contain the pressed key

    • @AllGamingStarred
      @AllGamingStarred 2 года назад

      @@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?

    • @AllGamingStarred
      @AllGamingStarred 2 года назад +1

      @@RetroGameCoders I understand now. thank you

  • @tylertaylor7800
    @tylertaylor7800 3 года назад +1

    Have you setup a Discord for this channel?

    • @RetroGameCoders
      @RetroGameCoders  3 года назад

      No, there didn't seem enough interest :)

    • @tylertaylor7800
      @tylertaylor7800 3 года назад +1

      @@RetroGameCoders build it and they will come.

  • @CityXen
    @CityXen 3 года назад

    Is there a repository for these examples?