This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
@@ -0,0 +1,384 @@
local parse = require( "mod_parse" )
local myData = require( "mydata" )
local composer = require( "composer" )
local JSON = require ("json")
local scene = composer.newScene()

-- -----------------------------------------------------------------------------------------------------------------
-- All code outside of the listener functions will only be executed ONCE unless "composer.removeScene()" is called.
-- -----------------------------------------------------------------------------------------------------------------

-- local forward references should go here

-- -------------------------------------------------------------------------------


local function showSearch()
audio.pause(backgroundMusicplay)
local options = {
effect = "fade",
time = 500
}
composer.gotoScene("Search",options)
end

local function showRescue()
audio.pause(backgroundMusicplay)
local options = {
effect = "fade",
time = 500
}
composer.gotoScene("Rescue",options)
end

local function Search1()
myData.searchLvl = 1
showSearch()
end
local function Search2()
myData.searchLvl = 2
showSearch()
end
local function Search3()
myData.searchLvl = 3
showSearch()
end

local function Rescue1()
myData.rescueLvl = 1
showRescue()
end
local function Rescue2()
myData.rescueLvl = 2
showRescue()
end
local function Rescue3()
myData.rescueLvl = 3
showRescue()
end


local function gohome( event )
local options = {
effect = "crossFade",
time = 500
}
composer.gotoScene("MainMenu",options)
end

-- "scene:create()"
function scene:create( event )

--update()
-- Initialize the scene here.
-- Example: add display objects to "sceneGroup", add touch listeners, etc.
local sceneGroup = self.view
local phase = event.phase

srchLvl = myData.searchLvl
rscLvl = myData.rescueLvl
maxsrch = myData.maxsrch
maxrsc = myData.maxrsc

if(myData.searchLvl > maxsrch) then
maxsrch = myData.searchLvl
end
if(myData.rescueLvl > maxrsc) then
maxrsc = myData.rescueLvl
end

local background = display.newImage("Images/levels_menu.png",system.ResourceDirectory)
background.anchorX=0.5
background.anchorY=0.5
background.height=1080
background.width=1920
background.x= display.contentCenterX
background.y=display.contentCenterY
sceneGroup:insert(background)

--home_button
homebutton = display.newImage("Images/home.png")
homebutton.anchorX=0
homebutton.anchorY=0
homebutton.x=1699
homebutton.y=122
homebutton.height=120
homebutton.width=120
sceneGroup:insert(homebutton)
homebutton:addEventListener( "tap", gohome )


search1 = display.newImage("Images/level1.png")
search1.anchorX=0
search1.anchorY=0
search1.height = 153
search1.width = 153
search1.x = 288
search1.y = 453
sceneGroup:insert(search1)
search1:addEventListener( "tap", Search1 )

if(maxrsc > 1)then
search2 = display.newImage("Images/level2.png")
search2:addEventListener( "tap", Search2 )
else
search2 = display.newImage("Images/level_locked.png")
end
search2.anchorX=0
search2.anchorY=0
search2.height = 153
search2.width = 153
search2.x = 462
search2.y = 453
sceneGroup:insert(search2)


if(maxrsc > 2)then
search3 = display.newImage("Images/level3.png")
search3:addEventListener( "tap", Search3 )
else
search3 = display.newImage("Images/level_locked.png")
end
search3.anchorX=0
search3.anchorY=0
search3.height = 153
search3.width = 153
search3.x = 636
search3.y = 453
sceneGroup:insert(search3)




if(maxsrch > 1)then
rescue1 = display.newImage("Images/level1.png")
rescue1:addEventListener( "tap", showRescue )
else
rescue1 = display.newImage("Images/level_locked.png")
end
rescue1.anchorX=0
rescue1.anchorY=0
rescue1.height = 153
rescue1.width = 153
rescue1.x = 1129
rescue1.y = 453
sceneGroup:insert(rescue1)


if(maxsrch > 2)then
rescue2 = display.newImage("Images/level2.png")
rescue2:addEventListener( "tap", showRescue )
else
rescue2 = display.newImage("Images/level_locked.png")
end
rescue2.anchorX=0
rescue2.anchorY=0
rescue2.height = 153
rescue2.width = 153
rescue2.x = 1303
rescue2.y = 453
sceneGroup:insert(rescue2)


if(maxsrch > 3)then
rescue3 = display.newImage("Images/level3.png")
rescue3:addEventListener( "tap", showRescue )
else
rescue3 = display.newImage("Images/level_locked.png")
end
rescue3.anchorX=0
rescue3.anchorY=0
rescue3.height = 153
rescue3.width = 153
rescue3.x = 1477
rescue3.y = 453
sceneGroup:insert(rescue3)


audio.resume(backgroundMusicplay)
end


-- "scene:show()"
function scene:show( event )

srchLvl = myData.searchLvl
rscLvl = myData.rescueLvl
maxsrch = myData.maxsrch
maxrsc = myData.maxrsc

if(myData.searchLvl > maxsrch) then
maxsrch = myData.searchLvl
end
if(myData.rescueLvl > maxrsc) then
maxrsc = myData.rescueLvl
end

local sceneGroup = self.view
local phase = event.phase

if ( phase == "will" ) then
-- Called when the scene is still off screen (but is about to come on screen).
--local background=display.newRect(display.contentCenterX,display.contentCenterY,1080,720)
--background:setFillColor(.3,.1,.8)


elseif ( phase == "did" ) then
-- Called when the scene is now on screen.
-- Insert code here to make the scene come alive.
-- Example: start timers, begin animation, play audio, etc.
if(search1 == nil) then
--home_button
homebutton = display.newImage("Images/home.png")
homebutton.anchorX=0
homebutton.anchorY=0
homebutton.x=1699
homebutton.y=122
homebutton.height=120
homebutton.width=120
sceneGroup:insert(homebutton)
homebutton:addEventListener( "tap", gohome )


search1 = display.newImage("Images/level1.png")
search1.anchorX=0
search1.anchorY=0
search1.height = 153
search1.width = 153
search1.x = 288
search1.y = 453
sceneGroup:insert(search1)
search1:addEventListener( "tap", Search1 )

if(maxrsc > 1)then
search2 = display.newImage("Images/level2.png")
search2:addEventListener( "tap", Search2 )
else
search2 = display.newImage("Images/level_locked.png")
end
search2.anchorX=0
search2.anchorY=0
search2.height = 153
search2.width = 153
search2.x = 462
search2.y = 453
sceneGroup:insert(search2)


if(maxrsc > 2)then
search3 = display.newImage("Images/level3.png")
search3:addEventListener( "tap", Search3 )
else
search3 = display.newImage("Images/level_locked.png")
end
search3.anchorX=0
search3.anchorY=0
search3.height = 153
search3.width = 153
search3.x = 636
search3.y = 453
sceneGroup:insert(search3)




if(maxsrch > 1)then
rescue1 = display.newImage("Images/level1.png")
rescue1:addEventListener( "tap", showRescue )
else
rescue1 = display.newImage("Images/level_locked.png")
end
rescue1.anchorX=0
rescue1.anchorY=0
rescue1.height = 153
rescue1.width = 153
rescue1.x = 1129
rescue1.y = 453
sceneGroup:insert(rescue1)


if(maxsrch > 2)then
rescue2 = display.newImage("Images/level2.png")
rescue2:addEventListener( "tap", showRescue )
else
rescue2 = display.newImage("Images/level_locked.png")
end
rescue2.anchorX=0
rescue2.anchorY=0
rescue2.height = 153
rescue2.width = 153
rescue2.x = 1303
rescue2.y = 453
sceneGroup:insert(rescue2)


if(maxsrch > 3)then
rescue3 = display.newImage("Images/level3.png")
rescue3:addEventListener( "tap", showRescue )
else
rescue3 = display.newImage("Images/level_locked.png")
end
rescue3.anchorX=0
rescue3.anchorY=0
rescue3.height = 153
rescue3.width = 153
rescue3.x = 1477
rescue3.y = 453
sceneGroup:insert(rescue3)


