Skip to content

Commit 8f41e01

Browse files
committed
Fixes
1 parent 76b3283 commit 8f41e01

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

index.lua

+4-6
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ menufont = Font.load(System.currentDirectory().."font.ttf")
2424
Font.setPixelSizes(menufont,30)
2525
version="0.3.6"
2626

27-
27+
R12=0
2828
function loadall()
2929
Cookie = Graphics.loadImage(System.currentDirectory().."data/cookie.png")
3030
Shine = Graphics.loadImage(System.currentDirectory().."data/shine.png")
@@ -48,7 +48,6 @@ function loadall()
4848
farm = Graphics.loadImage(System.currentDirectory().."data/farm.png")
4949
mine = Graphics.loadImage(System.currentDirectory().."data/mine.png")
5050
factory = Graphics.loadImage(System.currentDirectory().."data/factory.png")
51-
gamesaved = Graphics.loadImage(System.currentDirectory().."data/gamesaved.png")
5251
backgroundgrandma = Graphics.loadImage(System.currentDirectory().."data/backgroundgrandma.png")
5352
backgroundfarm = Graphics.loadImage(System.currentDirectory().."data/backgroundfarm.png")
5453
backgroundmine = Graphics.loadImage(System.currentDirectory().."data/backgroundmine.png")
@@ -552,7 +551,7 @@ while true do
552551
end
553552

554553

555-
if Cookie == nil or Shine == nil or Gradient == nil or StoreHead == nil or CursorBuyIcon == nil or CursorBuyIconNo == nil or GrandmaBuyIcon == nil or GrandmaBuyIconNo == nil or FarmBuyIcon == nil or FarmBuyIconNo == nil or MineBuyIcon == nil or MineBuyIconNo == nil or FactoryBuyIcon == nil or FactoryBuyIconNo == nil or pressed == nil or favicon == nil or cursor == nil or grandma == nil or farm == nil or mine == nil or factory == nil or gamesaved == nil or backgroundgrandma == nil or backgroundfarm == nil or backgroundmine == nil or backgroundfactory == nil then
554+
if Cookie == nil or Shine == nil or Gradient == nil or StoreHead == nil or CursorBuyIcon == nil or CursorBuyIconNo == nil or GrandmaBuyIcon == nil or GrandmaBuyIconNo == nil or FarmBuyIcon == nil or FarmBuyIconNo == nil or MineBuyIcon == nil or MineBuyIconNo == nil or FactoryBuyIcon == nil or FactoryBuyIconNo == nil or pressed == nil or favicon == nil or cursor == nil or grandma == nil or farm == nil or mine == nil or factory == nil or backgroundgrandma == nil or backgroundfarm == nil or backgroundmine == nil or backgroundfactory == nil then
556555

557556
else
558557
justcurrency = 0
@@ -568,9 +567,8 @@ while true do
568567
end
569568

570569
if Controls.check(pad,KEY_L) and Controls.check(pad,KEY_R) then
571-
System.deleteFile("/ccsave.sav")
572-
System.exit()
573-
freefunction()
570+
R12=R12+1
571+
System.takeScreenshot("/screenshot"..R12..".bmp",false)
574572
end
575573

576574
Screen.flip()

0 commit comments

Comments
 (0)