Frozone212 Posted January 30, 2022 Share Posted January 30, 2022 This is my first fan game and i'm still exploring BASIC so go easy on me It's meant to be a joke game, there is no winning. The epitaph quote is taken from the AVGN games video at 3:12 AVGN for commodore PET.d64 Quote Link to comment Share on other sites More sharing options...
Frozone212 Posted January 31, 2022 Author Share Posted January 31, 2022 no one? tough crowd Quote Link to comment Share on other sites More sharing options...
carlsson Posted January 31, 2022 Share Posted January 31, 2022 Ok, do you want your listing to be picked apart with hints of what is happening? The FOR loops on lines 2-3 obviously never loop because you have no NEXT statement. LET T=0:IF T=0 means it will always execute. Also LET is optional on the PET. M1=X+RND(X/10) probably doesn't work the way you expect. RND takes one argument that is negative to initiate a new seed, 0 or 1 for a random number in the sequence. Possibly what you want is M1=X+RND(1)*X/10 if you want a random number between 0 and X/10. Lines 8-9 obviously will set T=1 regardless, at least unless you GOTO directly to line 9 later on. The GET A$ statement on lines 14-15 follow the same structure as you have tried before. GET reads the keyboard for an instant keypress. If it doesn't get a key, it continues with the empty string. Either you mean INPUT A$ on those lines, or you need a line: 14 GET A$:IF A$="" THEN 14 to wait for a keypress. That said, the IF statements on lines 14-15 will only work if you hammer on the N or E keys at the right moment. The INPUT A$ statement on line 16 has no effect. Same about the INPUT A$ on line 19. As an interesting side effect, I noticed that if I leave the INPUT blank, the program exists. I don't know why it does as I never have observed that behavior before. Perhaps it is PET specific? LET E=INT(1) on line 18 makes little sense since 1 would be an integer anyway. On line 21, you're getting a TYPE MISMATCH because you've closed the string and then follows a line of asterisks. Not sure if made a mistake loading the program? Line 28 has two IF statements following eachother. The variable A$ can't have both values at the same time, but since you GOTO the line directly following, it will work the same. Your interactive fiction is mildly amusing, but it sure isn't much of a game. ? Quote Link to comment Share on other sites More sharing options...
Frozone212 Posted February 1, 2022 Author Share Posted February 1, 2022 I don't know how to use PET basic to make a functioning game. All i can do at the moment is text adventures. That's disheartening Quote Link to comment Share on other sites More sharing options...
motrucker Posted March 8, 2022 Share Posted March 8, 2022 On 2/1/2022 at 5:15 PM, Frozone212 said: I don't know how to use PET basic to make a functioning game. All i can do at the moment is text adventures. That's disheartening Here are a bunch of books on the subject. Take note - this is a great source! https://commodore.bombjack.org/kim-pet/books-kim-pet.htm Quote Link to comment Share on other sites More sharing options...
Frozone212 Posted May 9, 2022 Author Share Posted May 9, 2022 Appreciate it Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.