mirror of https://github.com/LDDestroier/CC/
Removed exitGame on foul/win/lose
Why DID I put those there??
This commit is contained in:
parent
eee5c5445c
commit
d4ea02f4fb
|
@ -193,7 +193,7 @@ function getInput()
|
||||||
end, countdown)
|
end, countdown)
|
||||||
if (res == 1) and not over then
|
if (res == 1) and not over then
|
||||||
cprint("FOUL!!")
|
cprint("FOUL!!")
|
||||||
exitGame()
|
--exitGame()
|
||||||
end
|
end
|
||||||
os.queueEvent("imready")
|
os.queueEvent("imready")
|
||||||
parallel.waitForAny(function()
|
parallel.waitForAny(function()
|
||||||
|
@ -262,7 +262,7 @@ function game()
|
||||||
term.setTextColor(colors.red)
|
term.setTextColor(colors.red)
|
||||||
term.setBackgroundColor(colors.lightBlue)
|
term.setBackgroundColor(colors.lightBlue)
|
||||||
sleep(0.5)
|
sleep(0.5)
|
||||||
exitGame()
|
--exitGame()
|
||||||
else
|
else
|
||||||
paintutils.drawImage(mixImages(s.enemy.dead,s.bg),1,1)
|
paintutils.drawImage(mixImages(s.enemy.dead,s.bg),1,1)
|
||||||
paintutils.drawPixel(x,y,colors.red)
|
paintutils.drawPixel(x,y,colors.red)
|
||||||
|
@ -273,7 +273,7 @@ function game()
|
||||||
wins = wins + 1
|
wins = wins + 1
|
||||||
sleep(0.8)
|
sleep(0.8)
|
||||||
difficulty = difficulty * 0.92
|
difficulty = difficulty * 0.92
|
||||||
exitGame()
|
--exitGame()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -285,4 +285,4 @@ while isRunning do
|
||||||
if isRunning then
|
if isRunning then
|
||||||
sleep(0.8)
|
sleep(0.8)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue