Compare commits

...

100 Commits

Author SHA1 Message Date
Ian Skinner
b7d14eca8c
Update README.md 2022-09-07 19:10:38 -04:00
Ian Skinner
0f3770f030
Comments! 2022-01-23 13:04:25 -05:00
Ian Skinner
c63b360c21
Update prg.txt 2022-01-23 12:40:20 -05:00
Ian Skinner
ce341e2859
Don't need to have a save file here. 2021-10-16 19:39:57 -04:00
Ian Skinner
6d1223cc3c
Deleted things cause I don't need them for anything anymore. 2021-10-16 19:38:53 -04:00
Ian M. Skinner
422cc71f50 Saving and loading works now! (except it is pretty bad) 2021-10-16 19:37:24 -04:00
Ian Skinner
79b1556081 Merge branch 'master' of https://github.com/IanSkinner1982/Cookie-Clicker-C64 2021-10-13 19:42:32 -04:00
Ian Skinner
3eb6ef0e46 And I deleted my banner. 2021-10-13 19:42:07 -04:00
Ian Skinner
6a4a7582f4
Oops, didn't want one of the example programs. 2021-10-13 19:41:01 -04:00
IanSkinner1982
3e8b70250a I deleted my readme 2021-10-13 19:38:15 -04:00
IanSkinner1982
7b2ee6045e Switching over to the new IDE 2021-10-13 19:34:08 -04:00
Ian Skinner
8f4083d897
Just going to delete this for now cause it's going to be moved in a bit and I have no clue how to move files on this.
Also the last commit was pointless.
2021-10-11 19:15:32 -04:00
Ian Skinner
b18e213844
Switching to a new IDE. 2021-10-10 19:23:21 -04:00
Ian Skinner
4b15f50f38
Program no longer stops when you select a non-existing item 2021-06-25 23:57:13 -04:00
Ian Skinner
3b94dce8de
Update storedat 2021-06-25 19:08:17 -04:00
Ian Skinner
ba0099dbe6
Updated prg file. 2021-06-03 22:35:18 -04:00
Ian Skinner
a59f5c92aa
Delete testmenu.prg.out.prg 2021-06-02 15:46:30 -04:00
Ian Skinner
e592e74953
Delete testmenu.prg 2021-06-02 15:45:51 -04:00
Ian Skinner
e864c663ef
Delete testmenu.txt 2021-06-02 15:45:18 -04:00
Ian Skinner
77cc536720
Merge pull request #1 from IanSkinner1982/more-items
This took too long.
2021-06-02 15:44:41 -04:00
Ian Skinner
8b1cbc84a0
Merge branch 'master' into more-items 2021-06-02 15:43:43 -04:00
Ian Skinner
a3a61b1840
Added saving/loading and fixed problems with setting bn$ 2021-05-30 22:49:11 -04:00
Ian Skinner
f2c214f871
Lots of stuff
- Added settings
- Commented my code
- Made the adding routine (and other stuff) better
2021-05-30 19:58:55 -04:00
Ian Skinner
bdaa7dab24
Fixed a few problems
- Added item cap (300)
- Fixed bug where only item one gain is added to cc
- Stopped the total gain from multiplying by 2 or more each time
2021-05-29 16:26:16 -04:00
Ian Skinner
f6f25cd9f8
Stopped using storedat for quicker testing (I'll add it back later) 2021-05-19 18:37:15 -04:00
Ian Skinner
c96441b2b4
Update README.md 2021-05-18 12:21:05 -04:00
Ian Skinner
3a56307575
Shortened item 13's name. (still too long) 2021-05-15 23:16:29 -04:00
Ian Skinner
46b1beb59b
# of items now stored as MI (Max Item #) 2021-05-15 13:12:20 -04:00
Ian Skinner
56d84acb1f
Update prg.txt 2021-05-08 15:25:25 -04:00
Ian Skinner
a411a77f24
Added very blocky cookie. 2021-05-05 11:50:43 -04:00
Ian Skinner
b3f60c8dfa
Added menu switching. 2021-05-03 16:30:40 -04:00
Ian Skinner
af768a178e
Updated the .prg file. 2021-05-02 10:19:01 -04:00
Ian Skinner
6d0c4e1e26
Missed a semicolon. (*now* it's working) 2021-05-01 22:35:41 -04:00
Ian Skinner
1645747e0c
The store is fully working now. 2021-05-01 22:31:40 -04:00
Ian Skinner
478af54164
Stopped the delay when adding. 2021-04-30 22:52:27 -04:00
Ian Skinner
ff383ab690
Update prg.txt 2021-04-30 22:47:58 -04:00
Ian Skinner
b76b7be427
Fixed bad subscript error in 60010 2021-04-30 19:42:31 -04:00
Ian Skinner
c8cd0827f1
Fixed price printing error + started settings 2021-04-30 19:08:34 -04:00
Ian Skinner
6409c2230d
Finally added the code that lets you increase your cookies. 2021-04-29 20:01:50 -04:00
Ian Skinner
a6c0395304
Update prg.txt 2021-04-29 19:48:09 -04:00
Ian Skinner
10b281ec7f
Accidentally deleted a line. 2021-04-29 15:00:52 -04:00
Ian Skinner
5359331af5
Fixed graphical errors. Everything else is still broken. 2021-04-29 11:22:53 -04:00
Ian Skinner
b5ba282ae7
Update prg.txt 2021-04-28 17:04:51 -04:00
Ian Skinner
dd6c216492
Whoops. I was still using GS instead of MS 2021-04-28 16:33:18 -04:00
Ian Skinner
6eb700db1f
Updated prg file. 2021-04-28 09:10:42 -04:00
Ian Skinner
2ca57bbec0
Polished up the store design 2021-04-28 09:07:39 -04:00
Ian Skinner
43632b59cc
Update prg.txt 2021-04-27 22:30:25 -04:00
Ian Skinner
fc2dac263f
Missed something 2021-04-27 22:08:55 -04:00
Ian Skinner
8b0ab6acf7
Make shop subroutine even better 2021-04-27 22:07:26 -04:00
Ian Skinner
05b91a8b96
Added base cps 2021-04-27 21:53:44 -04:00
Ian Skinner
ad14ebd604
Now loads storedat 2021-04-27 20:36:12 -04:00
Ian Skinner
fbcf9c8254
Remove 2nd storedat 2021-04-27 20:23:44 -04:00
Ian Skinner
6315dffdc2
Added storedat to /build... and to the right branch this time. 2021-04-27 20:23:10 -04:00
Ian Skinner
73b00c16f8
Added storedat to /build 2021-04-27 20:21:32 -04:00
Ian Skinner
8fabf24206
Move storedat 2021-04-27 20:18:37 -04:00
Ian Skinner
6fb0215189
Update storedat 2021-04-27 19:59:19 -04:00
Ian Skinner
d32b1796c6
Swapped ML$ with R1$ and fixed printing IA(x) 2021-04-27 19:06:38 -04:00
Ian Skinner
4a176da0a1
Create storedat 2021-04-27 09:40:01 -04:00
Ian Skinner
464d473407
Added a better store routine (won't work yet) 2021-04-27 09:37:26 -04:00
Ian Skinner
de167a48e6
Update README.md 2021-03-05 14:31:22 -05:00
IanSkinner1982
e12255cc62 Remaking everything.
Only the main menu is done. Nothing else works.
2021-02-16 14:56:36 -05:00
IanSkinner1982
89b04eed0f updated some stuff 2021-01-27 19:20:23 -05:00
IanSkinner1982
60d67cc5c1 fixed readme 2021-01-24 13:45:11 -05:00
IanSkinner1982
ff1a6d1168 fixed name saving and updated save file format 2021-01-24 13:43:39 -05:00
IanSkinner1982
7eba42ff01 added save management 2021-01-09 15:44:49 -05:00
IanSkinner1982
dafb8520ee added test menu and blocked space repeat 2021-01-07 20:18:52 -05:00
IanSkinner1982
fc37cbe6f8 added name change, stop blocking, and worked on a couple more things 2021-01-05 18:21:03 -05:00
IanSkinner1982
af805c1611 You guessed it. Fixed more graphical bugs. 2020-12-18 19:00:51 -05:00
IanSkinner1982
ee34a58582 added some stuff. Ignore the dev menu option in settings 2020-12-17 19:58:47 -05:00
IanSkinner1982
20457d6224 deleted some stuff I forgot to remove 2020-12-17 18:52:34 -05:00
IanSkinner1982
a8514c5824 fixed a couple graphical errors 2020-12-17 18:50:39 -05:00
IanSkinner1982
6726b6d494 saving/loading works.... without graphical errors. :D 2020-12-16 20:52:06 -05:00
IanSkinner1982
4bad867389 added some settings 2020-12-16 20:35:33 -05:00
IanSkinner1982
0608e7fd93 added upgrade text and fixed a few graphical bugs 2020-12-16 18:22:31 -05:00
IanSkinner1982
f4f221370c added grandmas, mines and farms. (currently you can't tell if you unlocked anything) 2020-12-11 14:17:53 -05:00
Ian Skinner
d68318aa8e
Delete cc64.sav 2020-12-11 10:47:21 -05:00
IanSkinner1982
b5d4d2d59f updated gitignore 2020-12-10 19:25:12 -05:00
IanSkinner1982
f015e9573e added cursors and auto-add (everythin doesn't work)g 2020-12-10 19:13:34 -05:00
IanSkinner1982
70836d3645 Partial rewrite upload. (NOT WORKING YET) 2020-12-05 18:11:31 -05:00
Ian Skinner
afaf051283
Delete .DS_Store 2020-10-19 16:05:26 -04:00
Ian Skinner
c42f707178
Delete cc64.sav 2020-10-19 16:05:18 -04:00
Myles Skinner
b116367f23 fixed a few more graphical bugs 2020-10-14 13:42:37 -04:00
Myles Skinner
b23d82b7fe fixed menu after loading... kinda. 2020-10-11 18:43:36 -04:00
Myles Skinner
1c200d9216 fixed colors when exiting settings 2020-09-19 19:29:01 -04:00
Myles Skinner
eee5fbd319 saving/loading now works 2020-09-19 17:05:12 -04:00
Myles Skinner
47383f4934 added settings menu 2020-09-15 19:46:32 -04:00
Myles Skinner
2efb1cde75 fixed cookie auto update 2020-09-14 19:25:57 -04:00
Myles Skinner
d0b3337e34 updated prg.txt 2020-09-14 19:19:55 -04:00
Myles Skinner
02bc7af517 fixed more bugs 2020-09-14 16:35:12 -04:00
Myles Skinner
1d7821f515 updated readme 2020-08-26 18:54:05 -04:00
Myles Skinner
255d1e6440 updated readme 2020-08-26 18:53:20 -04:00
Myles Skinner
b46d29b4c8 updated prg files 2020-08-26 18:52:36 -04:00
Myles Skinner
3f5ca59107 added banner 2020-08-26 18:48:36 -04:00
Myles Skinner
dc3fd3b810 removed mac files 2020-08-20 14:02:22 -04:00
Myles Skinner
8baddc81e0 removed unwanted files 2020-08-20 14:00:19 -04:00
Myles Skinner
101559d52b updated readme 2020-08-20 13:50:57 -04:00
Myles Skinner
d867ae345e updated readme 2020-08-19 20:50:12 -04:00
Myles Skinner
036728dd12 updated readme... again 2020-08-17 20:09:53 -04:00
Myles Skinner
40763ae202 updated readme 2020-08-17 20:07:19 -04:00
Myles Skinner
fa23b5c2b7 made menu use array 2020-08-17 20:03:40 -04:00
10 changed files with 382 additions and 160 deletions

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
# Created with CBM prg Studio
bak
*.dbg
*.dmp
*.dup

BIN
Banner.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

21
CC64.d64 Normal file

File diff suppressed because one or more lines are too long

67
Cookie Clicker.cbmprj Normal file
View File

@ -0,0 +1,67 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!-- DO NOT EDIT THIS FILE! -->
<!-- Application version : 3.14.0 -->
<!-- Project Target : C64 -->
<Project>
<Target>2</Target>
<Executable>Cookie Clicker.prg</Executable>
<StartAddress>2049</StartAddress>
<FilesGlobal>False</FilesGlobal>
<BatchMode>False</BatchMode>
<AppendToDisk>False</AppendToDisk>
<GenToDisk>False</GenToDisk>
<BuildToPrgFile>True</BuildToPrgFile>
<d64Name />
<Comments>Cookie Clicker for the C64.</Comments>
<Author>Ian M. Skinner</Author>
<Email />
<AutoLaunchName>Cookie Clicker.prg</AutoLaunchName>
<NoSingleFileBuild>False</NoSingleFileBuild>
<CreatedWithVersion>CBM prg Studio 3.14.0</CreatedWithVersion>
<HasGitRepo>True</HasGitRepo>
<GitIgnoreList />
<Cartridge>
<CrtBuildingCartridge>False</CrtBuildingCartridge>
<CrtSignature>C64 CARTRIDGE</CrtSignature>
<CrtName />
<CrtHeaderLength>40</CrtHeaderLength>
<CrtVersionHigh>1</CrtVersionHigh>
<CrtVersionLow>0</CrtVersionLow>
<CrtCartType>0</CrtCartType>
<CrtEXROMActive>False</CrtEXROMActive>
<CrtGAMEActive>False</CrtGAMEActive>
<CrtROMSig>CHIP</CrtROMSig>
<CrtChipType>0</CrtChipType>
</Cartridge>
<BuildEvents>
<PreBuildEnabled>False</PreBuildEnabled>
<PostBuildEnabled>False</PostBuildEnabled>
<RunPostBuildAlways>False</RunPostBuildAlways>
<PreBuildCommands />
<PostBuildCommands />
</BuildEvents>
<BuildList>
<FileName>prg.txt</FileName>
<FileName>storedat.seq</FileName>
<FileName>Tune.bas</FileName>
</BuildList>
<DetermineBuildOrder>0</DetermineBuildOrder>
<PaddingByte>0</PaddingByte>
<!--Screen designer settings-->
<AssyBinaryFileLocation />
<AssyExportList />
<!--End of screen designer settings-->
<SourceFiles>
<SourceFile>
<Name>prg.txt</Name>
<PrgName />
<FileType>1</FileType>
<IncludeInBuild>True</IncludeInBuild>
<Regions />
<Breakpoints />
<Bookmarks />
<Topmost>False</Topmost>
<FileOpen>True</FileOpen>
</SourceFile>
</SourceFiles>
</Project>

BIN
Cookie Clicker.prg Normal file

Binary file not shown.

View File

@ -1,6 +1,44 @@
# Cookie-Clicker-C64
Cookie-Clicker-C64 (or CC64 for short) is a Cookie clicker clone for the Commodore 64.
Cookie clicker was created by [Orteil](https://orteil.dashnet.org/)
Note: Due to the way I have everything set up my commits will appear as commits by drskinner.
# Cookie-Clicker-C64
# OH MY GOD THIS PROGRAM JUST GOT SHOWED IN A YOUTUBE VIDEO
https://youtu.be/o6RtnOU-5ss
LETS FUCKING GOOOOOOOOO
(to anyone who came here, sorry, this program is reaaaaaaaally buggy. Maybe this is the motivation I need to fix it up)
<p align="center">
<img src="https://github.com/IanSkinner1982/Cookie-Clicker-C64/blob/master/Banner.png"/>
<p align="center">
<a href="https://discord.com/invite/kJac2ty">
<img src="https://img.shields.io/discord/704065693246685225?color=purple&label=Discord&logo=Discord&style=plastic"
alt="Chat on Discord">
</a>
<a href="https://gbatemp.net/download/cookie-clicker-c64.36587/" style="padding-left: 5px; padding-right: 5px;">
<img src="https://img.shields.io/badge/GBAtemp-Link-blue.svg" height="20">
</a>
<a href="https://github.com/IanSkinner1982/Cookie-Clicker-C64/" style="padding-left: 5px; padding-right: 5px;">
<img src="https://img.shields.io/github/downloads/IanSkinner1982/Cookie-Clicker-C64/total?color=Green&label=Downloads&logo=Github" height="20">
</a>
</p>
Cookie Clicker C64 (or CC64 for short) is a Cookie clicker clone for the Commodore 64.
## How to play :
- Press the space bar to 'click' for cookies.
Credits:
- [@Orteil](https://orteil.dashnet.org/) for making the original cookie clicker game
- [@drskinner](https://github.com/drskinner/)
Notes:
- Editing program lines larger than 80 characters on the C64 (or on an emulator) will result in parts of them being deleted
- `storedat` must be placed in the same d64 as `cookie.prg`, or in the same directory, if your emulator treats a folder like a disk. Also note that unlike `storedat`, `savedat` is not needed to run the game, so you can place `savedat` on another d64 and swap disks when needed.

Binary file not shown.

Binary file not shown.

327
prg.txt Normal file → Executable file
View File

@ -1,154 +1,173 @@
0 rem !to "build/cookie.prg"
10 cc=0:cg=0:ca=0:ga=0:ft$="0":mt$="0"
20 c1=15:c2=100:c3=1100:c4=12000
50 ds$=chr$(17):rem cursor down
60 rs$=chr$(29):rem cursor right
100 print"{grey2}*CCCCCCCCCCCCCCCCCCCCCCCCC*CCCCCCCCCCC*"
110 print"{grey2}B{wht} you have "int(cc)" {grey2}B{wht}cursor(c) {grey2}B"
115 l3$="{grey2}B{wht} cookies {grey2}B{wht}"
120 printl3$ca" {grey2}B"
130 print"*CCCCCCCCCCCCCCCCCCCCCCCCC*{wht}cost: {grey2}B"
140 print"B B{wht}"c1" {grey2}B"
150 print"B {brown}********{grey2} *CCCCCCCCCCC*"
160 print"B {brown}*******{blk}**{brown}*{grey2} B{wht}grandma(g) {grey2}B"
170 print"B {brown}***{blk}*{brown}********{grey2} B{wht}"ga" {grey2}B"
180 print"B {brown}***{blk}**{brown}*********{grey2} B{wht}cost: {grey2}B"
190 print"B {brown}********{blk}**{brown}****{grey2} B{wht}"c2" {grey2}B"
200 print"B {brown}********{blk}**{brown}****{grey2} *CCCCCCCCCCC*"
210 print"B {brown}**************{grey2} B B"
220 print"B {brown}*{blk}*{brown}************{grey2} B B"
230 print"B {brown}*************{brown}*{grey2} B B"
240 print"B {brown}******{blk}**{brown}****{grey2} B B"
250 print"B {brown}*****{blk}**{brown}***{grey2} B B"
260 print"B {brown}********{grey2} B B"
270 print"B B B"
280 print"B B B"
290 print"B B B"
300 print"B B B"
310 print"B B B"
320 print"B B B"
330 print"*CCCCCCCCCCCCCCCCCCCCCCCCC*CCCCCCCCCCC*"
1000 if ft$="0" then 5000
1010 if mt$="0" then 6000
1410 get k$:if k$= "" then 1500
1415 if k$=" " then 2000
1420 if k$="c" then 3000
1430 if k$="g" then 4000
1440 if k$="f" then 5500
1450 if k$="m" then 6500
1500 cc=cc+cg
1510 print"{home}"ds$"{grey2}B{wht} you have "int(cc)
1520 goto 1000
2000 cc=cc+1
2010 print"{home}"ds$"{grey2}B{wht} you have "int(cc)
2020 goto 1000
3000 if cc<c1 then 1000
3010 cc=cc-c1
3015 print"{home}"ds$"B{wht} you have ":rem stops from messing up the counter
3025 print"{home}"ds$ds$l3$ca" "
3030 cg=cg+.04
3040 cc=cc+cg
3050 print"{home}"ds$"{grey2}B{wht} you have "int(cc)
3060 ca=ca+1
3065 print"{home}"ds$ds$l3$ca
3070 print"{home}"ds$ds$
3075 goto 1000
4000 if cc<c2 then 1000
4010 cc=cc-c2
4015 print"{home}"ds$"B you have ":rem stops from messing up the counter
3020 ga=ga+1
3025 print"{home}"ds$ds$ds$ds$ds$ds$ds$"{grey2}B {brown}***{blk}*{brown}********{grey2} B{wht}"ga
4030 cg=cg+.05
4040 cc=cc+cg
4050 print"{home}"ds$"{grey2}B{wht} you have "int(cc)
4060 goto 1000
5000 if cc<400 then 1010
5010 ft$="1"
5020 print"{home}"ds$ds$ds$ds$ds$ds$ds$ds$ds$ds$ds$"{grey2}B {brown}**************{grey2} B{wht}farm(f) {grey2}B"
5030 print"B {brown}*{blk}*{brown}************{grey2} B{wht}"fa" {grey2}B"
5040 print"B {brown}*************{brown}*{grey2} B{wht}cost: {grey2}B"
5050 print"B {brown}******{blk}**{brown}****{grey2} B{wht}"c3" {grey2}B"
5060 print"B {brown}*****{blk}**{brown}***{grey2} *CCCCCCCCCCC*"
5070 goto 1010
5500 if cc<c3 then 1000
5510 cc=cc-c3
5515 print"{home}"ds$"B{wht} you have ":rem stops from messing up the counter
5520 fa=fa+1
5525 print"{home}"ds$ds$ds$ds$ds$ds$ds$ds$ds$ds$ds$ds$"{grey2}B {brown}*{blk}*{brown}************{grey2} B{wht}"fa
5530 cg=cg+.06
5535 cc=cc+cg
5540 print"{home}"ds$"B{wht} you have "int(cc)
5550 goto 1000
6000 if cc<6000 then 1410
6010 mt$="1"
6020 print"{home}"ds$ds$ds$ds$ds$ds$ds$ds$ds$ds$ds$ds$ds$ds$ds$ds$"{grey2}B {brown}********{grey2} B{wht}mine(m) {grey2}B"
6030 print"B B{wht}"ma" {grey2}B"
6040 print"B B{wht}cost: {grey2}B"
6050 print"B B{wht}"c4" {grey2}B"
6060 print"B *CCCCCCCCCCC*"
6070 goto 1410
6500 if cc<c4 then 1000
6510 cc=cc-c4
6515 print"{home}"ds$"B{wht} you have ":rem stops from messing up the counter
6520 ma=ma+1
6525 print"{home}"ds$ds$ds$ds$ds$ds$ds$ds$ds$ds$ds$ds$ds$ds$ds$ds$ds$"{grey2}B B{wht}"ma
6530 cg=cg+.07
6535 cc=cc+cg
6540 print"{home}"ds$"B{wht} you have "int(cc)
6550 goto 1000
!- ========================================
!- Project : Cookie Clicker
!- Target : Commodore 64
!- Comments : Cookie Clicker for the C64.
!- Author : Ian M. Skinner
!- ========================================
0 rem !to "build/cookie.prg"
10 mb=17:dimna$(mb):dimia(mb):dimbd$(mb):dimbg(mb):dimpr(mb):dimcg(mb):rem create arrays for item data
20 open 8,8,8,"storedat,s,r":rem load item data
30 forx=0tomb
40 input#8,na$(x):rem building name
50 input#8,bd$(x):rem building description
55 input#8,bg(x):rem building cps (not actually per second)
60 input#8,pr(x):rem building price
65 ?x+1"/"mb+1:
70 next
80 close 8
90 ms=1:bn$="someone's":r1$="{right*17}":rem ms is the main subroutine value, bn is the name
95 r2$="{right*17}":ss=1:rem huh? that isn't right. why are r1 and r2 the same?
100 rem stick news here. Also ss is the shop page. (to be named sp)
110 print"{brown}{clear}UCCCCCCCCCCCCCCC{cm r}CCCCCCCCCCCCCCCCCCCCCCI";:rem print static screen
120 print"B B B";
130 print"B B B";
140 print"{cm q}CCCCCCCCCCCCCCC{cm w} B";
150 print"B B B";
160 print"B B B";
170 print"B B B";
180 print"B {reverse on} {reverse off} B B";
190 print"B {reverse on} {black} {brown} {reverse off} B B";
200 print"B {reverse on} {black} {brown} {reverse off} B B";
210 print"B {reverse on} {black} {brown} {black} {brown} {reverse off} B B";
220 print"B {reverse on} {black} {brown} {black} {brown} {reverse off} B B";
230 print"B {reverse on} {reverse off} B B";
240 print"B {reverse on} {reverse off} B B";
250 print"B {reverse on} {black} {brown} {reverse off} B B";
260 print"B {reverse on} {black} {brown} {black} {brown} {black} {brown} {reverse off} B B";
270 print"B {reverse on} {black} {brown} {black} {brown} {reverse off} B B";
280 print"B {reverse on} {reverse off} B B";
290 print"B {reverse on} {reverse off} B B";
300 print"B {reverse on} {reverse off} B B";
310 print"B B B";
320 print"B{white} v2.9.0-1.0 {brown}B B";
330 print"JCCCCCCCCCCCCCCC{cm e}CCCCCCCCCCCCCCCCCCCCCCK";
340 print"{white} {reverse on}f1{reverse off} store {reverse on}f3{reverse off} options {reverse on}f5{reverse off} stats {reverse on}f7{reverse off} ascend";
500 print"{home}{down}{right}"int(cc)
510 print"{brown}B{white} cookies"
520 ?"{brown}B{white}"bn$
530 print"{up}{brown}B{white} bakery"
1000 on ms gosub 2000, 5000:rem, 7000
1010 goto 1000:rem the menu selector
2000 ifms<>1thenreturn :rem store page selection and menu switching area.
2010 ifss>0theni=0:j=4:ifss>1theni=5:j=9:ifss>2theni=10:j=14:ifss>3theni=15:j=17
2060 ts=ss:tm=ms :rem 2010 sets the range of item data
2090 gosub2500 :rem to be used. do not have a range
2100 goto2000 :rem bigger than 5. (smaller is fine)
2500 gosub51000:rem clear dynamic window
2505 y=1:forx=itoj :rem this section prints the
2510 ifx=ithen?"{home}" :rem item data in the given range. (it prints the specified page)
2515 ?r1$"{up}{reverse on}"right$(str$(y),1)"{reverse off} "na$(x)
2520 ?r1$r2$"{up}"ia(x)
2530 ?r1$bd$(x)
2540 ?r1$"{up}"int(pr(x))
2545 ?r1$"{cm t*22}":y=y+1:rem the bars below each item
2550 next
2555 ifj=17then?r1$"{down*7} prev/next(-/+)"
2560 ?r1$"{up} prev/next(-/+)"
2565 gosub 3000:rem goes to actual shop routine
2570 return
3000 get k$:x=0
3010 gosub 60000:rem adding routine
3015 ifval(k$)>5then3070
3020 ifval(k$)<1then3070
3025 x=val(k$)
3065 gosub 3500:rem purchase item
3070 gosub 50000:rem change menu
3080 ifk$="+"thenss=ss+1:rem change store page
3085 ifk$="-"thenss=ss-1
3090 ifss=0thenss=1
3095 ifss=5thenss=4
3110 ifss<>tsthenreturn:rem return if different page was selected
3120 ifms<>tmthenreturn:rem return if different menu was selected
3130 goto 3000
3500 y=i+x-1:ify>mbthenreturn :rem buying subroutine
3510 if cc<pr(y)then3610
3515 if ia(y)=300then3610:rem item cap (otherwise you'd have prices too big to handle)
3520 cc=cc-pr(y):cg(y)=cg(y)+bg(y):pr(y)=pr(y)*1.15:ia(y)=ia(y)+1
3530 ifx=1then?"{home}"r1$r2$"{down}"ia(y):rem find a better way to do this
3540 ifx=2then?"{home}"r1$r2$"{down*5}"ia(y)
3550 ifx=3then?"{home}"r1$r2$"{down*9}"ia(y)
3560 ifx=4then?"{home}"r1$r2$"{down*13}"ia(y)
3565 ifx=5then?"{home}"r1$r2$"{down*17}"ia(y)
3570 ifx=1then?"{home}"r1$"{down*3}"int(pr(y))
3580 ifx=2then?"{home}"r1$"{down*7}"int(pr(y))
3590 ifx=3then?"{home}"r1$"{down*11}"int(pr(y))
3600 ifx=4then?"{home}"r1$"{down*15}"int(pr(y))
3605 ifx=5then?"{home}"r1$"{down*19}"int(pr(y))
3610 x=0:return
5000 ifms<>2thenreturn
5010 tm=ms
5020 gosub5100
5030 goto5000
5100 ?"{home}{down}"r1$"{reverse on}1{reverse off} change your bakery's"
5110 ?r1$"name"
5120 ?r1$"{cm t*22}{down}"
5130 ?r1$"{up}{reverse on}2{reverse off} create a save file"
5140 ?r1$"on a disk"
5150 ?r1$"{cm t*22}{down}"
5160 ?r1$"{up}{reverse on}3{reverse off} load a save file"
5170 ?r1$"from a disk"
5180 ?r1$"{cm t*22}{down}"
5190 ?r1$"{up}{reverse on}4{reverse off} manage your saves"
5195 ?r1$"{down}{cm t*22}{down}"
5200 getk$ :rem
5210 ifval(k$)>4then5240 :rem main loop
5220 ifval(k$)<1then5240 :rem
5230 onval(k$)gosub5700,5900
5240 gosub 50000:gosub 60000
5250 ifms<>tmthenreturn
5260 goto 5200
5700 print"1":open 8,8,8,"@0:savedat,s,w":rem save data
5710 print#8,al
5720 print#8,bn$
5730 print#8,cc
5740 forx=0tomb
5750 print#8,cg(x)
5760 print#8,pr(x)
5770 print#8,ia(x)
5780 next:close 8:return
5900 print"2":open 8,8,8,"@0:savedat,s,r":rem load data
5910 input#8,al
5920 input#8,bn$
5930 input#8,cc
5940 forx=0tomb
5950 input#8,cg(x)
5960 input#8,pr(x)
5970 input#8,ia(x)
5980 next:close 8:return
10000 stop
49999 :rem important subroutines
50000 ifk$="{f1}"then50040:rem menu selecting
50010 ifk$="{f3}"then50040
50020 ifk$="{f5}"then50040
50030 return
50040 ms=-1*(k$="{f1}")-2*(k$="{f3}")-3*(k$="{f5}"):return
51000 forx=1to20: rem clears the menu
51010 ifx=1then?"{home}"r1$"{down} ";
51020 ?r1$"{right} ";:next
51040 return
60000 b=0:fora=0tomb:b=b+(cg(a)/3.6):next:rem slow, horrible, not good adding subroutine
60010 ifk$=" "thencc=cc+1
60020 ifcb>ccthen?"{home}{down}{right} "
60030 cc=cc+b:?"{home}{down}{right}"int(cc):cb=cc:return

72
storedat.seq Normal file
View File

@ -0,0 +1,72 @@
spacebar
adds .1 cps
.1
15
grandma
adds 1 cps
1
100
farm
adds 8 cps
8
1100
mine
adds 47 cps
47
12000
factory
adds 260 cps
260
130000
bank
adds 1400 cps
1400
1400000
temple
adds 7800 cps
7800
20000000
wizard tower
adds 44000 cps
44000
330000000
shipment
adds 260000 cps
260000
5100000000
alchemy lab
adds 1600000 cps
1600000
75000000000
portal
adds 10 million cps
10000000
1000000000000
time machine
adds 65 million cps
65000000
14000000000000
antim. condenser
adds 430 million cps
430000000
170000000000000
prism
adds 2.9 billion cps
2900000000
2100000000000000
chancemaker
adds 21 billion cps
21000000000
26000000000000000
fractal engine
adds 150 billion cps
150000000000
310000000000000000
ml monitor
adds 1.1 trillion cps
1100000000000
71000000000000000000
idleverse
adds 8.3 trillion cps
8300000000000
1.2e+22