counter
Currently browsing php Software


Articles on php Software

Company News

Tags: — Hawk on June 27, 2008 at 3:16 am

Hawk enterprises has been working feveriously on their new releases adding in those last programming and graphics that will set these projects apart.  We have also taken in two large contracts that have been eating immense amounts of time.  We appreciate everyone’s patience and our final product should be worth the wait.

PHP AJAX CHAT updates text run-off problem

Tags: , , — Hawk on May 13, 2008 at 6:06 am

As one of my audience so nicely pointed out we have a text run-over problem.  These are generally easy to fix, I tend to use a three prong approach.  For me I felt 30 characters was a good length.

First run

ALTER TABLE `chatbox` CHANGE `message` `message` VARCHAR( 30 )

This will fix it at the database level, but we don’t want it to even get that far so next we change the maxlength of the input. (more…)


PHP Pentago, Determine Winner, Win State algorithm

Tags: , , — Hawk on May 11, 2008 at 4:36 am

Pentago is a great strategy game and certainly fun to play. Basically it’s played on a 6×6 grid that is made up of 4 3×3 quadrants that can rotate once after each turn. The idea behind the game is to get five marbles in a row. Building an interface should be fun but for those just interested in the algorithm to determine a win state for Pentago in php.

(more…)

PHP Strategy Game BattleNow (a few updates)

Tags: , , , — Hawk on May 8, 2008 at 5:05 am

Battle now is going to be our first attempt at a strategy style game.   After today we have developed a simple tile system.   Here is some of the code below.

For you who haven’t heard or forgotten, Battlenow is going to serve at the base level for a open source battle simulator.   The plan is to have Generals with various rank, movement, intelligence, charm, war.  There is also going to be hopefully some various weapon or military classes such as arterial (probably catapults), mounted units (probably rangers) and foot units (probably knights).

Turn based php game is what we will be shooting for, however it’s going to have the initiative system much like the older final fantasy tactics.  You will have a queue and depending on your wait time will determine when your general will have his turn.

Forts, Castles, and different terrain all over different stats such as defense and movement.    There is plans between levels to have a down/upgrade time for the next battle as well as in-game upgrades.   Some code is below.

(more…)


Page 1 of 3123»