Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > General > PHP Games

PHP Games Like Games?, Like PHP?...

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2007-02-28, 03:57 AM
Junior Member
 
Join Date: Feb 2007
Location: USA
Posts: 4
xELITEx is on a distinguished road
Send a message via MSN to xELITEx
Default Making A PHP Game

Ok so this has probably been asked about a hundred times but I searched and didn't find anything so here goes:

If I want to make a PHP browser based game, how to I go about starting it? I am brand new to PHP and I'm just guessing at how to make Races with certain stat bonuses. Just an example, how would I do this:

Human - 10% income bonus
Elf - 10% defence bonus
etc.

If anyone can offer any advice on how to learn PHP and make a game, please let me know. Thanks!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 2007-03-06, 05:49 PM
Junior Member
 
Join Date: Feb 2006
Location: England
Posts: 19
hi_118
Send a message via MSN to hi_118 Send a message via Yahoo to hi_118
Default

Try starting from an pre made game it will be much easier, just study the code a bit
Reply With Quote
  #3 (permalink)  
Old 2007-03-06, 11:10 PM
Junior Member
 
Join Date: Feb 2007
Location: USA
Posts: 4
xELITEx is on a distinguished road
Send a message via MSN to xELITEx
Default

where could i find a premade game?
Reply With Quote
  #4 (permalink)  
Old 2007-03-08, 04:09 AM
Junior Member
 
Join Date: Dec 2005
Posts: 11
schingeck
Default

dude, php is easy to learn, and when you know php, a game is easy to make if you know your algebra. Look for a book known as, "building a database driven website using php and mysql" something like that, it's found on sitepoint.com or something, it's a GREAT book! It teaches you all you really need to know, how to use a database to store data and how to use php to retrieve, store, show, and manage that data = ally ou need to know to make a game besides basic math equations to calculate damages and etc. also, take some basic tutorials on the web to familiarize yourself with php and the math in php and etc. the math is easy you just need to k now how to do it. Look man, I learned it all when I was 12, it's a learning process, making a game willt each you a lot it'll just be harder when you first start, don't give up though, just be patient. that is my advice.

Add me to aim rabidzombiecows, msn: schingeck@gmail.com, or yahoo rs13141, and i'll answer your questions if you need help with php codes or whatever.

Just think of it this way.

You have a variable in algebra usually x but it can be anything. You also have a function f(x).... lets look at it this way: a x in php could be represented as $x -> you must use a dollar sign as a variable so your browser can see it is a variable. You can name it anything, as long as it is $something.

You have your math, $something * $anothervariable, $something/$anothervariable, $something - $anothervariable and so on.

Your functions are also simple, just get in the habit of functions, they may seem hard but in reality think of algebra you have a function:

f(x) = x^2+x+2

well the same function in php would be
function math($x)
{
$x^2+$x+2;
}

a function in php is just a group or selection of code that you wish to run as a group. like it would be easier to just write a function then rewrite your codes over and over again and it allows you to insert A LOT of coding/calculations into a single space.

Just get in the habit of looking at php as a math with many different functions. Programming is nothing but a calculator with advanced functions.
Reply With Quote
  #5 (permalink)  
Old 2007-03-08, 04:25 PM
Junior Member
 
Join Date: Feb 2007
Location: USA
Posts: 4
xELITEx is on a distinguished road
Send a message via MSN to xELITEx
Default

ok thanks a ton for the help. i've been looking all around at guides and all that. i added you to my msn so if i have questions we can talk. thanks a ton!
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.0 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.0 (a popular PHP IDE) and NuCoder 1.4 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:19 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.