Talk:Cookie Clicker PTC 0.1.1/@comment-26059560-20150509234027

mind if I suggest some things?

line 13: use locate 6,8:print cookies rather than all those prints, you can use ? too, has same function as print

line 124-236: you can use an equation through here(*gasp*, I use math here?) instead of having 100 lines of if then statements, try using cookies=cookies+cursor, cookies=cookies+2*grandma so on and so forth. to combat the 21 thing, put if (whatever)>=21 then goto @loop. This'll really clean up some of your code

all your menus: put your check that you have/don't have any grandmas or factories or whatevers before you show the menus. this'll stop the sort of glitch where there is the flash of the period that shows what you are choosing, because it prevents showing the new menu\

buy menu: your 21 mark doesn't actually show up. this is because it's not included in your loop put line 36 after 38, delete 34 and 35, and so on and so forth for your shop. put after the then command a variable=1:print instead of just the print, this'll prevent a flooding of your screen. be sure to clear this variable if you delete your data, and use different ones for each item. I ended up with 71 cursors and had no idea I did

for deleting your data, I recommend using a clear command over all those variable=0, when your program gets bigger it'll have a lot more variables in it, this'll save you some writing.

you can substitute all your menus for a subprogram used with gosubs for each menu, allowing you to simply put a gosub in and save some writing. you can use a ymax and ymin for the top and bottom, but this kind of menu can get quite complicated, see the dungeon sample program (game 2 I think) for a sample menu. If this is out of your programming reach, no big deal, it's a tough thing to do.

just my 2 cents on it