PHP Gaming: Part 4
Just a note before I begin, I'd like to tell you that these tutorials should be used for learning not for simply taking code from. Putting these tutorials together will not make an entire game for you, they're just outlines to guide you along the way. Just taking code from them and not trying to learn or understand what's going on will not help you at all.
With that out of the way, let's begin . This tutorial will be on an attack system which is always a fun thing to have in a game. It will be focused on an army vs. army style as opposed to a unit vs. unit style that you may get from other kinds of RPG games.
To begin, here is a form that will initiate the attack. You would target this to your attack page, so for now lets call this file start_attack.php. Note: this is not a complete file, just the form that would go in it.

| Hits: | 246 | Last Updated: | 2006-07-08 |
VIEW ALL
PHP Tutorials