app changes
This commit is contained in:
23
games/ccTunes.lua
Normal file
23
games/ccTunes.lua
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
local Sound = require('sound')
|
||||||
|
|
||||||
|
local os = _G.os
|
||||||
|
|
||||||
|
local tunes = {
|
||||||
|
'record.11',
|
||||||
|
'record.13',
|
||||||
|
'record.blocks',
|
||||||
|
'record.cat',
|
||||||
|
'record.chirp',
|
||||||
|
'record.far',
|
||||||
|
'record.mall',
|
||||||
|
'record.mellohi',
|
||||||
|
'record.stal',
|
||||||
|
'record.strad',
|
||||||
|
'record.wait',
|
||||||
|
'record.ward',
|
||||||
|
}
|
||||||
|
|
||||||
|
while true do
|
||||||
|
Sound.play(tunes[math.random(1, #tunes)])
|
||||||
|
os.sleep(120)
|
||||||
|
end
|
||||||
@@ -1,7 +1,17 @@
|
|||||||
{
|
{
|
||||||
[ "GENERATE-ME" ] = {
|
[ "462e1d985e9adb99f4bbb4455d99329900450224" ] = {
|
||||||
title = "SameGame",
|
title = "SameGame",
|
||||||
category = "Games",
|
category = "Games",
|
||||||
run = "sameGame.lua",
|
run = "sameGame.lua",
|
||||||
},
|
},
|
||||||
|
[ "f6a5201214fb1981e6d46a39303bb676325eb59b-ME2" ] = {
|
||||||
|
title = "Othello",
|
||||||
|
category = "Games",
|
||||||
|
run = "http://pastebin.com/raw/rMeh1Kag",
|
||||||
|
},
|
||||||
|
[ "785af2a4ad3c4ee912623c6e0b6d4299ea305bf6" ] = {
|
||||||
|
title = "Pipes",
|
||||||
|
category = "Games",
|
||||||
|
run = "https://pastebin.com/raw/skcs9x1s",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -87,9 +87,6 @@ function newGame()
|
|||||||
redraw()
|
redraw()
|
||||||
end
|
end
|
||||||
function redraw()
|
function redraw()
|
||||||
redraw_term(term)
|
|
||||||
end
|
|
||||||
function redraw_term(term)
|
|
||||||
if best_score_view then
|
if best_score_view then
|
||||||
term.setCursorPos(1,1) term.write(" [ BACK ]")
|
term.setCursorPos(1,1) term.write(" [ BACK ]")
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user