Author Topic: [PRIZM] Cookie Clicker  (Read 15647 times)

0 Members and 1 Guest are viewing this topic.

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
[PRIZM] Cookie Clicker
« on: July 08, 2014, 04:51:40 pm »

Hello, everyone! For the past couple days I've been bored, so I decided to play around with programming (since I hadn't in a while). Cookie Clicker seemed easy enough to make, so I decided to try to port/clone it (not sure which to call it; a port or a clone?). I tried making it as accurate to the original as I possibly could. It's pretty simple for now. I plan on adding a saving/loading feature to save your data when you exit the program and to load it back up when you re-enter it later. So far I could only get the Cursors through the Time Machines to work properly in the shop. Here is a screenie to show what I've done so far:





(Idea and Sprites are not mine; they were created by Orteil)
I like milk.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [PRIZM] Cookie Clicker
« Reply #1 on: July 08, 2014, 11:03:31 pm »
Definitively the best-looking Cookie Clicker clone on calcs :D. Also, that cookie looks tasty :P

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: [PRIZM] Cookie Clicker
« Reply #2 on: July 09, 2014, 06:13:08 am »
MMmh, you should try another font, this one is not tasty enough. :D
Oh and do you use the RTS? You could support a sort of idling system : starting the game loads the save and the timestamp and gives as CpS * time out of the addin.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: [PRIZM] Cookie Clicker
« Reply #3 on: July 09, 2014, 09:04:17 am »
Hey look, a Spenceboy ! :D It's been a while !
Nice looking game indeed.

Also Eiyeron I think you mean RTC right ? I can see a problem with that : people can just go and change their clock and have instant cookies. :P

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: [PRIZM] Cookie Clicker
« Reply #4 on: July 09, 2014, 10:02:48 am »
Definitively the best-looking Cookie Clicker clone on calcs :D. Also, that cookie looks tasty :P

Thanks! It's quite tasty. :P

MMmh, you should try another font, this one is not tasty enough. :D
Oh and do you use the RTS? You could support a sort of idling system : starting the game loads the save and the timestamp and gives as CpS * time out of the addin.

I'm just using the default font that is used for the PrintMiniFix routine, but I might try another one later if I can. :P And yes, I do use the RTC (is that what you mean?). I see what you mean by the idling system and I'll keep that in mind. :P

Hey look, a Spenceboy ! :D It's been a while !
Nice looking game indeed.

Also Eiyeron I think you mean RTC right ? I can see a problem with that : people can just go and change their clock and have instant cookies. :P

I'm sure people could just do that, but if there is a saving feature, I'm sure they could also just change the number of cookies in the save file too if they wanted. :P


I have a question about RTC. I have it so that it checks if a second has passed and adds the CpS. If I did do the idling thing, how could I tell if it's been 24 hours or 0 hours (does the RTC reset to zero once it becomes midnight)? Is there a separate function for the date as well? I'll have to research this. :P
I like milk.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: [PRIZM] Cookie Clicker
« Reply #5 on: July 09, 2014, 10:05:19 am »
An RTC counts seconds since a reference (generally Epoch, January 1st, 1970, 00:00 UTC) so that's fine.

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: [PRIZM] Cookie Clicker
« Reply #6 on: July 09, 2014, 10:09:22 am »
An RTC counts seconds since a reference (generally Epoch, January 1st, 1970, 00:00 UTC) so that's fine.

Well, according to cemetech's Prizm wiki:

Quote
Header: fxcg/rtc.h
Syscall index:
Function signature: int RTC_GetTicks(void)

Returns the number of ticks elapsed since midnight (resetting every day). The RTC ticks at 128 Hz.


I'll do some more research about getting the date as well.
I like milk.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: [PRIZM] Cookie Clicker
« Reply #7 on: July 09, 2014, 10:10:57 am »
Ah that's a very unusual RTC lol.

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: [PRIZM] Cookie Clicker
« Reply #8 on: July 09, 2014, 10:14:28 am »
Being bored is probably the best way to come up with awesome projects.
If you like my work: why not give me an internet?








Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: [PRIZM] Cookie Clicker
« Reply #9 on: July 09, 2014, 04:37:24 pm »
I just finished the saving and opening routine for Cookie Clicker, so now it saves your current progress and loads it back up when you re-enter. I might release a demo soon (if I feel like it's worthy for the public). :P
I like milk.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [PRIZM] Cookie Clicker
« Reply #10 on: July 09, 2014, 11:58:46 pm »
By the way, if this game automatically overclocks the calc, don't, because I heard from Cemetech that it's very dangerous to overclock that calc apparently.


Other than that, nice progress. :D

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: [PRIZM] Cookie Clicker
« Reply #11 on: July 10, 2014, 04:37:30 pm »
I doesn't automatically overclock the calc. I never automatically do it, but if it's too slow, I might recommend it. Right now it doesn't seem like it needs to be, unless you want to be able to click by hand faster.

I might release something today, so...
I like milk.

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: [PRIZM] Cookie Clicker
« Reply #12 on: July 10, 2014, 10:01:27 pm »

... sorry for the double post in less than 24 hous but...


Update (and first release)!


I got a new font going (it's the one from the original):



And the release is attached. :P


[SHIFT] - Click the big cookie.
[ALPHA] - Buy a store object.
[UP] - Moves the selection of the store objects up.
[DOWN] - Moves the selection of the store objects down.


Let me know if there are any issues. One issue I know of (and it's not a big issue) is that sometimes, when you buy a cursor, it doesn't add to the CpS. I ignored it one time, and later when I was buying something larger, it added the 0.1 to the CpS. Another is that sometimes it display CpS with a .0 at the end of it when it's a whole number (but that's not really a big deal).


Enjoy! :P
I like milk.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [PRIZM] Cookie Clicker
« Reply #13 on: July 11, 2014, 12:11:22 pm »
Nice, I'll install it when I get some time. i was a bit concerned at first because I thought there were only 4 items to buy, which would have made the game lifespan extremely short.

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: [PRIZM] Cookie Clicker
« Reply #14 on: July 12, 2014, 09:46:19 am »
I'm starting to implement Golden Cookies:


As you can see, it's tinted purple, but that's cause of the routine I'm using (not sure why it's doing that). I'm making it so that they appear above the F buttons, so that you just have to press the one that it's above to click it.
« Last Edit: July 12, 2014, 09:48:50 am by Spenceboy98 »
I like milk.