Advertisement Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

PHP as a game programming language?

Sign in to follow this  


I purchased a book on amazon called "PHP Game Programming" because the idea of writing games in PHP intrigued me... and the book was on $3 so I thought I'd give it a try. After finishing the book, I have to say that PHP is particularly poor as a game programming language. But in order to feel that I had not completely wasted my time, I threw together this stupid little Aquarium Game. It's not much, but then again PHP can't really do much.
Sign in to follow this  


Recommended Comments

I would not disagree. I may spend more time to make it nicer later, but PHP is pretty limited, so I would probably have to add either javascript or Flash to make it something worth playing.

Share this comment

Link to comment
I've never played KOL, so I'm not sure if it has much in terms of graphics. I didn't like PHP because it is difficult to animate anything. Also, just to rotate or mirror the fish images was a big pain in the arse. I'm sure if I spent a while on it I may figure out ways to get it to do more sophisticated things, but just to get it to do very basic graphics was a pain.

Share this comment

Link to comment
As I understand it, PHP in game programming is best for text based RPGs with simple graphics.

For anything else, Java applets or Flash would be better.

But for $3? At least it taught some PHP[grin]

Share this comment

Link to comment
Yeah... I went out and bought a book on flash. But $650 for the pro license is a bit pricy for me. [sad] BTW, I have a book on PHP I'm selling for $3 to anyone who's interested (+$3.50 S&H).

Share this comment

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!