How to Make a C64 Game in BASIC Ep.1 [HOW2] | Nostalgia Nerd

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

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

  • @alessandromangaXD
    @alessandromangaXD 5 ปีที่แล้ว +25

    I suddendly felt the urge to buy a commodore and create a c64 game, i found this series, i discovered that it was never continued, i fell into depression. Now the C64 mini is out, PLEASE, GO ON WITH THIS SERIES

  • @NeilRoy
    @NeilRoy 7 ปีที่แล้ว +6

    To save typing, you do not need to use "LET". You can also use the "?" instead of typing "PRINT", it will show up as "PRINT" when you list the program. You can also type "gO" (g = shift O) instead of "GOTO", it will show up as "GOTO" when listed. To list, you can type "L" plus shift "i". There were a lot of shortcuts for the C64 to save some typing. You could also insert cursor movements between the quotes for printing and it would move the cursor the way you want when it was printed. Good for placing text at specific location on screen. The C64 actually has some cursor locate commands built in, but you needed to call them in machine language or know the SYS address for it (which I have in some notes somewhere). There was actually a SYS call for clearing the screen if printing a clear didn't suit your tastes (SYS command called a machine language subroutine at the address specified).
    I had some good times programming that machine.

  • @heidirichter
    @heidirichter 8 ปีที่แล้ว +36

    Great work, thank you. I spent more hours than I care to remember programming in BASIC, first on the Atari 400, then Commodore vic 20, then Commodore 64, then QBasic on the PC, finally AMOS on the Amiga 1200... I found some of my old cassette tapes the other day with "Word pro v2" on them for the Vic 20, which was my attempt to create a word processor on an unexpanded vic 20 in BASIC. All it did, really, was accept keyboard input at the cursor location, and F1 allowed a "save" of the whole screen to a specified flename on tape, while F3 allowed a loading of the whole screen. Even just cramming that into the tiny memory of the unexpanded vic in basic was a task, but i was proud of it. Now, I wouldn't have the foggiest idea how to do it, hahaha

  • @colonelbarker
    @colonelbarker 5 ปีที่แล้ว +26

    I sure would love a follow up to this..

  • @mikeyoung9810
    @mikeyoung9810 4 ปีที่แล้ว +3

    I'm having a good time using the c64 maxi to write basic games again like I used to back in the 80's. I start with a very simple idea "swinging a golf club and seeing how far the ball goes". No graphics. Just 4 lines and eventually I expand it to hundreds of lines as I keep expanding the idea. I used to eventually add graphics but I don't really care these days. It's a fun diversion and one bug can so focus your mind that hours can go why without notice while you think yourself through the code trying to find it.

  • @jakedelmastro
    @jakedelmastro 7 ปีที่แล้ว +1

    "A better way is to step out onto the pitch and start playing", this is 100% true, I never would have learned to program if I didn't dive right into something way over my head and learn by necessity.

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

    You're very natural at teaching and I think this will be of genuine use to people who want to code but feel intimidated by it. I used to enjoy making simple programs on my Speccy back in the 80s and QBasic on my DOS PC in the 90s and even had delusions of becoming a professional. I then hired a book on machine code from my local library and realised I was out of my depth! Nowadays I just stick to the occasional simple web app as HTML/Javascript as it's all my simple brain can understand.

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

    this was the first game i ever wrote on the Commodore when I was 7. so many great memories. thank you

  • @alaborbe123
    @alaborbe123 6 ปีที่แล้ว +1

    Wow, nice show... its been abot 20 years since i touched basic.... oh such memeories.... this videos removes abot first 100 pages of any manual and a lot of confusion for starters... oh if only i had tutor like that back in the days... great video, thank you very much for nostagic memories

  •  4 ปีที่แล้ว +1

    C64 blue screen reminds me of my childhood. I was 8 when my parents bought me one. That blue screen caused alot of tears but also joy.

  • @BlackburnBigdragon
    @BlackburnBigdragon 8 ปีที่แล้ว +14

    I remember the days. I wrote so many games on my C64 back in the day.

    • @superperfectstranger815
      @superperfectstranger815 7 ปีที่แล้ว

      BlackburnBigdragon I find JVM to be a good modern equivalent to learning basic on c64 because with JVM you can make complex programing from layers of simple code which the Linux kernel builds into complex program for you and you can go back and edit the program in its original stage of being a collection of simple codes vs something a c++ program where you must built the nativity into a complex program which makes the difference of 5 minutes vs 2 hours to find the code were you forgotten a symbol.

  • @minefan722
    @minefan722 8 ปีที่แล้ว +8

    You could have added this line to the beginning of the program :
    15 X = RND(-TI)
    that would initialize the random number generator and then you won't have the same sequence every time you reboot

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

    You brought back so many good memories from the "How 2" intro. That was a great TV show. That's where I first learnt about non-Newtonian fluids where Craig cut the stream of pouring liquid. Awesome.

  • @be236
    @be236 5 หลายเดือนก่อน

    I had fun programming my Commodore 64 and VIC-20 as a kid, back in the day... learned a lot about programming concepts.

  • @djmoch1001
    @djmoch1001 6 ปีที่แล้ว

    Getting happy flashbacks to programming in BASIC on my VIC-20, when I was something like 6 or 7 years old. I was a little computer geek, and I loved every minute of it!

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

    I'm so surprised you don't have more viewers 😲
    This is such a great way to get my retro computer fix haha

  • @shaunbebbington4174
    @shaunbebbington4174 6 ปีที่แล้ว +1

    Another way to generating integers without the INT keyword:
    10 X% = RND(0) * 10
    20 PRINT X%
    The % sign tells the interpreter to expect a signed 16 bit number, so has a range of -32768 to +32767, so it will automatically round it to an integer (I think it rounds down)

  • @ZaneDaMagicPufferDragon
    @ZaneDaMagicPufferDragon 8 ปีที่แล้ว +52

    Did you ever make a part two???

    • @speedwolf
      @speedwolf 6 ปีที่แล้ว +7

      Zane Revai Came here to ask the same thing.

    • @adamwishneusky
      @adamwishneusky 4 ปีที่แล้ว +1

      😢

    • @concotime
      @concotime 3 ปีที่แล้ว +1

      Its been 5 years and still no

  • @9joao6
    @9joao6 8 ปีที่แล้ว +11

    Just found your channel, cool stuff, loved learning from this video! Very cohesive teaching style you've got going on. When can we expect Ep. 2?

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

    For the listing in your description, instead of "*Insert Clear Screen Character*" you could also write chr$(147). Does the same thing, just looks a bit nicer on paper.

  • @aqualung2000
    @aqualung2000 6 ปีที่แล้ว +4

    I'm guessing when you started this you didn't realize how much work it would be. But I hope it's still on your list of things to revisit, because it's a great idea!

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

    Oh man, this was really awesome! Thanks!
    I learned a lot about what programming was like on early systems.
    This video was a little beginner for me so I can't wait for further more advanced episodes. I'm very interested in how graphics like sprites and draw commands were created and handled on these systems.

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

    I love the part at 5:00 with the long pause, and then "question mark". I found that really funny for some reason.

    • @sa3270
      @sa3270 4 หลายเดือนก่อน

      I think he was trying to decide if he wanted to correct the spelling mistake or pretend he didn't see it.

  • @Smudge1
    @Smudge1 3 ปีที่แล้ว

    You are really good at teaching programming thanks for helping

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

    Thanks for this, I've just this week added a c64c to my collection and was thinking of learning basic coding! Awesome.

  • @commodore64programming35
    @commodore64programming35 4 ปีที่แล้ว +1

    I rember there was a "guess my number" program in the Commodore 64 User's Manual. It would give you some hints too, such as "my number is lower" or "my number is higher". I remember I was quite enthusiast of this program when I first typed it in (I was 9 or 10). There were also a dice throwing simulator and a maze generator, both using random numbers.
    For example, this one line program will draw a maze:
    10 print chr$(205.5+rnd(1));: goto 10

  • @NeilRoy
    @NeilRoy 7 ปีที่แล้ว +5

    POKE 211,X : POKE 214,Y : SYS 58732 - this will set the cursor at the location specified.
    SYS 58692 - same as the CLR/HOME, clears the screen.
    POKE 775,200 - disable LIST
    POKE 775,167 - enable LIST

  • @Huddison
    @Huddison 7 ปีที่แล้ว +1

    Excellent - I just got myself an old C64 (bread bin type) from Ebay, so I'm trying to relearn all my basic knowledge.
    Looking forward to seeing more of your videos :)

  • @irolaan292
    @irolaan292 7 ปีที่แล้ว

    My biggest achievement in C64 basic was a Cross-stitch pattern maker program for my wife. It was mostly done in basic, but with ML routines to manipulate the multi-color mode. Many, many hours of hard work!

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

    My first "computer". You've come a long way baby.

  • @wisteela
    @wisteela 8 ปีที่แล้ว +7

    Excellent video. I'm looking forward to part two.
    Clear home should be shift clear home.

    • @Nostalgianerd
      @Nostalgianerd  8 ปีที่แล้ว +5

      You are correct. Still it gives people a bit of a challenge.

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

      Nostalgia Nerd True😊

  • @througtonsheirs_doctorwhol5914
    @througtonsheirs_doctorwhol5914 11 หลายเดือนก่อน

    Thanks ! I got one last year and I've been planning on coding a video game since 1988...
    Been a programmer since 2003 put the project of my own game on the back burner and now i the time.
    But I've never coded basic : COBOL, C, , C++, java, js, xthml, etc...

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

    This brings back good memories, loved programming back in the day. Also probely the reason why i love to use Linux today :)

  • @TheStevenWhiting
    @TheStevenWhiting 7 ปีที่แล้ว +1

    I was such a soft kid whenever we'd visit WHSmith in the 80s all I'd write is
    10 Print "Hello"
    20 Goto 10
    Everyone else wrote swear words. It never even crossed my mind to do that :)

  • @davehx
    @davehx 7 ปีที่แล้ว +23

    Unless a programs starts with....
    10 POKE 53280,0 : POKE 53281,0
    ...it sucks

    • @Richardddoobies
      @Richardddoobies 7 ปีที่แล้ว +1

      And poke 646,5 for that traditional greenscreen look...

    • @AllGamingStarred
      @AllGamingStarred 7 ปีที่แล้ว

      does nothing

    • @bloodmapedit
      @bloodmapedit 4 ปีที่แล้ว

      BSM?

    • @MrLoretano77
      @MrLoretano77 4 ปีที่แล้ว

      i so agree i started every one with this but i made the border white instead.

  • @marukubeen
    @marukubeen 6 ปีที่แล้ว +1

    I love programming I found a coding game on the Nintendo DSI and 3DS called Petit Computer and SmileBASIC they both use Basic and are a blast to make programs and games on. My 1st game was a chose your own path text game mixed with a maze-like dungeon my 2ed game was a slot machine game, I spent weeks working on the animation not using sprits just symbols. I would spend hours just adding code and would find my self looking at 400 new lines of code thinking how did I add all this with no programming experience. lol

    • @alessandromangaXD
      @alessandromangaXD 5 ปีที่แล้ว +1

      At this point it's fair to say you do have programming experience... If you tried to get into modern programming, especially comething high-level and simple like phyton, you would probably find it very easy and entertaining. Phyton does have some similarities to Basic, and it's often used as a learning ground for new programmers, but it's still an incredibly powerfull language. If you wanted, you could build an entire game engine and game worth of the best productions with it, but of course there are better and more efficient ways of doing so by using C++/C# or Java.

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

    I haven't messed around with BASIC as a programming language. More used to C++, though I would like to go backwards and learn more for the old PCs. I have attempted 6502 Assembly with a Commodore 64 Emulator. Would use my real C64 but my tv fell on it and its no longer functioning. Man is assembly rough. I have got as far as understanding the algorithm to multiply binary numbers using the carry bit. Due to time constraints in my life, I just haven't got any farther with it.

  • @Ensign_Cthulhu
    @Ensign_Cthulhu 4 ปีที่แล้ว

    Here is a better one that rolls TWO dice.
    5 PRINT "CLR-HOME"
    10 X = INT(RND(1)*6)+1:Y=INT(RND(1)*6)+1:Z=X+Y:REM ROLLS TWO DICE, GENERATING RANDOM NUMBERS BETWEEN 1 AND 6 FOR EACH AND ADDS THEM.
    20 PRINT "THE COMPUTER HAS ROLLED THE DICE. CAN YOU GUESS THE TOTAL (BETWEEN 2 AND 12)?"
    30 INPUT G. IF G < 2 OR G > 12 THEN PRINT "YOUR GUESS MUST LIE BETWEEN 2 AND 12": GOTO 30:REM REJECTS OUT-OF-RANGE GUESSES IMMEDIATELY
    40 IF G Z THEN PRINT "SORRY, YOU GUESSED WRONG."
    50 IF G = Z THEN PRINT "WELL DONE!"
    60 PRINT "DO YOU WANT TO TRY AGAIN (Y/N)?"
    70 GET G$:IF G$="" THEN GOTO 70:REM RETRIES EMPTY KEY BUFFER
    80 IF G$="Y" THEN GOTO 20:IF G$="N" THEN GOTO 90
    85 GOTO 70:REM REJECTS ANY ANSWER EXCEPT Y OR N
    90 PRINT "OK, SEE YOU AGAIN SOON.":END

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

    Thanks! Im gonna try this on my C64 Mini tonight!

  • @EgonOlsen71
    @EgonOlsen71 8 ปีที่แล้ว

    I used to code a lot (Basic and Assembly language) on the C64 back in the days. Now, almost 30 years later, I'm back at it, because I decided to write a Basic V2 interpreter in Java. It's shocking how man quirks this language actually has that I either forgot or never knew about back then.
    I hope that your tutorial programs will be limited to text output for some time, so that I can use them as test cases for my interpreter...

  • @GEKKOGAMES_RETRO
    @GEKKOGAMES_RETRO 8 ปีที่แล้ว

    Nice Nerd, looking coding on C64 is always great!

  • @skufflegrit
    @skufflegrit 3 หลายเดือนก่อน

    I remember making a text game rpg on here (I even made a social media replica out of boredom one night)

  • @Michirin9801
    @Michirin9801 8 ปีที่แล้ว

    Before this video the only thing I could do in basic was:
    10 print "Hello World!"
    20 go to 10
    run
    I tried writing this program on N-88 basic for the NEC PC-88 computer and well, it kinda worked! I could guess numbers and stuff, but some of the code (like clearing the screen and restarting the game after I got a number wrong) didn't work because the PC-88 and the C64 have some different functions, and well, I don't really know what are the PC-88 equivalents to them... But still, I think I've learned a thing or two about basic from this video!

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

    i tried to code this on a TI-99/4a. It didn't work, time to get a C64.

  • @AllGamingStarred
    @AllGamingStarred 3 ปีที่แล้ว

    Made a short little number guessing game. Turns green when right, Red if wrong

  • @toxlaximus3297
    @toxlaximus3297 5 ปีที่แล้ว +3

    10 print "Willy"
    20 goto 10
    Used to do that in boots 30 something years ago. :D

  • @davidebianchi5284
    @davidebianchi5284 4 ปีที่แล้ว +5

    10 PRINT "WHAT KIND OF EMULATOR DO U USE?"
    20 PRINT "THANK YOU SO MUCH!"
    RUN

    • @Quesbe
      @Quesbe 4 ปีที่แล้ว +3

      WHAT KIND OF EMULATOR DO U USE?
      THANK TOU SO MUCH
      READY.
      More seriously: Vice is a great one, for a lot of Commodore computers.: vice-emu.sourceforge.io/

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

    new how2 tutorial looks nice :D

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

    VERY cool, keep up the good work!

  • @balisongman07
    @balisongman07 ปีที่แล้ว

    This was great. Used it to make a coin flip where it guess 2 numbers then if they were the same it was heads

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

    90 Print "Do you want another go?"
    100 Get A$ : If A$"Y" And A$"N" Then 100
    110 If A$="Y" Then 10
    120 If A$="N" Then Print "Goodbye!"

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

    Nice, it's pretty straightforward. I wonder how would you program graphics... the 8-bit guy said it's not so convenient. What were the most popular programs/games programmed in BASIC?

    • @ulfen92
      @ulfen92 6 ปีที่แล้ว +1

      I remember having a few simple games made in basic. i dont think any real games ever were coded in basic since it is very slow compared to assembly code. I did small graphics (Sprites) by drawing them on paper and calculating their values by hand. (Binary to decimal). The DATA command was then used in basic. Ah those memories.

  • @SuperDang2011
    @SuperDang2011 7 ปีที่แล้ว

    scnclr was usually clear screen in most commodore basic languages good video

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

    That intro reeks of age

  • @orderofmagnitude-TPATP
    @orderofmagnitude-TPATP 8 ปีที่แล้ว +3

    10 print "what is the password"
    20 input a$
    30 if a$ = "nastolgia nerd video was great" goto 50
    40 print "wrong try again"
    50 goto 10
    - this is how i used to password protect on my amstrad cpc in the day and thought i was a smart ass.

    • @oscwavcommentaccount
      @oscwavcommentaccount 4 ปีที่แล้ว +1

      What if someone was smart and looked at the source code.

  • @Toylympics
    @Toylympics 6 ปีที่แล้ว

    Bit late now - But I wish I had a video like this when I was a kid!

  • @jmm1233
    @jmm1233 7 ปีที่แล้ว

    there is a version of BASIC i remember on C64 that conformed to the PRINT CLS function instead of the heart symbol , it so long ago i can't remember which one

  • @redlinechaser7942
    @redlinechaser7942 3 ปีที่แล้ว

    That was super helpful. Thanks. I just spent some time looking for part 2 because I just bought original Commodore 64 and want to learn to code in basic. Now I know of assembly and not sure where to start. I suppose the guide that came in the box is a good start. But after that...?

  • @benjo145
    @benjo145 5 ปีที่แล้ว +1

    why was this the only c64 basic guide you made? i think it would be a really good series.

  • @le-db6bc
    @le-db6bc 8 ปีที่แล้ว +1

    When it got to the point when it kept running the program every time. I couldn't stop the program.

    • @Nostalgianerd
      @Nostalgianerd  8 ปีที่แล้ว

      Escape or Caps lock are usually mapped to the 64 Stop key.

  • @Koridai011
    @Koridai011 7 ปีที่แล้ว +1

    Where is the clear screen character on my c64 emulator?
    the one that looks like a heart in a box.

  • @AntiBunnyStudio
    @AntiBunnyStudio 7 ปีที่แล้ว

    This video has really helped me start learning to code. I hope you'll continue the series, because you're really good at making this all make sense.

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

    it's remind me of the batch programming

  • @enzowarren9832
    @enzowarren9832 6 ปีที่แล้ว +1

    Can you make a simplified Doom clone in SimpleBasic? I’d really like to see that done. Raycasting is possible in it, as is simple polygonal 3D.

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

    any chance you could do a few more of these please?

  • @1973Washu
    @1973Washu 7 ปีที่แล้ว +1

    Most of the "games" I programmed using the RND function were for pen and paper RPGs and table top games like battletech where I would tell the computer all the variables for a particular task such as how many hexes the target was away, the type of weapon being fired and how fast the target was moving and it would tell me if the shot hit and how much damage it did. which saved time I would of spent rolling a dice and looking up the various tables and such and made the game run much smoother.

  • @emilyphilgoodson3809
    @emilyphilgoodson3809 4 ปีที่แล้ว

    If you want to copy and paste basic in to a emulator you will need to convert all the code into lower case as won't display properly otherwise.

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

    Great tutorial, thank you very much! =D

  • @sundaybg1133
    @sundaybg1133 6 ปีที่แล้ว

    I code in BASIC and I love it

  • @wanderer5013
    @wanderer5013 8 ปีที่แล้ว +3

    Will there be a part 2?

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

    sweet sweet memories!

  • @concept-seven
    @concept-seven 6 ปีที่แล้ว

    Great video - is there a 2nd part?

  • @slipknotboy555
    @slipknotboy555 8 ปีที่แล้ว

    Good idea for a series. Very glad to hear your rig campaign exceeded its goal!

  • @deadlockofdeath449
    @deadlockofdeath449 6 ปีที่แล้ว

    This is what I get when I search for how to basic

  • @ErickBRSAO
    @ErickBRSAO 6 ปีที่แล้ว

    Is Nostalgia Nerd How 2 Basic? *get it*

  • @WDCallahan
    @WDCallahan 5 ปีที่แล้ว

    Episode 2, please!

  • @1luarluar1
    @1luarluar1 6 ปีที่แล้ว

    Hi, I would like to ask a question: I'm doing some sprites for the C64 using Spritepad, and want to give my sprites to a programmer to implement them in the code. In the options I can chose between .prg .bin and .spd also when I chose .prg, the program is asking me to put a number (maybe I have to put a different number for every sprite I create)?....thank you!

  • @orderofmagnitude-TPATP
    @orderofmagnitude-TPATP 8 ปีที่แล้ว +2

    ....and even then i fucked up.... it should be...
    goto 60
    40 print" wrong try again"
    50 goto 10
    60 print "well done... your in"
    70 run file "nastolgia nerd"

  • @DarenPage
    @DarenPage 8 ปีที่แล้ว

    I'm looking forward to the rest of this series, I used to do a lot of basic programming back in the day.
    Why not replace the inputs with "getkey A$"?

    • @Nostalgianerd
      @Nostalgianerd  8 ปีที่แล้ว

      Getkey will come all in good time.

    • @DarenPage
      @DarenPage 8 ปีที่แล้ว

      +Nostalgia Nerd sweet, all bases covered then. :)

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

      @@Nostalgianerd in good time? nothing like the present... 5 years later.. lol...

  • @gabrielesimionato1210
    @gabrielesimionato1210 7 ปีที่แล้ว +1

    Video starts at 1:09

  • @dannycivic02
    @dannycivic02 8 ปีที่แล้ว

    One thing I don't get is why the text just splits when you go to the next line halfway through a word, I think my obsessive compulsive is coming out. Great idea for a series though will be dusting off my c64 for this!!!

  • @sumabich721
    @sumabich721 3 ปีที่แล้ว

    reminds me of how javascript deals with random number generating.

  • @looneyburgmusic
    @looneyburgmusic 3 ปีที่แล้ว

    "...the computer randomly chooses a number between 0 and 0.9-"
    Yeah try telling that to the C64, when around 1:40 the computer instead decided on 4.69653672E -03
    Guess the C64 showed you who was really in charge, didn't it?

  • @CkVega
    @CkVega 8 ปีที่แล้ว

    Nice!

  • @jasonking1284
    @jasonking1284 5 ปีที่แล้ว

    That is pure spaghetti code. No need for that in 2016 or later...

  • @MrSatan-it5ww
    @MrSatan-it5ww 7 ปีที่แล้ว

    i didn't know to much about Comodore64 until i saw your channel...e wasn't to famous in the Americas for me. i saw it once were im from in Puerto Rico.

  • @jascoolo
    @jascoolo 4 ปีที่แล้ว

    10 2020
    20 STILL WAITING FOR PART 2

  • @retropolis.player.4
    @retropolis.player.4 7 ปีที่แล้ว

    is there a way to save your program to a cartridge? I know there are some places that make new circuit boards and sell the components and cases needed. I would love to make my own even if just for my own sake.

  • @kjell159
    @kjell159 5 ปีที่แล้ว

    I'm running vice version 3.3, C64 emulator.
    On Linux, on a macbook, with an azerty keyboard layout (Belgian), yep...
    I can't find the dark heart, is it possible to input it?
    I used this instead:
    10 PRINT CHR$(147)
    list
    run
    I also did a:
    115 IF A$="N" THEN GOTO 130
    120 GOTO 100
    130 END
    Also, with the 90 GOTO 10
    example, I couldn't break it. Normally a press on the 'esc' button on my keyboard is enough. But I eventually just had to shutdown the computer (the emulator that is, haha).

  • @laureven
    @laureven 5 ปีที่แล้ว

    We have very different definitions of what GAME means :)

  • @namcos
    @namcos 8 ปีที่แล้ว

    Mostly the same as Spectrum BASIC (including the colon - which I'm sure they call that inline statements??) but lines 10 and 50 would just be CLS.

    • @Nostalgianerd
      @Nostalgianerd  8 ปีที่แล้ว

      Yeah, mostly the same. The RND command is slightly different too, you don't need the argument as the Speccy uses the Randomize function for the equivalent. And yes, you're right... inline statements! Good shout

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

      On the C64 you could use a '?' as a shorthand for the PRINT command. When assigning variables there is no need for the LET command. See line 20. See also line 70 doesn't have the GOTO command... just a line number.
      10 PRINT CHR$(147)
      20 X=INT(RND(1)*6)+1
      30 INPUT "GUESS A NUMBER 1-6 ";G
      40 IF G=X THEN ?"WELL DONE":GOTO 60
      50 ?"TOUGH LUCK"
      60 INPUT "ANOTHER GO (Y/N) ";G$
      70 IF G$="Y" THEN 10
      80 END
      The RANDOMIZE command seeds the RND function, otherwise the pseudo random function would be too predictable on subsequent runs. There was no END statement in Sinclair BASIC (at least not on the early Spectrum). I used STOP instead.
      SINCLAIR
      10 CLS
      20 RANDOMIZE
      30 LET x=INT (RND*6) + 1
      40 INPUT "Guess a number 1-6";g
      50 IF g=x THEN PRINT "Well done": GO TO 70
      60 PRINT "Tough luck"
      70 INPUT "Another go (y/n) "; g$
      80 IF g$="y" THEN GO TO 10
      90 STOP
      The BBC micro had by far the best BASIC on any microcomputer of the early 1980s. Line numbers were still necessary, but at lease there was a RENUMBER (REN.) command to tidy them up, and you could make use of white space / indentation to delineate blocks of code. Number variables were floats unless you specified them as integers using a trailing %. Using integers for counters speeded up your programs. I used one in line 30 instead of the INT function (which was available in BBC BASIC). IF THEN ELSE (see line 50) made for much tidier code, avoiding the GOTO statements, as did the REPEAT UNTIL structure.
      ACORN BBC
      10 REPEAT
      20 CLS
      30 X%=RND(6)+1
      40 INPUT "GUESS A NUMBER 1-6 ";G
      50 IF G=X% THEN PRINT "WELL DONE" ELSE PRINT "TOUGH LUCK"
      60 INPUT "ANOTHER GO (Y/N)";G$
      70 UNTIL G$"Y"
      80 END

    • @sjenkins1057
      @sjenkins1057 7 ปีที่แล้ว

      Almost every microcomputer version of basic from this era, Commodore computers from the PET to the 64, Apple II, TRS-80, Spectrum all were licencing a version of BASIC from Microsoft, and making minor changes--this is why they were all so similar.

  • @dariodzimbeg
    @dariodzimbeg 7 ปีที่แล้ว +1

    is there LET command in commodore's language? as i remember it was only x=... without LET.

    • @macca_9680
      @macca_9680 6 ปีที่แล้ว +1

      LET is optional

  • @inceptional
    @inceptional 3 ปีที่แล้ว

    Eh, how am I supposed to type the "clear screen" symbol if I'm trying to do this on the VICE emulator, where I assume my Windows keyboard doesn't have such a button?
    I just spent whoever long typing out all that stuff above only to notice you weren't telling me to literally type "*Insert Clear Screen Character*". :-o

  • @michaellyga4726
    @michaellyga4726 8 ปีที่แล้ว

    Good, but now I need to know how to put it on a floppy disk.

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

      save "NAME",8
      replace NAME with the name that you want your program to have (KEEP THE QUOTES), and replace 8 with the port ID that your floppy drive is connected to (the first port is 8 then there are ports 9, 10 and 11)
      if you want to save to tape then simply don't input a drive port ID, though i personally recommend floppy cuz it
      1. Loads faster
      2. JiffyDOS machines cannot read from tape for some reason
      3. If you save your program on a disk that you have GEOS files on, then you can run the program from GEOS :D (though it's pretty useless since to run it from GEOS you gotta boot GEOS from the BASIC prompt first and you might as well just load the program directly from the BASIC prompt anyway)

  • @exr_879
    @exr_879 3 ปีที่แล้ว

    ngl, this is fun.

  • @TheLoveMario
    @TheLoveMario 8 ปีที่แล้ว

    Is it possible to run 2 instructions at once? Like if i want the screen to flash colors but at the same time constantly wait for an ENTER press to reset the colors back to default

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

      MarioKart7z
      100 poke 53281,int(rnd(0)*16)
      200 poke 53280,int(rnd(0)*16)
      300 get a$: if a$ = "*keyboard button*" then goto 500
      400 goto 100
      500 poke 53281,14:poke 53380,6

  • @seanhart9706
    @seanhart9706 5 ปีที่แล้ว +6

    Subbed then unsubbed when i realized you didnt make part 2. Ir should i say yo didnt make part 2.

  • @Shadow__X
    @Shadow__X 3 ปีที่แล้ว

    I am using an Emulator, how do I get the clear screen symbol there? emulating on retropie with raspberry pi and a german (qwertz) layout, though retropie or the emulator is configured for US

  • @raularriazola6042
    @raularriazola6042 4 ปีที่แล้ว

    it would be cool if the program told you the number the computer picked.

  • @JackBealeGuitar
    @JackBealeGuitar 7 ปีที่แล้ว

    When did "else" first appear? select case is always handy too, but I'm pretty sure that didnt exist back then

    • @Richardddoobies
      @Richardddoobies 7 ปีที่แล้ว +1

      The Commodore 128 had IF/THEN/ELSE. BASIC V 7.0
      If they would have made a Commodore 256, it would have had IF/THEN/MAYBE:
      10 X=INT(RND(1)*100)+1
      20 IF X>50 THEN GOTO 30 MAYBE 40 OR EVEN 50ish
      30 GOTO BED

    • @JackBealeGuitar
      @JackBealeGuitar 7 ปีที่แล้ว

      I have a few memories of programming on a C64 (my friend had one). I don't think we ever got much past printing characters to the screen, trying to make text art! it wasn't until many years later I started using Turbo Basic and it all came back to me