0 Members and 1 Guest are viewing this topic.
function game.cookieProducer:storeVars() var.storeAt("statsProducersSPC", self.cost, self.id*4-3)--also needs to be improved if var.recallAt("statsProducersSPC", self.id*4-3)==nil then print("cost not working") end var.storeAt("statsProducersSPC", self.output, self.id*4-2) if var.recallAt("statsProducersSPC", self.id*4-2)==nil then print("output not working") if self.output==nil then print("wut") end end var.storeAt("statsProducersSPC", self.amt, self.id*4-1) if var.recallAt("statsProducersSPC", self.id*4-1)==nil then print("amt not working") end var.storeAt("statsProducersSPC", self.upgradeCost, self.id*4) end
the first version of cookie clicker for the nspire
I seem to recall at least another with a white background, but I forgot who made it. I know that JWinslow23 made two versions, but neither were for the Nspire. Spenceboy98 made a PRIZM version and Kerm a CSE version.
Oh right, I didn't realize that the cookies were animated. Is the lag still present on OS 3.6 or was it only on 3.1 and lower?Also, I wonder if some PICO-8 games would be feasible in Nspire Lua (eg that racing game I posted in the PICO-8 thread)
Quote from: semiprocoder on November 29, 2015, 09:23:42 pm the first version of cookie clicker for the nspirelies Yours looks better though Might I suggest adding some more spaces though before text? Like, add a bit of margin between the left side of the screen and the Money, Output labels, and the same thing for your stats next to the different things you can buy.
3. When you open the game again without closing it fully(like when you open another file), the game doesn't work at all. You have to open something else to make the game work again.
Just a few spots of advice1) You should make your documents 3.1 compatible 2) I usually use on.save and on.restore rather than saving math variables. I find it to be a little neater in the code, and it also prevents people from cheating by altering the variables from a calculator page, not to mention math variables will take up more space in your document! See here for more info on that.
Page created in 0.225 seconds with 54 queries.