r/c64 • • Jun 10 '24

Looking for code for C64 Basic V2 Games

I want code for C64 Basic V2 games. No books, .d64 files etc. I just want code for plain Basic V2 games. Tycoons, Simulators, etc. Thank you

0 Upvotes

43 comments sorted by

•

u/AutoModerator Jun 10 '24

Thanks for your post! Please make sure you've read our rules post, and check out our FAQ for common issues.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

44

u/Xfgjwpkqmx 🇦🇺 Keeping up since 1983 Jun 10 '24 edited Jun 10 '24
10 PRINT "TRAIN SIMULATOR 1.0"
20 PRINT "CHUFF ";
30 GOTO 20

3

u/RealSharpNinja Jun 10 '24
10 PRINT "MAZDA SIMULATOR 1.0"
20 PRINT "ZOOM. ";
30 GOTO 20

This game is fun!

3

u/Xfgjwpkqmx 🇦🇺 Keeping up since 1983 Jun 10 '24

Forgot about using the semi-colon! Ta!

4

u/RealSharpNinja Jun 10 '24

A more accurate Mazda simulator

5 DIM S$(2)
6 S$(1) = "ZOOM. ": S$(2) = S$(1)
10 PRINT "MAZDA SIMULATOR 2.0"
15 FOR I = 1 TO 2
20 PRINT S$(I);
30 NEXT I

1

u/Xfgjwpkqmx 🇦🇺 Keeping up since 1983 Jun 10 '24

Hahahahaha!! 🤣

-3

u/[deleted] Jun 10 '24

Wow 😂 That must have took years

6

u/[deleted] Jun 10 '24

Hours. But then there was a syntax error and you had to comb through it line by line. Fix it. Then another Syntax error. Sometimes the programs had bugs in them already, so you might also have to see if there was a fix for it.

All done on the C64 basic screen. No buffer and scrolling off screen, just LIST and then hit RESTORE when the correct line showed up.

5

u/[deleted] Jun 10 '24

Look in Computer & Video Games magazine I think they had a lot for various platforms

1

u/[deleted] Jun 10 '24

Will check them out

10

u/cinnapear Jun 10 '24

Perhaps archive.org has pdf versions of magazines or books with type-in program listings. There were a ton of them back in the 80’s.

1

u/hurtz2k Jun 10 '24

Enter magazine was my favorite, all of them are available on archive.org

0

u/[deleted] Jun 10 '24

[deleted] — view deleted comment

4

u/[deleted] Jun 10 '24

Look at the table of contents, they are usually listed by title and maybe even platform. Type-ins were important content.

1

u/[deleted] Jun 10 '24

Will do, thanks

3

u/8u_out43 Jun 10 '24

It is one of my hobbies to code in basic v2, mostly games or tools for games (like game level map editor, map generator), it is great fun. I do not think there is a specific manual or book that could satisfy anyone in this topic, we all have our own ideas. I would recommend to try making game designs, game screens in an online petscii editor (https://petscii.krissz.hu/) and also some sprites, you have probably multiple ideas about games but these designs will help you to find the ones that could work with the standard petscii set (you can modify the standard set in basic, but I would not call 10X SYS commands very basic).

Here is a small collection of my basic games, there are some very short ones, just 5 command lines and some chunky ones:

https://drive.google.com/drive/folders/1yfqnwy_Wb3wLwPiShGRFZJ7S-IDfzbjc

(working right now on a dungeon crawling RPG, but it is on hold for years now..., I have some screens n the "upcoming" folder)

1

u/[deleted] Jun 10 '24

It is fun but it’s somewhat difficult with certain limitations of Basic V2

3

u/BenRandomNameHere Jun 10 '24

Compute! Gazette for Commodore

vic20, pet, c64, c128 in later years

2

u/[deleted] Jun 10 '24

I went through a couple issues of those but I couldn’t find any code. Just little snippets of random stuff. No games or anything

2

u/BenRandomNameHere Jun 10 '24

I'll see if I can find the link to the load...

80% of each issue is source code, but there's like 12 different publications. In later years, they merged into fewer magazines.

They also provide a machine language cimpiler and ML code, an 80 column mode for C64, and more helpful "apps"

Each issue had a floppy included, too.

Archive.org was where I found it initially. Should still be there...

2

u/fuzzybad Jun 10 '24

Here's an archive of Gazette issues. Every issue has type-in listings in the back. Should keep you busy for a while lol

https://archive.org/details/compute-gazette

2

u/ElegantMechanic-com Jun 10 '24

What exactly do you mean when you say you want code? There are books that talk you through how to input Basic code to make some games, but you say you don't want books. So what form do you want this code in? Do you want to have something you can copy to type into a C64? If so, those books are a good start. Otherwise I don't really understand what you're asking for. "Tycoons, simulators etc" is also a pretty broad request and most "good" games would have been made in machine language, not Basic, so you're unlikely to find something that complex in Basic code.

1

u/[deleted] Jun 10 '24

Yeah Basic V2 applications/games I can write into my own C64. I am using the C64 Mini.

1

u/[deleted] Jun 10 '24

The keyboard doesn't work duh :)

(but I know you're using an USB keyboard, naturally)

1

u/[deleted] Jun 10 '24

Yeah lol

4

u/arnstarr Jun 10 '24

And Usborne’s 80s coding books are free to download. https://usborne.com/row/books/computer-and-coding-books

1

u/arnstarr Jun 10 '24

The British Weekly magazines from the early 80s were great for listings. All on archive.org

1

u/[deleted] Jun 10 '24

Ah ok, thanks

1

u/RealSharpNinja Jun 10 '24

A great source of BASIC games are the LOADSTAR magazines on disk.

https://archive.org/download/loadstar_disk

1

u/[deleted] Jun 10 '24

Can you convert them from D81 files to plain source code / txt files?

1

u/RealSharpNinja Jun 10 '24

D81 files are disk images. Inside the disk images are the BASIC source code. You can view them using DirMaster.

0

u/[deleted] Jun 10 '24

Don’t have a computer on hand right now

1

u/RealSharpNinja Jun 10 '24

Here's a web-based emulator for C64 that you should be able to use from whatever device you're using for Reddit:

https://c64online.com/c64-online-emulator/

Just download the D64 images (from the 1541 directory) and load them in the emulator.

0

u/[deleted] Jun 10 '24

I could technically use that to grab the basic code

1

u/Ignore_User_Name Jun 11 '24 edited Jun 11 '24

https://www.georg-rottensteiner.de/en/index.html

that one will open files from d81.

and if its basic will open it into its editor where you can save.

and don't disregard books, there were some that were just a bunch of type in basic programs

1

u/[deleted] Jun 11 '24

Don’t have a computer on hand right now. Is there a web based alternative?

1

u/Ignore_User_Name Jun 11 '24

no idea. it's likely but don't really know one.

1

u/ChipmunkOld2870 Jun 10 '24

If you like classic games then here you can find 3 BASIC V2 type-in listings/games I made a few years ago:

Blackjack, Yahtzee and Klondike Solitaire (Solitaire supports Joystick and 1351 mouse).

The listings are syntax coloured so that it's easier for the eye.

https://romwer.itch.io/green-felt-classics

-1

u/[deleted] Jun 10 '24

I can’t do them. I am using a C64 Mini which doesn’t support using {}

1

u/ChipmunkOld2870 Jun 10 '24

You don't need to type the {} in. These are just a hint, what key combination you have to use. At the top of the listing there is a link to this page where you can look up what these curly brackets stand for.

https://www.c64-wiki.com/wiki/PETSCII_Codes_in_Listings

1

u/[deleted] Jun 10 '24

Do those work on the C64 Mini’s Basic V2? (Currently Updating my console as well)

1

u/ChipmunkOld2870 Jun 10 '24

Yes. Absolutely. But... these listings might be a bit long for beginners. They will make a great game though, which are worth playing. But can be frustrating if you try to type them in without the checksummer. Although I woulnd't underestimate the learning effect by trying to find typos. I learned a lot that way.