Results 1 to 6 of 6

Thread: Snowboard - LUA

                  
   
  1. #1

    Default Snowboard - LUA

    Hey i tryinmg to port my own game i made in shockwave a couple of years ago....

    http://www.maclabbet.com/badmongo/game

    I have managed to get the player to move.
    and a lot of stuffs but i have problems with image collision.

    can some one please help me with image collision.
    and randomizing the trees and stones.?


    here is the game .
    http://www.maclabbet.com:16080/badmo...ler/sdhlua.zip

  2. #2
    GP2X Coder/Moderator
    Join Date
    Jan 2006
    Posts
    1,678
    Rep Power
    87

    Default

    Image collision: See several threads down for my box collision snippet.

    Random Scenery: Use/Create a random number generator to choose between a tree/rock and place it on the slope (off screen) at a random position.

  3. #3

    Default

    i looked at your box collision snippet.. but to hard to implent in my game... but i managed to fix it anyway.

    a bit simpler but its working...

    anyway now i have an other question. can you call an php script on an webserver....

    like this. http://domain.com/luahighscore.php?name=xxxxxx&score =xxxxx

    and can i then read the highscore from a TXT file stored on a webserver?

  4. #4
    DCEmu Coder dalejrrocks's Avatar
    Join Date
    Feb 2006
    Location
    Alabama
    Age
    34
    Posts
    240
    Rep Power
    71

    Default

    i don't think you can do a php script. but take a look at netlib 2.0. it might help. why would you want it on a server? you can make a file that stores it.

  5. #5
    GP2X Coder/Moderator
    Join Date
    Jan 2006
    Posts
    1,678
    Rep Power
    87

    Default

    If you want to keep the high score, then there are functions in Luaplayer that can read and write to files on the memory card.

  6. #6

    Default

    ok i eill try to make some kind of highscore. .. but i think it will be cool. to have an higscore for everyone online.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •