2k adventure
Re: 2k adventure
i never expected to get so much praise from what would amount to be a small achievement on any other forum. I am happy to hear all of your replies and very touched
Limitations breed innovation
innovation breeds great games
Games like The Hobbit
Exolon
And JetPac (thank god for Rare Replay)
And that's why I love the Sinclair machines and community, you guys are reasonable, fun and nice to have around. I think i'm going to like it here
Limitations breed innovation
innovation breeds great games
Games like The Hobbit
Exolon
And JetPac (thank god for Rare Replay)
And that's why I love the Sinclair machines and community, you guys are reasonable, fun and nice to have around. I think i'm going to like it here
In Heck, there are two options for perpetual torment:
Eat the Puckerberry and suffer for eternity:
drink nothing but a cocktail of The Last Dab and Mexican Cake blended and served with
habanero slices
Eat the Puckerberry and suffer for eternity:
drink nothing but a cocktail of The Last Dab and Mexican Cake blended and served with
habanero slices
Re: 2k adventure
Hi every body,
Just be looking the listing, i don't really understand the listing, may be it's too far from my memory ?
What the variable TREASURE is needed for ?
Why giving the TT variable the unknow value TRAP, it should'nt give an error ?
Each time you make an INPUT, there is no condition after it, you just go to the next line , may be a simple GOTO to the INPUT line (to ask another time if it's the wrong choice) is to use ?
Same logic for your differents INPUT lines.
I will try it on an emulator to be sure, but, as is ,it is quite confusing for me
Or i would simply go back to my COBOL and check the DATA DIVISION ?
Anyway in 2K it's really a challenge as you get stuck quickly !
Just be looking the listing, i don't really understand the listing, may be it's too far from my memory ?
What the variable TREASURE is needed for ?
Why giving the TT variable the unknow value TRAP, it should'nt give an error ?
Each time you make an INPUT, there is no condition after it, you just go to the next line , may be a simple GOTO to the INPUT line (to ask another time if it's the wrong choice) is to use ?
Same logic for your differents INPUT lines.
I will try it on an emulator to be sure, but, as is ,it is quite confusing for me
Or i would simply go back to my COBOL and check the DATA DIVISION ?
Anyway in 2K it's really a challenge as you get stuck quickly !
Re: 2k adventure
sorry for that, I might fix it, I might not, dependsDim_75 wrote: ↑Tue Nov 20, 2018 10:53 pm Hi every body,
Just be looking the listing, i don't really understand the listing, may be it's too far from my memory ?
What the variable TREASURE is needed for ?
Why giving the TT variable the unknow value TRAP, it should'nt give an error ?
Each time you make an INPUT, there is no condition after it, you just go to the next line , may be a simple GOTO to the INPUT line (to ask another time if it's the wrong choice) is to use ?
Same logic for your differents INPUT lines.
I will try it on an emulator to be sure, but, as is ,it is quite confusing for me
Or i would simply go back to my COBOL and check the DATA DIVISION ?
Anyway in 2K it's really a challenge as you get stuck quickly !
In Heck, there are two options for perpetual torment:
Eat the Puckerberry and suffer for eternity:
drink nothing but a cocktail of The Last Dab and Mexican Cake blended and served with
habanero slices
Eat the Puckerberry and suffer for eternity:
drink nothing but a cocktail of The Last Dab and Mexican Cake blended and served with
habanero slices
Re: 2k adventure
Sorry for that too, we might help you, we might not, dependssorry for that, I might fix it, I might not, depends
Xavier ...on the Facebook groupe : "Zx81 France"(fr)
Re: 2k adventure
i'll see what I can do
In Heck, there are two options for perpetual torment:
Eat the Puckerberry and suffer for eternity:
drink nothing but a cocktail of The Last Dab and Mexican Cake blended and served with
habanero slices
Eat the Puckerberry and suffer for eternity:
drink nothing but a cocktail of The Last Dab and Mexican Cake blended and served with
habanero slices
Re: 2k adventure
Code: Select all
1 LET R=PI/PI
5 LET L=NOT R
10 LET Q=NOT PI/PI
20 PRINT ,,("YOU ARE IN A CAVE." AND R=1);(" IN THE CAVE IS A LAMP" AND NOT L AND R=1);(" LAMP TAKEN, YOU CAN NOW SEE FURTHER." AND L=1 AND R=1);(" THE CAVE IS NOW BRIGHT AND YOU CAN SEE THE TREASURE I THE DISTANCE" AND L=1 AND R=1);("TRAP SPRUNG. YOU ARE NOW ONE LEVEL BELOW THE TREASURE." AND R=2);(" THERE IS A LAMP HERE TO REPLACE THE BROKEN ONE" AND R=2 AND NOT L);("YOU CAN GO EAST, WEST OR NORTH" AND R=3 AND L);("YOU GO NORTH AND FIND YOUR WAY BACK.YOU HAVE TAKEN THE TREASURE,YAY" AND R=4);("YOU TAKE THE TREASURE AND HEAD OUT OF THE CAVE" AND R=5)
25 IF R=5 THEN STOP
30 INPUT A$
40 IF (R=PI/PI OR R=2) AND A$="GET LAMP" THEN LET L=PI/PI
50 IF L AND R=1 AND A$="NORTH" THEN LET Q=PI/PI
60 IF Q THEN LET R=2
70 IF Q THEN LET L=NOT Q
80 IF (L AND R=2)OR(R=3) AND A$="NORTH" THEN LET R=R+PI/PI
100 IF R=4 AND A$="SOUTH" THEN LET R=5
110 CLS
120 GOTO 10
Xavier ...on the Facebook groupe : "Zx81 France"(fr)
Re: 2k adventure
I took a different approach. I'm a firm believer that programs should be bullet-proof and robust. But Adventure games are a challenge, especially when limiting oneself to 2K! So I tried for 4 rooms and 4 feature items. In the end it's more like 3K.
Anyone care to pare it down with more of that PI/PI magic?
Lines 1000 to 1100 inclusive are designed to be eliminated once the program has run once. I include them here for reference.
Anyone care to pare it down with more of that PI/PI magic?
Lines 1000 to 1100 inclusive are designed to be eliminated once the program has run once. I include them here for reference.
Re: 2k adventure
You could save a lot of bytes by replacing numeric constants to VAL: 1 -> VAL"1" and by using variable assignments for equal values;
LET a=1
LET b=1
- >
LET a=VAL"1"
LET b=a
See
viewtopic.php?f=5&t=85&start=20#p25920
HTH Siggi
My ZX81 web-server: online since 2007, running since dec. 2020 using ZeddyNet hardware
http://zx81.ddns.net/ZxTeaM
http://zx81.ddns.net/ZxTeaM
Re: 2k adventure
I started my program on a "Sinclair Diet", but I don't think I'm going to make the 2K finish line without some major loss of functionality, which I'm reluctant to do. So. I have failed The Challenge. "This school is about combat gentlemen. There are no points for second place."
Here's one written by a friend of mine, but for the "full" 16K machine.
Here's one written by a friend of mine, but for the "full" 16K machine.
Last edited by TMAOne on Fri Nov 23, 2018 12:09 am, edited 1 time in total.