hawk enterprises portfolio
hawk enterprises portfolio
hawk enterprises portfolio
hawk enterprises portfolio
hawk enterprises portfolio
hawk enterprises portfolio
hawk enterprises portfolio
hawk enterprises portfolio
hawk enterprises portfolio
hawk enterprises portfolio
hawk enterprises portfolio
hawk enterprises portfolio
hawk enterprises portfolio
hawk enterprises portfolio
 
counter
Select Country/Language FrancaisDeutschEspanolItalianoPortugeseJapaneseKoreanChineseArabicRussianEnglish
Current Projects
portland paranormal.com
xxk search
battlenow
bighawk casino
Hawk Enterprises News

PHP AJAX CHAT updates text run-off problem

Tags: , , by Hawk on 05.13.08 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. (click to continue)

PHP Pentago, Determine Winner, Win State algorithm

Tags: , , by Hawk on 05.11.08 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.

(click to continue)


Hawk Enterprises offers Free Link Exchange

by Hawk on 05.11.08 4:26 am

Free Link Exchange offered by Hawk Enterprises.  That’s right free.  We decide with so many requests it was just best to setup an exchange service.   Our Link exchange is over at this address

Free Link Exchange

PHP Strategy Game BattleNow (a few updates)

Tags: , , , by Hawk on 05.08.08 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.

(click to continue)


Page 1 of 2112345»...Last »