In a new tutorial from the IBM developerWorks site starts off a new series looking at creating some games, from start to finish.
PHP is an easy-to-use, easy-to-learn, widely accessible programming language. It's well suited for developing simple scripts you can use to help you in all kinds of games. Whether you play simple pen-and-paper games by yourself, complex tabletop role-playing games with a group of people, or online games of any kind, this series will have something for you. Each article in this "30 game scripts you can write in PHP" series will cover 10 scripts in 300 words or less (3d10 stands for "roll three 10-sided dice") simple enough for even a beginning developer, but useful enough for a seasoned game player.
The ten scripts they walk you through are things like a die roller, a name generator, a deck builder/shuffler, a poker dealer and a crossword helper.
Paul Reinheimer has posted about a contest in the making - a turn-based robot battle sort of game where PHP scripts compete against each other.
Just a quick announcement, in an effort to come up with a self scoring contest, I came up with the ridiculously simple concept of robots firing lasers at each other in a fictional arena. Each robot controlled by a different PHP script, and a central arena managing it all. It's basically a turn based game where your robots take turns for you.
You can check out more about the game and its rules over on the Web Bot Battle site. It defines how your bots should act and even has some examples for you to work from.
Troy McCormick has pointed out a new game he's developing combining the CodeIgniter PHP framework, MySQL and the ExtJS library - ExtJS Poker.
ExtJS Poker is a Texas Hold'em Poker game programmed using PHP (Codeigniter), MySQL, and ExtJS. check out the early screenshots on the SourceForge project page.
ExtJS is a cross-browser Javascript library that helps you build rich internet applications with high-performance widgets, an extensible Component model and licenses to fit your use. CodeIgniter is a PHP framework with a very small footprint created for programmers who need a simple and elegant toolkit to create full-featured web applications.
The results from the latest poll the International PHP Magazine posted this past week are in. This time, they asked which of the options they gave was the visitor's most favorite PHP-based game.
Two options got the majority of the votes - 34.7 percent for Alien Assault Traders and the ever-popular catch all option "None". Other games that were included in the list were things like phpDiplomacy, Solar Empire, Star Trek Allegiance, and Solar Empire. The rest of these options all had around 5 percent or lower of the votes.
In their latest poll, though, they move back into the usual web development arena with the question "Which is the Best Tip for Creating a Web Application in PHP?". Options include using page/object caching and implementing gzip compression.
The International PHP Magazine has posted the results of this past week's visitor poll asking "Which Feature Is Not Suitable for phpDocumentor?"
Of the choices, the "None" option got the most votes (33.3% in fact) followed at a large margin by "Fully customizable output with Smarty-based templates" and "Generates a todo list from @todo tags in source". The users have spoken and they think phpDocumentor is flexible enough to handle everything from outputting in HTML/PDF formats to having a web and command-line interface.
This week's poll question asks about something a little more common - which of the items in the list are your favorite PHP game (and yes, there's "All" and "None" options). Check it out and cast your vote today!
Pádraic Brady, developer of the (work in progress) PHP-based strategy game Astrum Futura has posted today with the results of his look at a ranking of current PHP-based games and their popularity.
Sometimes I find it useful when measuring what's being downloaded in terms of open source PHP games to look at the top 10 rankings on Sourceforge for each gaming category. I say sometimes, because it tends to be fairly unreliable and doesn't really reflect real usage online.
Games on his list include Solar Imperium, Alien Assault Traders, PHP RISK and number one on the list - phpDiplomacy. Each item on the list includes the Sourceforge ranking against all other projects.
Pádraic Brady is back today with another update on the game he's working on and his latest addition - the stars and planets ("bodies").
Planets and Stars ("Bodies") form the central hub around which the majority of a player's activity will center. This planning document addresses the generation and mapping of these entities, and not their individual contents, facilities or uses.
In the continuing development of his online PHP-based game, Pádraic Brady has created a simple class to help with mapping out the objects/structures in the game. He shares the code for this in his latest blog post.
The code sets the stage for the Redux mapping system. Basically, we're aiming at a grid-based map with each grid coordinate representing a Sector.
Right now, it's just a skeleton structure, but it already has some of the key bits of functionality in place. The Redux_Map class manages the requests coming back and forth between the client and server, and the Redux_Map_Grid class helps to generate a grid structure of the objects found in that sector.
He even includes the unit tests for testing the Redux_Map_Grid class to ensure everything's in tip top shape. Next on his list is adding actual entities to the game - planets, facilities, etc.
Aaron Wormus notes in this new blog entry about a client-side card game he's been introduced to that comines great graphics, a smart AI and a powerful combination - PHP5 and the Winbinder library.
I remember the WTF moment I had a couple years ago when Frozen Bubble was released. The game was nice but the awesome bit was the it was based on PERL, which was my programming language of choice at the time.
I had that moment again this morning when an email arrived in my mail box from Rubem Pechansky (The WinBinder Guy) where he announced his Worldcup 2006 card game which is based entirely on PHP5 and Winbinder.
The game, 32cards is a digital card trading game with tons of data about each country for each card. On each turn, the topmost card is uncovered and five stats are compared. The player with the highest stats wins and points are awarded. You can gabs this great example of how flexible PHP really is (and try out a pretty cool game) by heading over to their site and grabbing the download.
From the Professional PHP site today, there's an interesting new post about a game the author found (via digg) of "Heroes of Might and Magic" online minigame. What makes it even cooler? It's written in PHP and uses Prototype and Scriptaculous for the interface.
The interface is very drag and drop oriented and it uses Ajax to update game status. The graphics are very good. No flash as far as I can tell.
Their server is getting crushed right now, intermittently not responding and running out of MySQL connections. The javascript crashed my browser a couple times. Still, I was intrigued by the combination of Ajax and PHP and I liked the interface. Definitely one to bookmark for later.
The game is a bit less overloaded now, but still a bit slow. The interface is wonderfully done, and easy to understand. It's great to see the popular pairing of Ajax and PHP starting to show up in commercial applications, too.