News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Pádraic Brady's Blog:
Redux First Official Code!
October 19, 2006 @ 08:28:00

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.

0 comments voice your opinion now!
game online skeleton class grid map manager game online skeleton class grid map manager


blog comments powered by Disqus

Similar Posts

Maarten Balliauw's Blog: Office 2007 SpreadsheetML classes in PHP

Symfony Blog: Welcome to the new symfony 1.0's release manager

Pierre-Alain Joye's Blog: Zip 1.7.0 Beta Release & New Zip/Enchant Documentation

Aaron Wormus\' Blog: PHPBB on list of Best Open Source Websites

Berry Langerak's Blog: Getters and setters: evil or necessary evil?


Community Events





Don't see your event here?
Let us know!


unittest symfony2 laravel podcast threedevsandamaybe testing interview api community developer refactor install framework introduction series release code opinion list language

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework