• DIY Web Browser Game engine

    I would like here to discuss what is the minimum requirement for a self made web game engine. I will not share sources or technologies here, simply list what components are a must have and what should be thought to be added.

    Overall this should help new developers start planning for their own game and avoid the pitall to use a pre-made engine which at the end will prevent them to do what they want.

    You are free to add your own hints to this thread too

    An home page
    Many (way too many) web games simply offer a "welcome page" which contains little to nothing beside a register and a login. I would personally offer all the online help there as well as screenshots, feature list and community links.

    A register and login page

    • Registration must be quick and painless. Forget those "email verifications" which actually end up in the spam folder in the best case. But yet don't be stupid, add some sort of captcha to ensure you avoid bots.
    • Remember to redirect the newly creating account into the game itself and avoid an useless login after registration step.
    • Don't forget to have a password recovery system!
    • Encrypt the passwords on the database!
    • It would be smarter to avoid sending the password in plain text! So use some JS to do a SHA1 or MD5 of it and send it over like that. Same for the cookie, do not store the password as plain text in the cookie and instead use a MD5(MD5(pass)+IP) (or similar) such that even if the cookie is stolen it will not be usable


    Multi language?
    If you plan one day to support multiple languages (which would allow to have a bigger market) you should implement it right from the start.

    Theme
    Make sure you use some sort of template system which would allow you to change the theme or look of your game without re-coding all. For PHP smarty would be an option for example.

    Admin panel

    • Ideally a lot of the game logic / balance / story should be setup via admin menus. Why? Because it allows admins to add more flesh to your game without requiring a coder to modify the code.
    • View users, or even log-in as that user from the admin menu
    • Cross player interaction logs
    • Player gains / loose per day (allows to spot cheaters)
    • Stats about your game


    Chat?
    If you have a chat, then you should have moderators... and way to ban people from the chat or mute or whatever.

    Forums?
    Ideally forums should be integrated within the game but yet accessible from outside. Which mean, you can't create an account inside the forums without being a player, and being a player makes you automatically a forum account. Personally I would host the forums on a different machine, so in case you have some maintenance to do on the game server people can see it from the forums.

    Donations?
    If you pay all, you will soon have to shut down your game. So somehow you must make sure that the game pays itself at least. To do so, an easy way, is to make some items available only against payment. For the payment paypal is an easy solution (but there is others), however in any case you MUST make the payment system automatic, which means as soon as paid the items will be credited to the user, otherwise people will fear a scam.

    Time estimated
    Don't plan to release your game a few days after starting. However don't even plan to code for months without at least some people checking it from time to time. Having people starting to play it before the true release has multiple advantages, for example getting free ideas for your game and pushing you to really release it.

    I would say a couple of month before starting to invite people, and then count 1-2 years before being really ready to say it is up and running.
  • Recent Articles

  • Recent Threads

    The Spirit

    Windows 8

    Thread Starter: The Spirit

    Im currently running windows 7 on my PC but got a free download of Windows 8.
    Im wondering whether I should install it or not?

    What

    Last Post By: Script47 Today, 06:28 PM Go to last post
    LearningCoder

    Selling a copy of my custom script.

    Thread Starter: LearningCoder

    Hello, I am selling my custom game script, it was a base of an old game which was around in 2010, I have got the script and updated it, made it run quicker/easier.

    Last Post By: Script47 Today, 06:17 PM Go to last post
    Smokey

    Max User Connections Error

    Thread Starter: Smokey

    I'm wondering if a shared server is just too small for the amount of activity, which is anywhere from 3 to 14 in the last minute, usually 15 - 30 on within

    Last Post By: Smokey Today, 06:10 PM Go to last post
    Magictallguy

    Gang Kidnap

    Thread Starter: Magictallguy

    This mod was requested by Bennyh789 on this topic

    Gang Kidnap
    Edit gangs.php
    Find

    Last Post By: Magictallguy Today, 05:23 PM Go to last post
    jaymo

    Do you listen to music when coding?

    Thread Starter: jaymo

    Its something which I couldn't used to be able to do as It would be very distracting but over the years I have started to listen to music while I code,

    Last Post By: rjddev Today, 05:13 PM Go to last post
    illusions

    Music

    Thread Starter: illusions

    Just thought id share my very first full track with you all most tracks i create are very short so i thought id put some effort into this one..

    Last Post By: jaymo Today, 04:54 PM Go to last post
    Isomerizer

    3 Word Game

    Thread Starter: Isomerizer

    You've all probaly seen it before, So i decided to make this game on this forum, This game is allways fun.


    Rules: You create

    Last Post By: jaymo Today, 04:30 PM Go to last post
    Turkeylover

    Am I being scammed?

    Thread Starter: Turkeylover

    Hello, I come across this site by chance and I hope it can help me.

    You won't if heard of the game but it is www.endoftimez.com it is

    Last Post By: Dominion Today, 04:17 PM Go to last post
    dnenb

    [For hire] Paypal, ZayPay and TrialPay integration

    Thread Starter: dnenb

    Hey guys,

    I need some money to advertise my game for, so I'm offering to implement paypal, zaypay and trialpay to games for a fee if there's

    Last Post By: dnenb Today, 04:04 PM Go to last post
    realmoflegends

    [For Hire] Writing for your games

    Thread Starter: realmoflegends

    Hello all,

    I'm looking for a bit of work and extra cash, so i'm offering my writing services for your games. From 'Crimes' flavor text,

    Last Post By: realmoflegends Today, 03:48 PM Go to last post