audio.resume(backgroundMusicplay)
end
end
end


-- "scene:hide()"
function scene:hide( event )

local sceneGroup = self.view
local phase = event.phase

if ( phase == "will" ) then
-- Called when the scene is on screen (but is about to go off screen).
-- Insert code here to "pause" the scene.
-- Example: stop timers, stop animation, stop audio, etc.
elseif ( phase == "did" ) then
display.remove(search1)
search1=nil
display.remove(search2)
search2=nil
display.remove(search3)
search3=nil
display.remove(rescue1)
rescue1=nil
display.remove(rescue2)
rescue2=nil
display.remove(rescue3)
rescue3=nil
end
end


-- "scene:destroy()"
function scene:destroy( event )

local sceneGroup = self.view

-- Called prior to the removal of scene's view ("sceneGroup").
-- Insert code here to clean up the scene.
-- Example: remove display objects, save state, etc.
end


-- -------------------------------------------------------------------------------

-- Listener setup
scene:addEventListener( "create", scene )
scene:addEventListener( "show", scene )
scene:addEventListener( "hide", scene )
scene:addEventListener( "destroy", scene )

-- -------------------------------------------------------------------------------

return scene
@@ -19,12 +19,13 @@ local function showLevel()
effect = "fade",
time = 500
}
if(myData.rescue == 1) then
composer.gotoScene("Rescue",options)
print("Going to Rescue")
else
composer.gotoScene("Search",options)
end
composer.gotoScene("LevelMenu",options)
--if(myData.rescue == 1) then
-- composer.gotoScene("Rescue",options)
-- print("Going to Rescue")
--else
-- composer.gotoScene("Search",options)
--end
end

local function showCredits()
@@ -109,7 +110,7 @@ function scene:show( event )

composer.showOverlay( "permission", options )
end
local background = display.newImage("splash_main.png",system.ResourceDirectory)
local background = display.newImage("Images/splash_main.png",system.ResourceDirectory)
background.anchorX=0.5
background.anchorY=0.5
background.height=1080
@@ -125,23 +126,23 @@ function scene:show( event )
-- Example: start timers, begin animation, play audio, etc.


local play = display.newImage("Play.png")
local play = display.newImage("Images/Play.png")
play.height=180
play.width=350
play.x = display.contentCenterX
play.y=display.contentCenterY-180
sceneGroup:insert(play)
play:addEventListener( "tap", showLevel )

local tut = display.newImage("Tutorial.png")
local tut = display.newImage("Images/Tutorial.png")
tut.height=180
tut.width=520
tut.x = display.contentCenterX
tut.y=display.contentCenterY+20
sceneGroup:insert(tut)
tut:addEventListener( "tap", showTutorial )

local credit = display.newImage("Credits.png")
local credit = display.newImage("Images/Credits.png")
credit.height=180
credit.width=430
credit.x = display.contentCenterX
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -73,7 +73,7 @@ local function setupmap()
setupPic("home", myData.homebutton[5], myData.homebutton[1], myData.homebutton[2], myData.homebutton[3], myData.homebutton[4])

--robot
robot = display.newImage("robot.png")
robot = display.newImage("Images/robot.png")
robot.anchorX=0
robot.anchorY=0
robot.x=109
@@ -84,7 +84,7 @@ local function setupmap()

--scientist
setscience(currResc)
science = display.newImage("scientist.png")
science = display.newImage("Images/scientist.png")
science.anchorX=0
science.anchorY=0
science.x=myData.science[1]
@@ -275,7 +275,7 @@ local function moveu()
end

local function moveup()
local robotMusic = audio.loadStream( "Pew_Pew.mp3")
local robotMusic = audio.loadStream( "Music/Pew_Pew.mp3")
local robotMusicplay = audio.play( robotMusic, { loops=0 } )

local robotX, robotY = robot:localToContent( 0, -70 )
@@ -289,7 +289,7 @@ local function moveri()
end

local function mover()
local robotMusic = audio.loadStream( "Pew_Pew.mp3")
local robotMusic = audio.loadStream( "Music/Pew_Pew.mp3")
local robotMusicplay = audio.play( robotMusic, { loops=0 } )
local robotX, robotY = robot:localToContent( 0, -70 )
transition.to( myrectr, { time=16, x=robotX+320, y=robotY} )
@@ -302,7 +302,7 @@ local function movedo()
end

local function moved()
local robotMusic = audio.loadStream( "Pew_Pew.mp3")
local robotMusic = audio.loadStream( "Music/Pew_Pew.mp3")
local robotMusicplay = audio.play( robotMusic, { loops=0 } )
local robotX, robotY = robot:localToContent( 0, -70 )
transition.to( myrectd, { time=16, x=robotX, y=robotY+390} )
@@ -315,7 +315,7 @@ local function movele()
end

local function movel()
local robotMusic = audio.loadStream( "Pew_Pew.mp3")
local robotMusic = audio.loadStream( "Music/Pew_Pew.mp3")
local robotMusicplay = audio.play( robotMusic, { loops=0 } )
local robotX, robotY = robot:localToContent( 0, -70 )
transition.to( myrectl, { time=16, x=robotX-320, y=robotY} )
@@ -325,31 +325,31 @@ end


local function mdtap()
picToAdd = "down_arrow.png"
picToAdd = "Images/down_arrow.png"
end

local function mutap()
picToAdd = "up_arrow.png"
picToAdd = "Images/up_arrow.png"
end

local function mrtap()
picToAdd = "right_arrow.png"
picToAdd = "Images/right_arrow.png"
end

local function mltap()
picToAdd = "left_arrow.png"
picToAdd = "Images/left_arrow.png"
end

local function onetap()
picToAdd = "one_button_white.png"
picToAdd = "Images/one_button_white.png"
end

local function twotap()
picToAdd = "two_button_white.png"
picToAdd = "Images/two_button_white.png"
end

local function threetap()
picToAdd = "three_button_white.png"
picToAdd = "Images/three_button_white.png"
end


@@ -392,13 +392,13 @@ local function moverobot()
local max = findsize()

if not (counter>max) then
if (fintable[counter]=="up_arrow.png") then
if (fintable[counter]=="Images/up_arrow.png") then
moveup()
elseif (fintable[counter]=="down_arrow.png") then
elseif (fintable[counter]=="Images/down_arrow.png") then
moved()
elseif (fintable[counter]=="left_arrow.png") then
elseif (fintable[counter]=="Images/left_arrow.png") then
movel()
elseif (fintable[counter]=="right_arrow.png") then
elseif (fintable[counter]=="Images/right_arrow.png") then
mover()
else
local options = {
@@ -437,6 +437,7 @@ local function onCollision( event )
if(currResc ~= 3) then
composer.gotoScene("Search",options)
myData.rescueLvl = currResc + 1
myData.searchLvl = currResc + 1
else
composer.gotoScene("Credits",options)
end
@@ -476,13 +477,14 @@ local function merge(tablel)

for i=1,5,1 do
print(tablel[i])
if (tablel[i]=="one_button_white.png") then
if (tablel[i]=="Images/one_button_white.png") then
merge(table1)
elseif (tablel[i]=="two_button_white.png") then
elseif (tablel[i]=="Images/two_button_white.png") then
merge(table2)
elseif (tablel[i]=="three_button_white.png") then
elseif (tablel[i]=="Images/three_button_white.png") then
merge(table3)
elseif ( tablel[i]=="up_arrow.png" or tablel[i]=="down_arrow.png" or tablel[i]=="left_arrow.png" or tablel[i]=="right_arrow.png") then
elseif ( tablel[i]=="Images/up_arrow.png" or tablel[i]=="Images/down_arrow.png"
or tablel[i]=="Images/left_arrow.png" or tablel[i]=="Images/right_arrow.png") then
table.insert(fintable,tablel[i])
else
end
@@ -554,7 +556,7 @@ function scene:create( event )
setscience(currResc)

local sceneGroup = self.view
elevatorMusic = audio.loadStream( "bensound-theelevatorbossanova.mp3")
elevatorMusic = audio.loadStream( "Music/bensound-theelevatorbossanova.mp3")
elevatorMusicplay = audio.play( elevatorMusic, { fadein = 4000, loops=-1 } )

picTable = {}
@@ -565,7 +567,7 @@ function scene:create( event )

-- Initialize the scene here.
-- Example: add display objects to "sceneGroup", add touch listeners, etc.
local background = display.newImage("rescue_background.png",system.ResourceDirectory)
local background = display.newImage("Images/rescue_background.png",system.ResourceDirectory)
background.anchorX=0.5
background.anchorY=0.5
background.height=1080
@@ -678,11 +680,11 @@ function scene:show( event )
currResc = myData.rescueLvl
myData.rescue = 1
if(robot == nil) then
elevatorMusic = audio.loadStream( "bensound-theelevatorbossanova.mp3")
elevatorMusic = audio.loadStream( "Music/bensound-theelevatorbossanova.mp3")
elevatorMusicplay = audio.play( elevatorMusic, { fadein = 4000, loops=-1 } )

--robot
robot = display.newImage("robot.png")
robot = display.newImage("Images/robot.png")
robot.anchorX=0
robot.anchorY=0
robot.x=109
@@ -693,7 +695,7 @@ function scene:show( event )

--scientist
setscience(currResc)
science = display.newImage("scientist.png")
science = display.newImage("Images/scientist.png")
science.anchorX=0
science.anchorY=0
science.x=myData.science[1]
@@ -747,6 +749,33 @@ function scene:show( event )

--scientist
physics.addBody(science, "static",{bounce=0})


sceneGroup:insert(setupItems["grida"])
sceneGroup:insert(setupItems["onel"])
sceneGroup:insert(setupItems["twol"])
sceneGroup:insert(setupItems["threel"])
sceneGroup:insert(setupItems["upa"])
sceneGroup:insert(setupItems["downa"])
sceneGroup:insert(setupItems["lefta"])
sceneGroup:insert(setupItems["righta"])
sceneGroup:insert(setupItems["oneb"])
sceneGroup:insert(setupItems["twob"])
sceneGroup:insert(setupItems["threeb"])
sceneGroup:insert(setupItems["start"])
sceneGroup:insert(setupItems["home"])
sceneGroup:insert(robot)
sceneGroup:insert(science)
sceneGroup:insert(setupItems["bottomwall"])
sceneGroup:insert(setupItems["topwall"])
sceneGroup:insert(setupItems["leftwall"])
sceneGroup:insert(setupItems["rightwall"])
while(myData.levelkey[currResc].walls[i] ~= nil) do
currwall = "wall"..myData.levelkey[currResc].walls[i]
sceneGroup:insert(setupItems[currwall])
i = i + 1
end
i = 1
end

elseif ( phase == "did" ) then

This file was deleted.

@@ -37,7 +37,7 @@ local counter = 1;
-- -------------------------------------------------------------------------------
local function setupmap()
--grid
grida = display.newImage("rescue_grid.png")
grida = display.newImage("Images/rescue_grid.png")
grida.anchorX=0
grida.anchorY=0
grida.x=43.01
@@ -46,7 +46,7 @@ local function setupmap()
grida.width=993.04

--left_wall
leftwall = display.newImage("side_wall.png")
leftwall = display.newImage("Images/side_wall.png")
leftwall.anchorX=0
leftwall.anchorY=0
leftwall.x=43.01
@@ -55,7 +55,7 @@ local function setupmap()
leftwall.width=10

--right_wall
rightwall = display.newImage("side_wall.png")
rightwall = display.newImage("Images/side_wall.png")
rightwall.anchorX=0
rightwall.anchorY=0
rightwall.x=1026.05
@@ -64,7 +64,7 @@ local function setupmap()
rightwall.width=10

--top_wall
topwall = display.newImage("topbottom_wall.png")
topwall = display.newImage("Images/topbottom_wall.png")
topwall.anchorX=0
topwall.anchorY=0
topwall.x=43.01
@@ -73,7 +73,7 @@ local function setupmap()
topwall.width=993.04

--bottom_wall
bottomwall = display.newImage("topbottom_wall.png")
bottomwall = display.newImage("Images/topbottom_wall.png")
bottomwall.anchorX=0
bottomwall.anchorY=0
bottomwall.x=43.01
@@ -82,7 +82,7 @@ local function setupmap()
bottomwall.width=993.04

--one_loop
onel = display.newImage("one_loop.png")
onel = display.newImage("Images/one_loop.png")
onel.anchorX=0
onel.anchorY=0
onel.x=1063.96
@@ -91,7 +91,7 @@ local function setupmap()
onel.width=805

--two_loop
twol = display.newImage("two_loop.png")
twol = display.newImage("Images/two_loop.png")
twol.anchorX=0
twol.anchorY=0
twol.x=1063.96
@@ -101,7 +101,7 @@ local function setupmap()


--three_loop
threel = display.newImage("three_loop.png")
threel = display.newImage("Images/three_loop.png")
threel.anchorX=0
threel.anchorY=0
threel.x=1063.96
@@ -110,7 +110,7 @@ local function setupmap()
threel.width=805

--up_arrow
upa = display.newImage("up_arrow.png")
upa = display.newImage("Images/up_arrow.png")
upa.anchorX=0
upa.anchorY=0
upa.x=1192
@@ -119,7 +119,7 @@ local function setupmap()
upa.width=122

--down_arrow
downa = display.newImage("down_arrow.png")
downa = display.newImage("Images/down_arrow.png")
downa.anchorX=0
downa.anchorY=0
downa.x=1330
@@ -128,7 +128,7 @@ local function setupmap()
downa.width=122

--left_arrow
lefta = display.newImage("left_arrow.png")
lefta = display.newImage("Images/left_arrow.png")
lefta.anchorX=0
lefta.anchorY=0
lefta.x=1468
@@ -137,7 +137,7 @@ local function setupmap()
lefta.width=122

--right_arrow
righta = display.newImage("right_arrow.png")
righta = display.newImage("Images/right_arrow.png")
righta.anchorX=0
righta.anchorY=0
righta.x=1606
@@ -146,44 +146,44 @@ local function setupmap()
righta.width=122

--one_button
oneb = display.newImage("one_button.png")
oneb = display.newImage("Images/one_button_white.png")
oneb.anchorX=0
oneb.anchorY=0
oneb.x=1261
oneb.x=1126
oneb.y=332
oneb.height=122
oneb.width=122

--two_button
twob = display.newImage("two_button.png")
twob = display.newImage("Images/two_button_white.png")
twob.anchorX=0
twob.anchorY=0
twob.x=1399
twob.x=1264
twob.y=332
twob.height=122
twob.width=122

--three_button
threeb = display.newImage("three_button.png")
threeb = display.newImage("Images/three_button_white.png")
threeb.anchorX=0
threeb.anchorY=0
threeb.x=1538
threeb.x=1403
threeb.y=332
threeb.height=122
threeb.width=122

--start_button
start= display.newImage("start_button.png")
start= display.newImage("Images/run_button.png")
start.anchorX=0
start.anchorY=0
start.x=46
start.y=968
start.height=66
start.width=246
start.x=1542
start.y=332
start.height=122
start.width=320


--wall_b
wallb= display.newImage("locked_door_horizontal.png")
wallb= display.newImage("Images/locked_door_horizontal.png")
wallb.anchorX=0
wallb.anchorY=0
wallb.x=359
@@ -192,7 +192,7 @@ local function setupmap()
wallb.width=124

--wall_c
wallc= display.newImage("locked_door_horizontal.png")
wallc= display.newImage("Images/locked_door_horizontal.png")
wallc.anchorX=0
wallc.anchorY=0
wallc.x=598
@@ -201,7 +201,7 @@ local function setupmap()
wallc.width=124

--wall_d
walld= display.newImage("locked_door_horizontal.png")
walld= display.newImage("Images/locked_door_horizontal.png")
walld.anchorX=0
walld.anchorY=0
walld.x=839
@@ -210,7 +210,7 @@ local function setupmap()
walld.width=124

--wall_f
wallf= display.newImage("locked_door_horizontal.png")
wallf= display.newImage("Images/locked_door_horizontal.png")
wallf.anchorX=0
wallf.anchorY=0
wallf.x=359
@@ -219,7 +219,7 @@ local function setupmap()
wallf.width=124

--wall_j
wallj= display.newImage("locked_door_horizontal.png")
wallj= display.newImage("Images/locked_door_horizontal.png")
wallj.anchorX=0
wallj.anchorY=0
wallj.x=359
@@ -228,7 +228,7 @@ local function setupmap()
wallj.width=124

--wall_7
wall7= display.newImage("locked_door_vertical.png")
wall7= display.newImage("Images/locked_door_horizontal.png")
wall7.anchorX=0
wall7.anchorY=0
wall7.x=290
@@ -237,7 +237,7 @@ local function setupmap()
wall7.width=11

--wall_8
wall8= display.newImage("locked_door_vertical.png")
wall8= display.newImage("Images/locked_door_horizontal.png")
wall8.anchorX=0
wall8.anchorY=0
wall8.x=534
@@ -246,7 +246,7 @@ local function setupmap()
wall8.width=12

--scientist
science= display.newImage("scientist.png")
science= display.newImage("Images/scientist.png")
science.anchorX=0
science.anchorY=0
science.x=843-(3*240)
@@ -255,7 +255,7 @@ local function setupmap()
science.width=140

--robot
robot= display.newImage("robot.png")
robot= display.newImage("Images/robot.png")
robot.anchorX=0
robot.anchorY=0
robot.x=109
@@ -294,7 +294,7 @@ function scene:create( event )

-- Initialize the scene here.
-- Example: add display objects to "sceneGroup", add touch listeners, etc.
local background = display.newImage("rescue_background.png",system.ResourceDirectory)
local background = display.newImage("Images/rescue_background.png",system.ResourceDirectory)
background.anchorX=0.5
background.anchorY=0.5
background.height=1080
@@ -29,29 +29,29 @@ function scene:create( event )

local sceneGroup = self.view

speech1= display.newImage("tutorial_rescue_10.png")
speech1= display.newImage("Tutorials/tutorial_rescue_10.png")
speech1.anchorX=0
speech1.anchorY=1
speech1.x=109
speech1.y=819+20
speech1.myName="speech1"


arrow = display.newImage("alert_arrow.png")
arrow = display.newImage("Tutorials/alert_arrow.png")
arrow.anchorX=1
arrow.anchorY=0.5
arrow.x=1192
arrow.y=246
sceneGroup:insert(arrow)

arrow2 = display.newImage("alert_arrow_v.png")
arrow2 = display.newImage("Tutorials/alert_arrow_v.png")
arrow2.anchorX=0.5
arrow2.anchorY=0
arrow2.x=1530.21
arrow2.y=750.86
sceneGroup:insert(arrow2)

arrow3 = display.newImage("alert_arrowl.png")
arrow3 = display.newImage("Tutorials/alert_arrowl.png")
arrow3.anchorX=0
arrow3.anchorY=0.5
arrow3.x=46 +246
@@ -90,7 +90,7 @@ function scene:create( event )
nextb:addEventListener("tap",nextspeech)

-- Initialize the scene here.
pic1 = display.newImage("up_arrow.png")
pic1 = display.newImage("Images/up_arrow.png")
pic1.anchorX = 0.5
pic1.anchorY = 0.5
pic1.x = 1270.21
@@ -99,7 +99,7 @@ function scene:create( event )
pic1.width = 120
sceneGroup:insert(pic1)

picsy = display.newImage("two_button.png")
picsy = display.newImage("Images/two_button_white.png")
picsy.anchorX = 0.5
picsy.anchorY = 0.5
picsy.x = 1402.21
@@ -109,7 +109,7 @@ function scene:create( event )
picsy.alpha=1
sceneGroup:insert(picsy)

upa2 = display.newImage("right_arrow.png")
upa2 = display.newImage("Images/right_arrow.png")
upa2.anchorX=0.5
upa2.anchorY=0.5
upa2.x=1270.21
@@ -118,7 +118,7 @@ function scene:create( event )
upa2.width=120
sceneGroup:insert(upa2)

upa = display.newImage("up_arrow.png")
upa = display.newImage("Images/up_arrow.png")
upa.anchorX=0.5
upa.anchorY=0.5
upa.x=1270.21
@@ -128,7 +128,7 @@ function scene:create( event )
upa.alpha=1
sceneGroup:insert(upa)

upa1 = display.newImage("up_arrow.png")
upa1 = display.newImage("Images/up_arrow.png")
upa1.anchorX=0.5
upa1.anchorY=0.5
upa1.x=1530.21
@@ -18,14 +18,14 @@ function scene:create( event )

local sceneGroup = self.view

speech1= display.newImage("tutorial_rescue_1.png")
speech1= display.newImage("Tutorials/tutorial_rescue_1.png")
speech1.anchorX=0
speech1.anchorY=1
speech1.x=109
speech1.y=819+20
speech1.myName="speech1"
local speech1X, speech1Y = speech1:localToContent( -70, -70 )
nextb = display.newImage("next.png")
nextb = display.newImage("Tutorials/next.png")
nextb.anchorX=0
nextb.anchorY=0
nextb.x=speech1X-20
@@ -18,14 +18,14 @@ function scene:create( event )

local sceneGroup = self.view

speech1= display.newImage("tutorial_rescue_2.png")
speech1= display.newImage("Tutorials/tutorial_rescue_2.png")
speech1.anchorX=0
speech1.anchorY=1
speech1.x=109
speech1.y=819+20
speech1.myName="speech1"
local speech1X, speech1Y = speech1:localToContent( -70, -70 )
nextb = display.newImage("next.png")
nextb = display.newImage("Tutorials/next.png")
nextb.anchorX=0
nextb.anchorY=0
nextb.x=speech1X-20
@@ -18,14 +18,14 @@ function scene:create( event )

local sceneGroup = self.view

speech1= display.newImage("tutorial_rescue_3.png")
speech1= display.newImage("Tutorials/tutorial_rescue_3.png")
speech1.anchorX=0
speech1.anchorY=1
speech1.x=109
speech1.y=819+20
speech1.myName="speech1"
local speech1X, speech1Y = speech1:localToContent( -70, -70 )
nextb = display.newImage("next.png")
nextb = display.newImage("Tutorials/next.png")
nextb.anchorX=0
nextb.anchorY=0
nextb.x=speech1X-20
@@ -18,20 +18,20 @@ function scene:create( event )

local sceneGroup = self.view

speech1= display.newImage("tutorial_rescue_4.png")
speech1= display.newImage("Tutorials/tutorial_rescue_4.png")
speech1.anchorX=0
speech1.anchorY=1
speech1.x=109
speech1.y=819+20
speech1.myName="speech1"
local speech1X, speech1Y = speech1:localToContent( -70, -70 )
nextb = display.newImage("next.png")
nextb = display.newImage("Tutorials/next.png")
nextb.anchorX=0
nextb.anchorY=0
nextb.x=speech1X-20
nextb.y=speech1Y+150
nextb.myName="nextb"
arrow = display.newImage("alert_arrow.png")
arrow = display.newImage("Tutorials/alert_arrow.png")
arrow.anchorX=1
arrow.anchorY=0.5
arrow.x=1192
@@ -24,27 +24,27 @@ function scene:create( event )

local sceneGroup = self.view

speech1= display.newImage("tutorial_rescue_5.png")
speech1= display.newImage("Tutorials/tutorial_rescue_5.png")
speech1.anchorX=0
speech1.anchorY=1
speech1.x=109
speech1.y=819+20
speech1.myName="speech1"
local speech1X, speech1Y = speech1:localToContent( -70, -70 )
nextb = display.newImage("next.png")
nextb = display.newImage("Tutorials/next.png")
nextb.anchorX=0
nextb.anchorY=0
nextb.x=speech1X-20
nextb.y=speech1Y+150
nextb.myName="nextb"
arrow = display.newImage("alert_arrow.png")
arrow = display.newImage("Tutorials/alert_arrow.png")
arrow.anchorX=1
arrow.anchorY=0.5
arrow.x=1192
arrow.y=705
sceneGroup:insert(arrow)

picsy = display.newImage("up_arrow.png")
picsy = display.newImage("Images/up_arrow.png")
picsy.anchorX = 0.5
picsy.anchorY = 0.5
picsy.x = 1270.21
@@ -10,7 +10,7 @@ local scene = composer.newScene()

-- -------------------------------------------------------------------------------
local function handleButtonEvent()
picsy = display.newImage("two_button.png")
picsy = display.newImage("Images/two_button_white.png")
picsy.anchorX = 0.5
picsy.anchorY = 0.5
picsy.x = 1402.21
@@ -28,28 +28,28 @@ function scene:create( event )

local sceneGroup = self.view

speech1= display.newImage("tutorial_rescue_6.png")
speech1= display.newImage("Tutorials/tutorial_rescue_6.png")
speech1.anchorX=0
speech1.anchorY=1
speech1.x=109
speech1.y=819+20
speech1.myName="speech1"
local speech1X, speech1Y = speech1:localToContent( -70, -70 )
nextb = display.newImage("next.png")
nextb = display.newImage("Tutorials/next.png")
nextb.anchorX=0
nextb.anchorY=0
nextb.x=speech1X-20
nextb.y=speech1Y+150
nextb.myName="nextb"

arrow = display.newImage("alert_arrow.png")
arrow = display.newImage("Tutorials/alert_arrow.png")
arrow.anchorX=1
arrow.anchorY=0.5
arrow.x=1399
arrow.y=394
sceneGroup:insert(arrow)

arrow2 = display.newImage("alert_arrow.png")
arrow2 = display.newImage("Tutorials/alert_arrow.png")
arrow2.anchorX=1
arrow2.anchorY=0.5
arrow2.x=1402.21
@@ -23,21 +23,21 @@ function scene:create( event )

local sceneGroup = self.view

speech1= display.newImage("tutorial_rescue_7.png")
speech1= display.newImage("Tutorials/tutorial_rescue_7.png")
speech1.anchorX=0
speech1.anchorY=1
speech1.x=109
speech1.y=819+20
speech1.myName="speech1"
local speech1X, speech1Y = speech1:localToContent( -70, -70 )
nextb = display.newImage("next.png")
nextb = display.newImage("Tutorials/next.png")
nextb.anchorX=0
nextb.anchorY=0
nextb.x=speech1X-20
nextb.y=speech1Y+150
nextb.myName="nextb"

pic1 = display.newImage("up_arrow.png")
pic1 = display.newImage("Images/up_arrow.png")
pic1.anchorX = 0.5
pic1.anchorY = 0.5
pic1.x = 1270.21
@@ -46,7 +46,7 @@ function scene:create( event )
pic1.width = 120
sceneGroup:insert(pic1)

picsy = display.newImage("two_button.png")
picsy = display.newImage("Images/two_button_white.png")
picsy.anchorX = 0.5
picsy.anchorY = 0.5
picsy.x = 1402.21
@@ -56,14 +56,14 @@ function scene:create( event )
picsy.alpha=0
sceneGroup:insert(picsy)

arrow = display.newImage("alert_arrow.png")
arrow = display.newImage("Tutorials/alert_arrow.png")
arrow.anchorX=1
arrow.anchorY=0.5
arrow.x=1399
arrow.y=394
sceneGroup:insert(arrow)

arrow2 = display.newImage("alert_arrow_v.png")
arrow2 = display.newImage("Tutorials/alert_arrow_v.png")
arrow2.anchorX=0.5
arrow2.anchorY=0
arrow2.x=1402.21
@@ -23,21 +23,21 @@ function scene:create( event )

local sceneGroup = self.view

speech1= display.newImage("tutorial_rescue_8.png")
speech1= display.newImage("Tutorials/tutorial_rescue_8.png")
speech1.anchorX=0
speech1.anchorY=1
speech1.x=109
speech1.y=819+20
speech1.myName="speech1"
local speech1X, speech1Y = speech1:localToContent( -70, -70 )
nextb = display.newImage("next.png")
nextb = display.newImage("Tutorials/next.png")
nextb.anchorX=0
nextb.anchorY=0
nextb.x=speech1X-20
nextb.y=speech1Y+150
nextb.myName="nextb"

pic1 = display.newImage("up_arrow.png")
pic1 = display.newImage("Images/up_arrow.png")
pic1.anchorX = 0.5
pic1.anchorY = 0.5
pic1.x = 1270.21
@@ -46,7 +46,7 @@ function scene:create( event )
pic1.width = 120
sceneGroup:insert(pic1)

picsy = display.newImage("two_button.png")
picsy = display.newImage("Images/two_button_white.png")
picsy.anchorX = 0.5
picsy.anchorY = 0.5
picsy.x = 1402.21
@@ -56,7 +56,7 @@ function scene:create( event )
picsy.alpha=1
sceneGroup:insert(picsy)

upa = display.newImage("right_arrow.png")
upa = display.newImage("Images/right_arrow.png")
upa.anchorX=0.5
upa.anchorY=0.5
upa.x=1270.21
@@ -66,14 +66,14 @@ function scene:create( event )
upa.alpha=0
sceneGroup:insert(upa)

arrow = display.newImage("alert_arrow.png")
arrow = display.newImage("Tutorials/alert_arrow.png")
arrow.anchorX=1
arrow.anchorY=0.5
arrow.x=1606
arrow.y=246
sceneGroup:insert(arrow)

arrow2 = display.newImage("alert_arrow_v.png")
arrow2 = display.newImage("Tutorials/alert_arrow_v.png")
arrow2.anchorX=0.5
arrow2.anchorY=0
arrow2.x=1270.21
@@ -24,28 +24,28 @@ function scene:create( event )

local sceneGroup = self.view

speech1= display.newImage("tutorial_rescue_9.png")
speech1= display.newImage("Tutorials/tutorial_rescue_9.png")
speech1.anchorX=0
speech1.anchorY=1
speech1.x=109
speech1.y=819+20
speech1.myName="speech1"
local speech1X, speech1Y = speech1:localToContent( -70, -70 )
nextb = display.newImage("next.png")
nextb = display.newImage("Tutorials/next.png")
nextb.anchorX=0
nextb.anchorY=0
nextb.x=speech1X-20
nextb.y=speech1Y+200
nextb.myName="nextb"

arrow = display.newImage("alert_arrow.png")
arrow = display.newImage("Tutorials/alert_arrow.png")
arrow.anchorX=1
arrow.anchorY=0.5
arrow.x=1192
arrow.y=246
sceneGroup:insert(arrow)

arrow2 = display.newImage("alert_arrow_v.png")
arrow2 = display.newImage("Tutorials/alert_arrow_v.png")
arrow2.anchorX=0.5
arrow2.anchorY=0
arrow2.x=1270.21
@@ -70,7 +70,7 @@ function scene:create( event )
nextb:addEventListener("tap",nextspeech)

-- Initialize the scene here.
pic1 = display.newImage("up_arrow.png")
pic1 = display.newImage("Images/up_arrow.png")
pic1.anchorX = 0.5
pic1.anchorY = 0.5
pic1.x = 1270.21
@@ -79,7 +79,7 @@ function scene:create( event )
pic1.width = 120
sceneGroup:insert(pic1)

picsy = display.newImage("two_button.png")
picsy = display.newImage("Images/two_button_white.png")
picsy.anchorX = 0.5
picsy.anchorY = 0.5
picsy.x = 1402.21
@@ -89,7 +89,7 @@ function scene:create( event )
picsy.alpha=1
sceneGroup:insert(picsy)

upa1 = display.newImage("right_arrow.png")
upa1 = display.newImage("Images/right_arrow.png")
upa1.anchorX=0.5
upa1.anchorY=0.5
upa1.x=1270.21
@@ -98,7 +98,7 @@ function scene:create( event )
upa1.width=120
sceneGroup:insert(upa1)

upa = display.newImage("up_arrow.png")
upa = display.newImage("Images/up_arrow.png")
upa.anchorX=0.5
upa.anchorY=0.5
upa.x=1270.21
@@ -13,7 +13,7 @@ local scene = composer.newScene()
local function setupmap()

--level_map
levelmap = display.newImage("search"..currLvl..".png")
levelmap = display.newImage("Images/search"..currLvl..".png")
levelmap.anchorX=0
levelmap.anchorY=0
levelmap.x=194
@@ -22,7 +22,7 @@ local function setupmap()
levelmap.width=862

--red_block
blockred = display.newImage("red_block.png")
blockred = display.newImage("Images/red_block.png")
blockred.anchorX=0
blockred.anchorY=0
blockred.x=1289
@@ -31,7 +31,7 @@ local function setupmap()
blockred.width=120

--green_block
blockgreen = display.newImage("green_block.png")
blockgreen = display.newImage("Images/green_block.png")
blockgreen.anchorX=0
blockgreen.anchorY=0
blockgreen.x=1426
@@ -40,7 +40,7 @@ local function setupmap()
blockgreen.width=120

--blue_block
blockblue = display.newImage("blue_block.png")
blockblue = display.newImage("Images/blue_block.png")
blockblue.anchorX=0
blockblue.anchorY=0
blockblue.x=1564
@@ -49,7 +49,7 @@ local function setupmap()
blockblue.width=120

--yellow_block
blockyellow = display.newImage("yellow_block.png")
blockyellow = display.newImage("Images/yellow_block.png")
blockyellow.anchorX=0
blockyellow.anchorY=0
blockyellow.x=1700
@@ -58,7 +58,7 @@ local function setupmap()
blockyellow.width=120

--run_button
runbutton = display.newImage("run_button.png")
runbutton = display.newImage("Images/run_button.png")
runbutton.anchorX=0
runbutton.anchorY=0
runbutton.x=1450
@@ -67,7 +67,7 @@ local function setupmap()
runbutton.width=360

--delete_button
deletebutton = display.newImage("delete_button.png")
deletebutton = display.newImage("Images/delete_button.png")
deletebutton.anchorX=0
deletebutton.anchorY=0
deletebutton.x=1289
@@ -76,7 +76,7 @@ local function setupmap()
deletebutton.width=120

--home_button
homebutton = display.newImage("home.png")
homebutton = display.newImage("Images/home.png")
homebutton.anchorX=0
homebutton.anchorY=0
homebutton.x=1766
@@ -88,7 +88,7 @@ end

local function addred( event )
if (countmax < 8) then
newblock[countmax] = display.newImage("red_block.png")
newblock[countmax] = display.newImage("Images/red_block.png")
newblock[countmax].anchorX=0
newblock[countmax].anchorY=0
newblock[countmax].x= spotx
@@ -106,7 +106,7 @@ end

local function addgreen( event )
if (countmax < 8) then
newblock[countmax] = display.newImage("green_block.png")
newblock[countmax] = display.newImage("Images/green_block.png")
newblock[countmax].anchorX=0
newblock[countmax].anchorY=0
newblock[countmax].x= spotx
@@ -124,7 +124,7 @@ end

local function addblue( event )
if (countmax < 8) then
newblock[countmax] = display.newImage("blue_block.png")
newblock[countmax] = display.newImage("Images/blue_block.png")
newblock[countmax].anchorX=0
newblock[countmax].anchorY=0
newblock[countmax].x= spotx
@@ -142,7 +142,7 @@ end

local function addyellow( event )
if (countmax < 8) then
newblock[countmax] = display.newImage("yellow_block.png")
newblock[countmax] = display.newImage("Images/yellow_block.png")
newblock[countmax].anchorX=0
newblock[countmax].anchorY=0
newblock[countmax].x= spotx
@@ -255,6 +255,7 @@ local function checkresult( event )
parse:updateObject("LevelTime", myData.timeid, {[attribute] = endTime})
composer.gotoScene("Rescue",options)
myData.searchLvl = currLvl + 1
myData.rescueLvl = currLvl
print("Current level: "..myData.searchLvl)
else
answer = countmax
@@ -278,14 +279,14 @@ function scene:create( event )
myData.rescue = 0

local sceneGroup = self.view
searchMusic = audio.loadStream( "bensound-slowmotion.mp3")
searchMusic = audio.loadStream( "Music/bensound-slowmotion.mp3")
searchMusicplay = audio.play( searchMusic, { fadein = 4000, loops=-1 } )


-- Initialize the scene here.
-- Example: add display objects to "sceneGroup", add touch listeners, etc.

local background = display.newImage("search_background_2.png")
local background = display.newImage("Images/search_background_2.png")
background.anchorX=0.5
background.anchorY=0.5
background.height=1080
@@ -334,29 +335,31 @@ function scene:show( event )

if ( phase == "will" ) then
-- Called when the scene is still off screen (but is about to come on screen).


elseif ( phase == "did" ) then
currLvl = myData.searchLvl
myData.rescue = 0
if(levelmap == nil) then
undosearch = 0
homesearch = 0
runsearch = 0
searchMusic = audio.loadStream( "bensound-slowmotion.mp3")
searchMusicplay = audio.play( searchMusic, { fadein = 4000, loops=-1 } )
levelmap = display.newImage("search"..currLvl..".png")
levelmap.anchorX=0
levelmap.anchorY=0
levelmap.x=194
levelmap.y=583
levelmap.height=447
levelmap.width=862
undosearch = 0
homesearch = 0
runsearch = 0
searchMusic = audio.loadStream( "Music/bensound-slowmotion.mp3")
searchMusicplay = audio.play( searchMusic, { fadein = 4000, loops=-1 } )
levelmap = display.newImage("Images/search"..currLvl..".png")
levelmap.anchorX=0
levelmap.anchorY=0
levelmap.x=194
levelmap.y=583
levelmap.height=447
levelmap.width=862

sceneGroup:insert(levelmap)
end


getKey()

elseif ( phase == "did" ) then


end
end

This file was deleted.

This file was deleted.

This file was deleted.

@@ -11,7 +11,7 @@ local scene = composer.newScene()
local function setupmap()

--level_map
levelmap = display.newImage("search1.png")
levelmap = display.newImage("Images/search1.png")
levelmap.anchorX=0
levelmap.anchorY=0
levelmap.x=194
@@ -20,7 +20,7 @@ local function setupmap()
levelmap.width=862

--red_block
blockred = display.newImage("red_block.png")
blockred = display.newImage("Images/red_block.png")
blockred.anchorX=0
blockred.anchorY=0
blockred.x=1289
@@ -29,7 +29,7 @@ local function setupmap()
blockred.width=120

--green_block
blockgreen = display.newImage("green_block.png")
blockgreen = display.newImage("Images/green_block.png")
blockgreen.anchorX=0
blockgreen.anchorY=0
blockgreen.x=1426
@@ -38,7 +38,7 @@ local function setupmap()
blockgreen.width=120

--blue_block
blockblue = display.newImage("blue_block.png")
blockblue = display.newImage("Images/blue_block.png")
blockblue.anchorX=0
blockblue.anchorY=0
blockblue.x=1564
@@ -47,7 +47,7 @@ local function setupmap()
blockblue.width=120

--yellow_block
blockyellow = display.newImage("yellow_block.png")
blockyellow = display.newImage("Images/yellow_block.png")
blockyellow.anchorX=0
blockyellow.anchorY=0
blockyellow.x=1700
@@ -56,7 +56,7 @@ local function setupmap()
blockyellow.width=120

--run_button
runbutton = display.newImage("run_button.png")
runbutton = display.newImage("Images/run_button.png")
runbutton.anchorX=0
runbutton.anchorY=0
runbutton.x=1450
@@ -65,7 +65,7 @@ local function setupmap()
runbutton.width=360

--delete_button
deletebutton = display.newImage("delete_button.png")
deletebutton = display.newImage("Images/delete_button.png")
deletebutton.anchorX=0
deletebutton.anchorY=0
deletebutton.x=1289
@@ -77,7 +77,7 @@ end

local function addred( event )
if (countmax < 8) then
newblock[countmax] = display.newImage("red_block.png")
newblock[countmax] = display.newImage("Images/red_block.png")
newblock[countmax].anchorX=0
newblock[countmax].anchorY=0
newblock[countmax].x= spotx
@@ -95,7 +95,7 @@ end

local function addgreen( event )
if (countmax < 8) then
newblock[countmax] = display.newImage("green_block.png")
newblock[countmax] = display.newImage("Images/green_block.png")
newblock[countmax].anchorX=0
newblock[countmax].anchorY=0
newblock[countmax].x= spotx
@@ -113,7 +113,7 @@ end

local function addblue( event )
if (countmax < 8) then
newblock[countmax] = display.newImage("blue_block.png")
newblock[countmax] = display.newImage("Images/blue_block.png")
newblock[countmax].anchorX=0
newblock[countmax].anchorY=0
newblock[countmax].x= spotx
@@ -131,7 +131,7 @@ end

local function addyellow( event )
if (countmax < 8) then
newblock[countmax] = display.newImage("yellow_block.png")
newblock[countmax] = display.newImage("Images/yellow_block.png")
newblock[countmax].anchorX=0
newblock[countmax].anchorY=0
newblock[countmax].x= spotx
@@ -170,15 +170,15 @@ local function checkresult( event )
print(answer)
if(spacecolor[answer] == answerkey[answer+1])then
if(answer == 0)then
resultblock[answer]= display.newImage("red_block.png")
resultblock[answer]= display.newImage("Images/red_block.png")
elseif(answer == 1)then
resultblock[answer]= display.newImage("green_block.png")
resultblock[answer]= display.newImage("Images/green_block.png")
elseif(answer == 2)then
resultblock[answer]= display.newImage("blue_block.png")
resultblock[answer]= display.newImage("Images/blue_block.png")
elseif(answer == 3)then
resultblock[answer]= display.newImage("green_block.png")
resultblock[answer]= display.newImage("Images/green_block.png")
elseif(answer == 4)then
resultblock[answer]= display.newImage("yellow_block.png")
resultblock[answer]= display.newImage("Images/yellow_block.png")
end
resultblock[answer].anchorX=0
resultblock[answer].anchorY=0
@@ -225,7 +225,7 @@ function scene:create( event )

composer.showOverlay( "SearchTutorial1", options )

local background = display.newImage("search_background.png")
local background = display.newImage("Images/search_background_2.png")
background.anchorX=0.5
background.anchorY=0.5
background.height=1080
@@ -17,15 +17,15 @@ end
function scene:create( event )

local sceneGroup = self.view
speech1= display.newImage("tutorial_search_1.png")
speech1= display.newImage("Tutorials/tutorial_search_1.png")
speech1.anchorX=0
speech1.anchorY=1
speech1.x=0
speech1.y=500
speech1.alpha=0.9
speech1.myName="speech1"
local speech1X, speech1Y = speech1:localToContent( -70, -70 )
nextb = display.newImage("next.png")
nextb = display.newImage("Tutorials/next.png")
nextb.anchorX=0
nextb.anchorY=0
nextb.x=speech1X+60
@@ -17,15 +17,15 @@ end
function scene:create( event )

local sceneGroup = self.view
speech1= display.newImage("tutorial_search_2.png")
speech1= display.newImage("Tutorials/tutorial_search_2.png")
speech1.anchorX=0
speech1.anchorY=1
speech1.x=0
speech1.y=500
speech1.alpha=0.9
speech1.myName="speech1"
local speech1X, speech1Y = speech1:localToContent( -70, -70 )
nextb = display.newImage("next.png")
nextb = display.newImage("Tutorials/next.png")
nextb.anchorX=0
nextb.anchorY=0
nextb.x=speech1X+60
@@ -17,15 +17,15 @@ end
function scene:create( event )

local sceneGroup = self.view
speech1= display.newImage("tutorial_search_3.png")
speech1= display.newImage("Tutorials/tutorial_search_3.png")
speech1.anchorX=0
speech1.anchorY=1
speech1.x=0
speech1.y=500
speech1.alpha=0.9
speech1.myName="speech1"
local speech1X, speech1Y = speech1:localToContent( -70, -70 )
nextb = display.newImage("next.png")
nextb = display.newImage("Tutorials/next.png")
nextb.anchorX=0
nextb.anchorY=0
nextb.x=speech1X+60
@@ -17,15 +17,15 @@ end
function scene:create( event )

local sceneGroup = self.view
speech1= display.newImage("tutorial_search_4.png")
speech1= display.newImage("Tutorials/tutorial_search_4.png")
speech1.anchorX=0
speech1.anchorY=1
speech1.x=0
speech1.y=500
speech1.alpha=0.9
speech1.myName="speech1"
local speech1X, speech1Y = speech1:localToContent( -70, -70 )
nextb = display.newImage("next.png")
nextb = display.newImage("Tutorials/next.png")
nextb.anchorX=0
nextb.anchorY=0
nextb.x=speech1X+60
@@ -17,15 +17,15 @@ end
function scene:create( event )

local sceneGroup = self.view
speech1= display.newImage("tutorial_search_5.png")
speech1= display.newImage("Tutorials/tutorial_search_5.png")
speech1.anchorX=0
speech1.anchorY=1
speech1.x=0
speech1.y=500
speech1.alpha=0.9
speech1.myName="speech1"
local speech1X, speech1Y = speech1:localToContent( -70, -70 )
nextb = display.newImage("next.png")
nextb = display.newImage("Tutorials/next.png")
nextb.anchorX=0
nextb.anchorY=0
nextb.x=speech1X+60
@@ -23,7 +23,7 @@ end
function scene:create( event )

local sceneGroup = self.view
local backgroundMusic = audio.loadStream( "bensound-scifi.mp3")
local backgroundMusic = audio.loadStream( "Music/bensound-scifi.mp3")
local backgroundMusicplay = audio.play( backgroundMusic, { loops=-1 } )

-- Initialize the scene here.
@@ -42,7 +42,7 @@ function scene:show( event )
--local background=display.newRect(display.contentCenterX,display.contentCenterY,1080,720)
--background:setFillColor(.3,.1,.8)

local background = display.newImage("title_background.png",system.ResourceDirectory)
local background = display.newImage("Images/title_background.png",system.ResourceDirectory)
background.anchorX=0.5
background.anchorY=0.5
background.height=1080
Deleted file not rendered
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Deleted file not rendered
@@ -55,6 +55,8 @@ parse:createObject("RunCount", datatable, saveRun)
parse:createObject("EmptyCount", datatable, saveEmpty)
myData.searchLvl = 1
myData.rescueLvl = 1
myData.maxsrch = 1
myData.maxrsc = 1
myData.rescue = 0


@@ -83,61 +85,61 @@ local sciencey
-- bottomwall
function setObjects()
--horizontal walls
myData.walla = {110, 288, 10, 124, "locked_door_horizontal.png"}
myData.wallb = {359, 288, 11, 124, "locked_door_horizontal.png"}
myData.wallc = {598, 288, 11, 124, "locked_door_horizontal.png"}
myData.walld = {839, 288, 11, 124, "locked_door_horizontal.png"}
myData.walle = {110, 533, 11, 124, "locked_door_horizontal.png"}
myData.wallf = {359, 533, 11, 124, "locked_door_horizontal.png"}
myData.wallg = {598, 533, 11, 124, "locked_door_horizontal.png"}
myData.wallh = {839, 533, 11, 124, "locked_door_horizontal.png"}
myData.walli = {110, 777, 11, 124, "locked_door_horizontal.png"}
myData.wallj = {359, 777, 11, 124, "locked_door_horizontal.png"}
myData.wallk = {598, 777, 11, 124, "locked_door_horizontal.png"}
myData.walll = {839, 777, 11, 124, "locked_door_horizontal.png"}
myData.walla = {110, 288, 10, 124, "Images/locked_door_horizontal.png"}
myData.wallb = {359, 288, 11, 124, "Images/locked_door_horizontal.png"}
myData.wallc = {598, 288, 11, 124, "Images/locked_door_horizontal.png"}
myData.walld = {839, 288, 11, 124, "Images/locked_door_horizontal.png"}
myData.walle = {110, 533, 11, 124, "Images/locked_door_horizontal.png"}
myData.wallf = {359, 533, 11, 124, "Images/locked_door_horizontal.png"}
myData.wallg = {598, 533, 11, 124, "Images/locked_door_horizontal.png"}
myData.wallh = {839, 533, 11, 124, "Images/locked_door_horizontal.png"}
myData.walli = {110, 777, 11, 124, "Images/locked_door_horizontal.png"}
myData.wallj = {359, 777, 11, 124, "Images/locked_door_horizontal.png"}
myData.wallk = {598, 777, 11, 124, "Images/locked_door_horizontal.png"}
myData.walll = {839, 777, 11, 124, "Images/locked_door_horizontal.png"}

--vertical walls
myData.wall1 = {290, 108, 124, 11, "locked_door_horizontal.png"}
myData.wall2 = {534, 108, 124, 11, "locked_door_horizontal.png"}
myData.wall3 = {778, 108, 124, 11, "locked_door_horizontal.png"}
myData.wall4 = {290, 355, 124, 11, "locked_door_horizontal.png"}
myData.wall5 = {534, 355, 124, 11, "locked_door_horizontal.png"}
myData.wall6 = {778, 355, 124, 11, "locked_door_horizontal.png"}
myData.wall7 = {290, 602, 124, 11, "locked_door_horizontal.png"}
myData.wall8 = {534, 602, 124, 11, "locked_door_horizontal.png"}
myData.wall9 = {778, 602, 124, 11, "locked_door_horizontal.png"}
myData.wall10 = {290, 848, 124, 11, "locked_door_horizontal.png"}
myData.wall11 = {534, 848, 124, 11, "locked_door_horizontal.png"}
myData.wall12 = {778, 848, 124, 11, "locked_door_horizontal.png"}
myData.wall1 = {290, 108, 124, 11, "Images/locked_door_horizontal.png"}
myData.wall2 = {534, 108, 124, 11, "Images/locked_door_horizontal.png"}
myData.wall3 = {778, 108, 124, 11, "Images/locked_door_horizontal.png"}
myData.wall4 = {290, 355, 124, 11, "Images/locked_door_horizontal.png"}
myData.wall5 = {534, 355, 124, 11, "Images/locked_door_horizontal.png"}
myData.wall6 = {778, 355, 124, 11, "Images/locked_door_horizontal.png"}
myData.wall7 = {290, 602, 124, 11, "Images/locked_door_horizontal.png"}
myData.wall8 = {534, 602, 124, 11, "Images/locked_door_horizontal.png"}
myData.wall9 = {778, 602, 124, 11, "Images/locked_door_horizontal.png"}
myData.wall10 = {290, 848, 124, 11, "Images/locked_door_horizontal.png"}
myData.wall11 = {534, 848, 124, 11, "Images/locked_door_horizontal.png"}
myData.wall12 = {778, 848, 124, 11, "Images/locked_door_horizontal.png"}

--outer walls
myData.grida = {43.01, 41.93, 993.04, 993.04,"rescue_grid.png"}
myData.leftwall = {43.01, 41.93, 993.04, 10,"side_wall.png"}
myData.rightwall = {1026.05, 41.93, 993.04, 10,"side_wall.png"}
myData.topwall = {43.01, 41.93, 10, 993.04,"topbottom_wall.png"}
myData.bottomwall = {43.01, 1024.97, 10, 993.04,"topbottom_wall.png"}
myData.grida = {43.01, 41.93, 993.04, 993.04,"Images/rescue_grid.png"}
myData.leftwall = {43.01, 41.93, 993.04, 10,"Images/side_wall.png"}
myData.rightwall = {1026.05, 41.93, 993.04, 10,"Images/side_wall.png"}
myData.topwall = {43.01, 41.93, 10, 993.04,"Images/topbottom_wall.png"}
myData.bottomwall = {43.01, 1024.97, 10, 993.04,"Images/topbottom_wall.png"}

--loop objects
myData.oneloop = {1063.96, 625, 133, 805,"one_loop.png"}
myData.twoloop = {1063.96, 768, 133, 805,"two_loop.png"}
myData.threeloop = {1063.96, 910, 133, 805,"three_loop.png"}
myData.oneloop = {1063.96, 625, 133, 805,"Images/one_loop.png"}
myData.twoloop = {1063.96, 768, 133, 805,"Images/two_loop.png"}
myData.threeloop = {1063.96, 910, 133, 805,"Images/three_loop.png"}

--buttons
myData.uparrow = {1192, 186, 122, 122, "up_arrow.png"}
myData.downarrow = {1330, 186, 122, 122, "down_arrow.png"}
myData.leftarrow = {1468, 186, 122, 122, "left_arrow.png"}
myData.rightarrow = {1606, 186, 122, 122, "right_arrow.png"}
myData.onebutton = {1126, 332, 122, 122, "one_button_white.png"}
myData.twobutton = {1264, 332, 122, 122, "two_button_white.png"}
myData.threebutton = {1403, 332, 122, 122, "three_button_white.png"}
myData.homebutton = {1764, 30, 122, 122, "home.png"}
myData.startbutton = {1542, 332, 122, 320, "run_button.png"}
myData.uparrow = {1192, 186, 122, 122, "Images/up_arrow.png"}
myData.downarrow = {1330, 186, 122, 122, "Images/down_arrow.png"}
myData.leftarrow = {1468, 186, 122, 122, "Images/left_arrow.png"}
myData.rightarrow = {1606, 186, 122, 122, "Images/right_arrow.png"}
myData.onebutton = {1126, 332, 122, 122, "Images/one_button_white.png"}
myData.twobutton = {1264, 332, 122, 122, "Images/two_button_white.png"}
myData.threebutton = {1403, 332, 122, 122, "Images/three_button_white.png"}
myData.homebutton = {1764, 30, 122, 122, "Images/home.png"}
myData.startbutton = {1542, 332, 122, 320, "Images/run_button.png"}

--robot
myData.robot = {109, 819, 140, 140, "robot.png"}
myData.robot = {109, 819, 140, 140, "Images/robot.png"}

--scientist
myData.science = {nil, nil, 140, 140, "scientist.png"}
myData.science = {nil, nil, 140, 140, "Images/scientist.png"}

--Level keys
myData.levelkey = {
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered