phpgame phpgame
PHP Game
phpgame phpgame

So you want to make a PHP Game


This is a basic guide through of what you may need to do to make your own web php game.
17th December 07

I believe you are just another one out of thousands web game fans out there who are eventually wanted to make your own web game. Making you own web game and running it online is indeed fun and is more challenging than playing some web games itself.
But before I would even touch the topic 'How to make a web game', I just wanted to know how much you would willing to sacrifice onto such project? Not in terms of money but I mean in terms of time and effort. 1 month, 3 months, 6 months or 1 years?
Making a web game is a big project, eventhough if it was only a simple web game with a few basic functions. It would takes months of time just for the preparation and another few months to do the programming, debugging, testing and balancing before it could be put into real test. Unless you are really good in web programming or have a team of professionals for the project, you ain't going to have a web game within a couple of months time.

So, you got to have abundance of time(several months or even years), really hardworking and are very passionate about making your own web game. Otherwise, just get on with your life playing web games instead.

Still Eager to make a web game?
OK, assuming you know nothing about making web site and programming. You just have no clues what to do and where to start building your web game project and yeah, you've got the time!
This is what you should do;
Forget about php programming and learn HTML and CSS to make a static web page. You shouldn't run when you can't even walk. Start from the basic!

Learning HTML and CSS
You don't need any special program or software to do this, just use the notepad (for windows pc) available on your computer and start hand coding a webpage using HTML tags and some CSS. You may find it troublesome to hand code a webpage at first but when you go further down to PHP programming, it would even takes more hand coding job. Your objective now is to make a web page template of the web game you wanted to do, just imagine how you want the main page of your web game to look like.
There is a whole list of websites out there where you could get tutorial about HTML and CSS for free. w3school is a good website with extensive tutorials for all web programming language.

Also, you would like to participate on some webmastering community discussion to learn more and ask question when you run into any problem.
HTMLForums is a good webmastering community forums to discuss about everything you need to become a webmaster.

Document your web game project.
I'm sure you already have some idea of what kind of web game you wanted to make. So, get the pen and paper and start document your project. Jot down all the information and details about the game. Draw some images or interface of every function of the game.

A good detalied game document would ensure you to have a smooth work during the game programming phase. If you think you could just rely on those idea in your brain and get on with the programming without document then that would be something really really bad. That is what exactly I did when I firstly developing my own web game. The idea in my brain seems perfectly nice that I jump into programming instantly. Everything seems to be functioning accordingly but eventually those ideas in my brain got depleted, and my game is still not completed!
I tried to think and think and think for new ideas but it end up with a lots of modification and re-programming work and somehow, I dropped the the game.
So, don't start progamming a game until you have prepared enough detailed information about the game.

Get started with PHP
As you started to learn PHP programming, you need to install a server environment on your computer in order to execute the PHP files. There are many easy installer program out there which could do the job with only a few simple steps.
XAMPP
EasyPHP
WAMP

Once you have installed the web server program on your computer, you can start executing php scripts from your computer as well as managing your MySQL database to develop your project.

MySQL
While PHP acts as your dynamic script in executing functions and producing output to the end user, MySQL is a database program. You need to have a database to keep all kind of information in your game such as accounts information, characters, weapons and so on. All server program comes with phpmyadmin which is used to manage your database.

As you learn up more and more PHP functions, you could start to do a few simple php function such as creating a login system with the integration of MySQL database, an account signup system and so on before you could get into your game system programming.

<< Previous Entry · · Next Entry >>

Comments


*Name
Homepage
*Your Comment Here

9 + 14 =