Jump to content
MakeWebGames

Simple Game Engine


Pheonix

Recommended Posts

I have modified a more complex game engine into a very simple game engine. I do not remember the original game engine source or I would give them credit. I am making it free and open sourced. It is basically a registration system with monster hunting and resting in a house to restore energy. You can download it here: http://ditto.freewebhosts.com.au/test/simple.zip The hunt.php, home.php, and timer.php are mostly my own code. I have a few other mods I created as well. There is a game advertising script and a top player script. I am releasing it because I want to see what people will do with such a simple game engine. If you are a better coder than I am, perhaps you can make it even simpler or cleaner.

Link to comment
Share on other sites

function userdata($ir,$lv,$fm,$dosessh=1)

{

global $c,$userid;

$ip = ($_SERVER['HTTP_X_FORWARDED_FOR'])

? $_SERVER['HTTP_X_FORWARDED_FOR']

: $_SERVER['REMOTE_ADDR'];

mysql_query("UPDATE users SET laston=unix_timestamp(),lastip='$ip' WHERE userid=$userid",$c);

Mccodes..... insecure version at that.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...