Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

pacman code

edited August 2012 in Code Sharing Posts: 6

Has any one made pacman in codea. And if someone has can you link me the code.
Thanks

Tagged:

Comments

  • SimeonSimeon Admin Mod
    edited August 2012 Posts: 4,837

    Hi @Fr0st

    You can find Pac-Man created by @ruilov here:

    https://github.com/ruilov/Pacman

    A video

  • Posts: 6

    each one of .lua files are classes?

  • Posts: 384

    Yep, @Fr0st. With projects with lots of tabs I find it easier to download them from GitHub with the Zip download option. Then I change the file name to add .codea then I copy it into Codea's Documents folder with something like iExplorer. Beats copy and paste, plus if there are data in the pdata file, you get that too.

  • Jmv38Jmv38 Mod
    Posts: 3,295

    Just tried the code: works fine on ipad1. Thanks!

  • Posts: 10

    Good night

    The files Info.plist and Data.plist in https://github.com/ruilov/Pacman where they fit? in project Pacman in Codea? where?

    Thanks
    Elvio - Alessandria - Italy

  • Jmv38Jmv38 Mod
    Posts: 3,295

    @elvio I am not an expert, I've just left them in the project directory on everything works fine.

  • Posts: 384

    Hi @elvio, the info and data files are generated by Codea for each project. They are the storage mechanism for saved project data. The list file keeps a record of the order of your tabs and the project description I think. @Jmv38 is right, you don't have to worry about them, just move them over as well if you are copying it across to your iPad.

  • Posts: 10

    Thanks for the response Jmv38 and Fred, the project works perfectly without considering the twe files .plist!!

  • Posts: 7

    Can somebody help me? I copied the code exactly and when I attempt to play the game it says:

    error [string " -- this is most of the game logic]: 67: attempt to call method 'setInitT' (a nil value)

    And

    error [string "backgroundC = colour(0, 0, 0, 255)..."]: 31: attempt to index global 'game' (a nil value)

    Please help me. Thanks

  • IgnatzIgnatz Mod
    Posts: 5,396

    @Napalm - this code is two years old, it may need updating

  • Jmv38Jmv38 Mod
    Posts: 3,295

    maybe: the tabs are not in good order?
    Check the order in the .plist file.

  • Posts: 7

    I didn't add the .plist files because when I did it just came up with another error

  • Posts: 7

    I've been able to fix the problem by changing the order of the chapters. Sorry for the trouble and thanks for the help

  • IgnatzIgnatz Mod
    Posts: 5,396

    the plist files contain the correct order the tabs should be in

Sign In or Register to comment.