Skip to content

Commit 62b1936

Browse files
Better colors and tuning
1 parent 7e991a1 commit 62b1936

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

C128/C128.cbmprj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
<Regions />
107107
<Breakpoints />
108108
<Bookmarks />
109-
<Topmost>False</Topmost>
109+
<Topmost>True</Topmost>
110110
<FileOpen>True</FileOpen>
111111
</SourceFile>
112112
<SourceFile>

C128/MiniConan.bas

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
0s=7:e=100:i=1:d=1:g=20:?"{clear}":fOi=1to4:w(i)=1:reAj$(i):reAm$(i):reAp(i):reAs(i):reAe$(i):nE:dA"{light green}eerie forest","{cyan}potion"
22
1colO0,1:colO4,1:?"{clear}{red}S:{white}";e;" {yellow}exp:{white}";s;" {brown}$:{yellow}";g:?"{orange}adventurer's inn":fOi=1to4:?"{white}";i;j$(i):nE:inputj:dA10,0,"trolls"
3-
2on-(j<4)gO4:ifj<1orj>4tHj=1+jaN3:else?"{clear}"j$(4):fOi=1to3:?"{white}"i;w(i);m$(i);p(i):nE:?" {white}4 "m$(4):inputj:dA"{gray}cave","{brown}sword"
3+
2on-(j<4)gO4:ifj<1orj>4tHj=1+jaN3:else?"{clear}"j$(4):fOi=1to3:?"{white}"i;w(i);m$(i);p(i):nE:?" {white}4 "m$(4):inputj:dA"{brown}cave","{brown}sword"
44
3on-(j<1orj>4)gO4:on-(j=4)gO1:e=e+(j=1)*(w(1)>1)*5:s=s-(w(j)>0)*s(j):g=g+(w(j)>0)*p(j):w(j)=w(j)+(w(j)>0):gO1:dA100,10
5-
4fOk=.to1:fOi=1toj*3:?"{clear}"j$(j)"{home}{down}{white}day {gray}"i;q$:r=1+int(rN(.)*(j+1)):n=2+int(rN(.)*(j+1)):?"you are attacked by"n;e$(r)
6-
5?"1. attack":?"2. run":inputa:a=aaN1:l=int(s-r*n+rN(.)*4):ifl<.tH?"you are hit and lose";-l"pts":e=e+l:sL1:dA"kobolds"
7-
6on-(e<.ors>99)gO9:ifaaNe>.tH?"you kill the "e$(r):p=1+rN(.)*r*3aN15:?"you get{yellow}"p;"{brown}$":g=g+p:sL1:gO8:dA"{green}dark woods"
8-
7m=l+6*((r=1)or(r=4)):ifm<.tH?"they grab you. you lose";-m+1"pts":e=e+m-1:sL1:gO5:else?"you escape":sL1:dA"{yellow}heavy sword"
9-
8nE:p=j*int(10+rN(.)*19):ifk=.tHq$=" return":?"{clear}at the end you find{yellow}";p;"{brown}$":g=g+p:gEkEk$:nE:else:q$="":nE:w(1)=j:gO1
5+
4fOk=.to1:fOi=1toj*3:?"{clear}"j$(j)"{home}{down}{white}day {gray}"i;q$:r=1+int(rN(.)*(j+1)):n=2+int(rN(.)*(2*j+1)):?"you are attacked by"n;e$(r)
6+
5?"{light gray}1. attack":?"2. run":inputa:a=aaN1:l=int(s-r*n+rN(.)*4):ifaaNl<.tH?"{red}you are hit for";-l"pts":e=e+l:sL1:dA"kobolds"
7+
6on-(e<.ors>99)gO9:ifaaNe>.tH?"{cyan}you kill the "e$(r):p=1+rN(.)*r*3aN15:?"you get{yellow}"p;"{brown}$":g=g+p:sL2:gO8:dA"{green}dark woods"
8+
7m=l+9*(r=1):ifm<.tH?"{red}they grab you. you lose";-m+1"pts":e=e+m-1:sL1:gO5:else?"{cyan}you escape":sL1:dA"{yellow}heavy sword"
9+
8nE:p=j*int(10+rN(.)*19):ifk=.tHq$=" return":?"{clear}at the end you find{yellow}";p;"{brown}$":g=g+p:sL2:nE:else:q$="":nE:w(1)=j:gO1
1010
9ife<.tH?"{clear}you die!":gEkEk$:gO0:else:?"{clear}you won!":gEkEk$:gO0:dA1000,50,"elves","{blue}merchant","{gray}exit",0,0,"werewolves"

0 commit comments

Comments
 (0)