diff --git a/game.md b/game.md index 85595a3..cc9d719 100644 --- a/game.md +++ b/game.md @@ -6,7 +6,7 @@ - B(): Base price of property - P(): Base production of property - C: Cash on hand - - Q: Quantity to purchase + - D: Quantity of cash to turn a line blue - R: Selected row - M: Max row to display @@ -49,12 +49,13 @@ jiffy) ~~~~ 1000 gosub 20000 1010 gosub 21000 -1020 ift0thenr=r-1 -1050 ifc$="b"thengosub23000 -1060 goto1030 +1020 ift=dgoto1000 +1040 getc$:ifc$=""then1020 +1050 ifc$="j"andr0thengosub21500:r=r-1:gosub21000 +1070 ifc$="b"thengosub23000 +1080 goto1020 ~~~~ ## Utility functions @@ -70,26 +71,47 @@ jiffy) In principle, 10100 is an entry point for printing a string but I never used it. ### Print the main game screen +Another entry point at 20500 just updates balances ~~~~ 20000 print "{home}vic20 incremental game":print" accessory":print" price","production":print -20010 fori=1tom:printn%(i);"{left} ";a$(i);"{blu}" -20020 j=fn pr(n%(i))*b(i):ifjcandj" +21020 print">";tab(20);"<"; +21030 return ~~~~ + +### Print the selection mark +~~~~ +21500 print"{home}{down}{down}{down}"; +21510 fori=1tor:print"{down}{down}";:next +21520 print" ";tab(20);" "; +21030 return +~~~~ ### A second has passed, update things ~~~~ 22000 gosub24000:c=c+j @@ -101,7 +123,7 @@ In principle, 10100 is an entry point for printing a string but I never used it. 23000 ifc