Top Secret Task

I don’t know the time zone the competition, but the second last day was yesterday, and @Sky entered 20 minutes before me

Hello competitors! I recall you that the project has to run on ipad1, and i cant have CC work properly on ipad1. Can you post a link to you code in CC (in this case i can manage to get it), or post it in the forum? Thanks.

Here it is!

function setup()
    Clip = 4
    ClipMax = 4
    Extra = 16
    supportedOrientations(LANDSCAPE_ANY)
    cameraSource(CAMERA_BACK)
    parameter.integer("Zoom",1,5)
    print("Sniper Rifle Scope\
"..Clip.." / "..Extra)
    end
    function draw()
        sprite(CAMERA,WIDTH/2,HEIGHT/2,WIDTH*Zoom,HEIGHT*Zoom)
        fill(255, 255, 255, 0)
        stroke(0, 0, 0, 255)
        strokeWidth(10)
        ellipse(WIDTH/2,HEIGHT/2,WIDTH,HEIGHT)
        ellipse(WIDTH/2,HEIGHT/2,7)
        strokeWidth(1.5)
        line(10,HEIGHT/2,WIDTH-10,HEIGHT/2)
        line(WIDTH/2,10,WIDTH/2,HEIGHT-10)
        line(100,HEIGHT/2-10,100,HEIGHT/2+10)
        line(WIDTH-100,HEIGHT/2-10,WIDTH-100,HEIGHT/2+10)
        line(WIDTH/2-10,HEIGHT-100,WIDTH/2+10,HEIGHT-100)
        line(WIDTH/2-10,100,WIDTH/2+10,100)
        line(WIDTH/2-10,300,WIDTH/2+10,300)
        line(WIDTH/2-10,HEIGHT-300,WIDTH/2+10,HEIGHT-300)
        line(300,HEIGHT/2-10,300,HEIGHT/2+10)
        line(WIDTH-300,HEIGHT/2-10,WIDTH-300,HEIGHT/2+10)
        fill(255, 255, 255, 255)
        fontSize(20)
        text("Zoom: \
    "..Zoom,60,60)
        if Clip <= 0 then
        Clip = 4
        Extra = Extra - ClipMax
        end
        if Extra < 2 then
        fill(255, 0, 0, 255)
        text("LOW AMMO",WIDTH/2,500)
        end
        end
        function touched(touch)
        if touch.state == ENDED then
        Clip = Clip - 1
        print(Clip.." / "..Extra)
        sound(SOUND_HIT, 32786)
        end
        if Extra < 0 then
        Clip = 4
        Extra = 16
        end
        end

Thanks @codeanoob. However, what can i say…? Here is what i read on my iPad1

Camera functionality is not available on this device.

… :-w

Here mine is: http://twolivesleft.com/Codea/CC/alpha/index.php?v=1243

If @CodeaNoob’s project doesn’t support iPad 1, do I win? :stuck_out_tongue:

@SkyTheCoder haha no I’ll judge @CodeaNoob’s :))

@CodeaNoob I’m pressing fire but no bullets are coming out of my iPad!

Fix: Take Drill, Drill hole in top right of iPad, press “Fire”

@CodeaNoob Thanks, works great now :wink:

@Codeanoob ok.
Lets make that drill… Zzzzzzzz! Plic.
Nwot swure thwat wworked. Wwhewe isw thwe fwire bwutton?

Hmmmmm @Jmv38, did you yell the magic word?

What? Do you mean ??? ??? ???

More like: ???

Actually… You’re at 99. also please refrain from foul language

Is that Thai?

This is greek ??? ? ??? ??? ??? ???..

Japanese actually

That was my second guess soooo cloooooseeee

This is canadian: We Canadians travel aboot the hoose with our maple syrup, eh’

I should have known that…