PHP Game Programming (book)

All development related reviews. Engines, Tutorials, books, ect.
Post Reply
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

PHP Game Programming (book)

Post by Jackolantern »

"PHP Game Programming" by Matt Rutledge - Rating: 3/10

This is actually the book that made me think about a reviews section. I was initially drawn to this book when I was wanting to learn PHP game programming (to supplement Halls' tutorials), mostly because it is the only book out there on the subject that I am aware of.

Stay away from this book! It is outdated, so the object-oriented PHP is going to act quite differently than today. There is also a large issue with database usage. Why Rutledge decided to skimp on the explanation of using relational databases, I will never know. It is no small part of the subject, and almost everything you do when coding a PHP game relies on MySQL, or another relational database. For much of the book, the author uses flat files, which are not robust or scalable. Maybe when the book was written a PHP game could only be expected to have a handful of users, but times have changed, and there is really no valid reason to not start with a full relational database. If you don't, you are only making it harder on yourself later.

Also, what would likely be considered the major draw of the book, the section on PHP MMOs, is short with a very simplistic example game called "Kiddy Kartel". It is a very basic crime game. The problems here is that it only has extremely simplistic gameplay (not really even enough to consider it a full game) and it is also the first section of the book that brings up relational databases, so if you are not already familiar with them, this will all be confusing. The example project also uses a custom game library that the author does not explain, and instead only offers as a download on some website that was not available when I tried to go to it. The game is not complete by any stretch of the imagination, and the author simply says things like "you should see how this is done now, and should be able to expand it".

I am glad that I didn't waste money on this book, considering that I read it on Safari Books Online. Halls's tutorials have much more info than this book, use MySQL from the start and don't use custom libraries. Anything else you may need for custom features can usually be pulled off the internet.
The indelible lord of tl;dr
ZeroComp
Posts: 648
Joined: Thu Oct 29, 2009 8:48 pm

Re: PHP Game Programming (book)

Post by ZeroComp »

Tommorow I'll post a review for Andy Harris's PHP 6/MySQL for the absolute beginner: Through simple game creation :)
Coding-PHP, Javascript, C++, HTML, mySQL
Modeling/Art-Blender, GIMP
Games-Unity, Game Maker 8
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: PHP Game Programming (book)

Post by hallsofvallhalla »

haha I am glad you posted this review for I too got suckered into this book and found its downfalls quickly. This book was a inspiration to my own tuts. This and the Torque books. I got sick of no real world examples. The Kiddy cartel example was terrible.
ZeroComp
Posts: 648
Joined: Thu Oct 29, 2009 8:48 pm

Re: PHP Game Programming (book)

Post by ZeroComp »

I'm trying to study object-oriented right now in both PHP and C++ and it's challenging in C++but not so much with PHP.
Coding-PHP, Javascript, C++, HTML, mySQL
Modeling/Art-Blender, GIMP
Games-Unity, Game Maker 8
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: PHP Game Programming (book)

Post by Jackolantern »

ZeroComp wrote:I'm trying to study object-oriented right now in both PHP and C++ and it's challenging in C++but not so much with PHP.
Well, PHP is called object-oriented, but it really isn't 100%. Also, multiple inheritance needlessly makes C++ OO harder to learn :P
The indelible lord of tl;dr
Loopy

Re: PHP Game Programming (book)

Post by Loopy »

Also got suckered into this book years ago, and also was disappointed. I actually had dialog with the author for months before it came out and he got me really excited about it... and then it just sucked big time.
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: PHP Game Programming (book)

Post by Jackolantern »

ZeroComp wrote:Tommorow I'll post a review for Andy Harris's PHP 6/MySQL for the absolute beginner: Through simple game creation :)
Looking forward to that :) I forgot that the absolute beginner book series is focused on teaching through game development. Interesting!
The indelible lord of tl;dr
User avatar
KunoNoOni
Posts: 61
Joined: Sun May 09, 2010 1:54 am

Re: PHP Game Programming (book)

Post by KunoNoOni »

I've read/watch Andy Harris's PHP 5 and MySQL for the absolute beginner. Its how I learned PHP/MySQL! You can watch the videos that I learned from here although they are for the previous book (php 5). I will warn you now that they are done using old tech, they are Real Media files. I know that nobody uses that anymore, but I encourage anyone looking to learn PHP/MySQL to watch the videos then read the book.

For those that are interested Andy Harris is a teacher as IUPUI (Indiana University / Purdue University, Indianapolis). He has taught there for many many years and I have watch many of his classes. I've learn PHP/MySQL and Python from him.


Just my 2 cents...

-KunoNoOni
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: PHP Game Programming (book)

Post by hallsofvallhalla »

awesome thanks for the link!
Post Reply

Return to “Development Related”