Oneliner game in Basic | Optimization and Upgrade | Commodore 64

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ก.ย. 2024

ความคิดเห็น • 30

  • @JoepGeevers
    @JoepGeevers 2 ปีที่แล้ว +15

    Hi! Author here. Thank you so much for your excellent breakdown of my little game! As already said by others, the p

    • @davedavenport8673
      @davedavenport8673 2 ปีที่แล้ว +4

      Love your one liner. I was inspired by it and made a 10 liner for the 10 liner competition a couple years ago called Queso Run. It has color, sound and a sprite that is joystick controlled. It also has some relevance to today's festivities of May the Fourth.

    • @JoepGeevers
      @JoepGeevers 2 ปีที่แล้ว +4

      @@davedavenport8673 Cool! I'm going to check it out. On my list-that-never-shrinks I still have a tiny tetris to do ;)

    • @JosipRetroBits
      @JosipRetroBits  2 ปีที่แล้ว +2

      Hi, very much appreciate your comment. You wrote an amazing little game.
      Ok, I understand moving right and going down line by line. But I also find a game enjoyable with just avoiding asterisks. Thank You for the tip (39)

    • @JosipRetroBits
      @JosipRetroBits  2 ปีที่แล้ว

      I apologize if I mispronounced your name, and have you thought about giving the game some cool name? :)

  • @NotaWizard
    @NotaWizard 2 ปีที่แล้ว +7

    Nicely done. I laughed when you happily announced you have room to upgrade the game. haha
    I agree about the ON, it seems like a wasteful way to do it.
    The only thing I can think about the ON p

    • @JosipRetroBits
      @JosipRetroBits  2 ปีที่แล้ว +2

      Ha Ha Yes, sometimes I use completely incorrect words for the context :)
      Yes, I assumed that he wanted to limit the movement of the player but it is not necessary for this small piece of code.
      Thank You!

    • @davedavenport8673
      @davedavenport8673 2 ปีที่แล้ว +2

      It is how to win the game. If you hit a star you go to 0 which does not exist, so error, but if you make it through 10 lines (420 positions) you win and the game ends by going to the next line which is nothing so end of program. That code is brilliant for a goal to the game and for having harder levels for each line you move down

  • @giuseppeazzarello8426
    @giuseppeazzarello8426 2 ปีที่แล้ว +2

    compliment a simple game, educational and fun

    • @JosipRetroBits
      @JosipRetroBits  2 ปีที่แล้ว

      It really is! Amazing snippet of code :)

  • @davedavenport8673
    @davedavenport8673 2 ปีที่แล้ว +5

    The object of the game is to move right and get to the next line. Once you do that 10 times you win. The game gets harder the more lines you move down because you have less time to see the coming asterisks.

    • @davedavenport8673
      @davedavenport8673 2 ปีที่แล้ว +1

      That is what the On statement with 420 was for. Once p=420 you win and game is over. Play the original and try to win. It gets hard as you get close to ten lines down

    • @JosipRetroBits
      @JosipRetroBits  2 ปีที่แล้ว

      Ok, I can see that, but what if you move to the left? And Yes it will get harder just because you are closer to the last row...

  • @NilsRetroHobbyRoom
    @NilsRetroHobbyRoom 2 ปีที่แล้ว +1

    Hiho!
    Really nice game 🙂 Thanks for showing and for the nice breakup of the code.
    Amazing, that one line of basic code can do that. Have to test it on one of my Commodore's 🙂
    Greetings,
    Nils

    • @JosipRetroBits
      @JosipRetroBits  2 ปีที่แล้ว +1

      Thank you very much! Yes it is amazing snippet of code :)

  • @igork3522
    @igork3522 2 ปีที่แล้ว +1

    This reminds me of the game I used to type in when I was 10? back in 1983, using computer "Galaksija", but I remember the BASIC code to be much longer :) Now go and implement a score in that 1 liner :)

    • @JosipRetroBits
      @JosipRetroBits  2 ปีที่แล้ว +1

      Galaksija, Yes :) Nothing else fits in one line, so maybe extend to two lines, maybe yes...

  • @8BitRetroReFix
    @8BitRetroReFix 2 ปีที่แล้ว +1

    Nice little code line mate :) ...

  • @pyrotas
    @pyrotas 2 ปีที่แล้ว +1

    I think that 420 is actually more of a Easter egg, as it is highly implausible one would offset more than 40 positions 😂

    • @JosipRetroBits
      @JosipRetroBits  2 ปีที่แล้ว +1

      Ha ha, do not know. But I see that author responded here in the comments so, you can reed it.

  • @mikevars8979
    @mikevars8979 2 ปีที่แล้ว +2

    maybe you could add a counter so when it breaks you have a score of how many lines you made it.

    • @JosipRetroBits
      @JosipRetroBits  2 ปีที่แล้ว

      Yes, that is nice idea. Thank You!

  • @doktor6495
    @doktor6495 2 ปีที่แล้ว

    What was at 19:45 ? Hopefully not what I think it was! 😜

    • @JosipRetroBits
      @JosipRetroBits  2 ปีที่แล้ว +1

      Ha Ha Ha, no, I believe i moved something on the table :)

  • @BenevolentChum
    @BenevolentChum 2 ปีที่แล้ว +1

    Thanks for the great game idea. Very nice discussion. Made a version for the TRS-80 MC-10, which you can see here: th-cam.com/video/D3v8oU1PD8M/w-d-xo.html

    • @JosipRetroBits
      @JosipRetroBits  2 ปีที่แล้ว

      Thank You Jim, I saw it, looks great, very sharp and smooth :)