Jump to content
xisto Community
Sign in to follow this  
chelcy

PHP Games

Recommended Posts

I was wondering (and also wanted to ask the PHP experts, since I'm not :P ) about those PHP games, the turn-based strategy games like Kings of Chaos, Dark Throne, etc...Is there a set of code or better yet a tutorial that tells how to create PHP games, or you just have to learn PHP and utilize what you learn?I'm afraid it might be the second one... B)

Share this post


Link to post
Share on other sites

Is there a set of code or better yet a tutorial that tells how to create PHP games, or you just have to learn PHP and utilize what you learn?

Dosn't it mean the same?

No matter what, beofre you can make a PHP game, you have to be familiar with PHP whatso ever. If you are talking about a piece of code, isn't that copying?

Share this post


Link to post
Share on other sites

No matter what, you'll need to know PHP.What do you want to do with PHP? Do you want to allow people to play against each other? If that's the case, you'd probably have to use sessions or cookies, but that's all the advice I can give you. I'm not an expert on PHP by any means.

Share this post


Link to post
Share on other sites

PHP wouldn't be good for making games unless you wanted a turn-based online game or something similar. Flash seems to be popular if you don't need a very sophisticated game that you want to distribute on the web (also gets around the concern of virii being hidden in .exe files). You might also want to look into Java applets.

Share this post


Link to post
Share on other sites

I have one game without graphic or Flash.It is called War of Angels,with template and photoshoped logo.But now i destroyed the file for playing so you when you will login it just says Welcome in town.Here is blabla group.If you don't want to register,i will give you username and password:
username:a
password:a


This is the game: War of Angels

Share this post


Link to post
Share on other sites

If you ask me, I'll suggest you use java. It'll run the same way on every operating system and it's compatible. You can also use SSL (correct me if I'm wrong). I've seen pretty nice turn-based games done by it like billiard, tank war thingy, and some others. I'm going to learn java after I'm done with javascript and php. We are going to learn it in school and I want to learn it before that so I can score an A again! :PAnyway, if you want to use PHP for making a game, it's going to be complicated. What I would do is use loops to find out which action has to be executed and then execute that action(displaying it with ajax of course). You could also use switch, but I've never really liked switch.. :P

Share this post


Link to post
Share on other sites

Well normally you can design how the game will be like and depending on it will be how others will be able to interact with it. I don't think there is only a one way in creating a game for php, its more of your own creativity and the controls available. But i'm sure php isn't for making games as in graphical games but more text based games like neopets. So along with the PHP you may have to learn some SQL as well. Since you would want your players information stored somewhere. Just trying learning the basics first then continue onward.

You should probably start with W3Schools:

http://www.w3schools.com/php/default.asp

I myself have just started learning some php, it will take time to learn a lot of these things but its nice to start and take your time. Make sure you understand things and not skip over things you do not understand else you will never learn. :3

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.