Web Game Builder - Build the game of your dreams
HOME NEWS & ARTICLES FORUMS GAME SHOWCASE DOWNLOADS SHOP LINKS CONTACT
Register now    Login
Login
Username:

Password:


Lost Password?

Register now!
Main Menu
Advertisements


Join the Revolution!
Download Firefox
Search


XOOPS : Five Useful Thoughts while Programming your Game
Posted by admin on 2004/3/26 10:37:17 (4954 reads)

ForgottenCreature said "While programming my online game, Forgotten Creatures, I made many mistakes, some careless, some not. Most of these were small, and easy fixable, but had great impact on the game. It is important to look for these mistakes before you implement a program into your game. In this section I will discuss a few of these and what you should try to look for.

1) Currency Issues
A. Negative Money (deposits, transactions, and purchases)
It is very important to make sure you watch out for these little bugs. In many programs I have forgot to write a simple line of code which tells the system to make sure the amount of an item they interact with is not a negative number. Incase you do not know here is basically what I use:


0) {
DO EVERYTHING NEEDED
} else {
echo "Error....";
}
?>


Some common places I have found this to be a problem is in a bank system, and market places. If you have an option to transfer something into someone's account make sure you cannot transfer negative of that item. If you can it will take away the other player's item and give it to the user making the transaction. These mistakes can lead to inflation of your game economy. Always watch for this, and you should have a well-run game.

B. Item Prices
Another thing I noticed while working on my game was setting up a game economy can be very difficult. You must visualize what you want in your game and make it happen. Think about how much money you want the average user to have, and then set the item prices. A great way to do this is playing your game yourself. See how much money you can get and then think about a fair price for an item. This can be a very difficult process but it is vital and necessary.

2) Security
A) Login and Signup
So you think you have the perfect login and signup scripts? Think again. You may have forgotten some things that decrease your games security. These are not difficult things to notice, but you may have slipped up programming at 2am and missed it. Here are some things I slipped up on.
I) Multiple User Protection
Make sure you check for the email, make sure it is not a duplicate.
II) Activity
It's always a good idea to send a validation code/link to the user's email just to make sure it is valid.

These are just some thoughts I have on the security of your login and signup. I'm sure there are much more.

3) User Interactivity
This is basically a suggestion. You should make things to do in the game, which are interactive to the user; especially if your game is text-based. Try to make sure a user can occupy themselves for 30 minutes or more. A user will get bored if they run out of things to do. If they do the same things every day and there are not any other objectives in the game they may stop playing the game. Try to update frequently, and provide interactivity.

4) Excellent Management
Every game needs management. You will always find those people who try to cheat, lie and spam people in your game. No body likes these people, but lets face it; we cannot stop it. To protect your game you will need management who are on at all times with their ears open. It is important your members respect these administrators, or they may get sick of the job. Don't just pick your friends, try to find loyal, active members and reward them with these powers.

5) Patience
Patience........Patience, patience, patience. A key role in programming your game. Things may go wrong and some things may go right. You should never give up unless you cannot run the game because of financial problems, or just problems in your life. Yep, I admit it; Many things go wrong! Your game may seem like its going well, then all your players may leave. Just remember that hard work will get good results. Keep working and eventually, things will go your way.

Printer Friendly Page Send this Story to a Friend





 


© 2006 Web Game Builder  |  Sponsored by Phone Service |  And by Voip Phone Service |  And by DishNetwork