Small game 2

Hello guys, here is my second game made in Codea. My sprites and music replaced with default content. Hope this game will catch you for a couple of minutes. Enjoy!

Gameplay : you must stay alive as long as you can

Joystick class made by Dave1707

Background class made by West


supportedOrientations(LANDSCAPE_ANY)
displayMode(FULLSCREEN)
function setup()
    http.request("http://pastebin.com/raw.php?i=n6nMmH68",
        function(d) loadstring(d)() setup() end,
        function(e) print(e) end
    )
end

Nice game, but a slight suggestion. In the code you posted above, instead of using loadstring(), use saveProjectTab() so people can play the game offline too.

@Saturn031000 thank you , i tried to post all code, but forum can fit it in one message. I played with saveProjectTab() , but failed. Can you adit code above to make me understand how it works?

loader made by: jmv38.
lol

function setup()
    local tab = "zLupino"
    print("wait......")
    http.request("http://pastebin.com/raw.php?i=n6nMmH68",
  --      function(d) loadstring(d)() setup() end,
        function(d) 
            saveProjectTab(tab,d) 
            print("ready! restart the project")
            tween.delay(2,close)
        end,
        function(e) print(e) end
    )

end

@Jvm38 huh, thank you. I cant do not write credits of people who helped me :stuck_out_tongue:

You can also add a restart() to automatically restart it.

fair enough?why just run the 2nd tab?not run the 1st?how to format code?why not install?

@firewolf Firstly i want break my code to classes, but then i decided to make all things in second tab. If you want ill add commends to my code, also you can go open link in my code (pastebin) and copy it or use jvm’s code to download my project.

So theres answers, if i correctly understand you

i mean after using jvm’s code to download your project, why just run the 2nd tab?not run the 1st?how to format code?why not install?

@firewolf guess because we already have zLupino tab , so we dont need to use download tab anymore. I think @Jvm38 can make it clear to us

@Firewolf as lupino says, this is good enough. The objective (to get an offline version) is fullfilled. But feel free to make a better version and share it with us, if you want.

sorry?i think u might have a better version and explain them.