Php multiple choice game

Dear Members,

I’d like to make a browser game but do not where should I start it. I know that I need a database where the game store the results and PHP scripts which sends the data to a database and some javascript.

The game logic diagram would look like this: http://kepfeltoltes.hu/131201/gameenglish_www.kepfeltoltes.hu_.png

At the end of the game would be a mathematical operation that computes that what the player achieved.

Well, the biggest problem is that that I need to animate example: “a man appears and the text bubble shows up” In addition I’d like to use some sound on events.
I have no idea how all of this could be done in PHP. (Flash excluded)

Thank you in advance for your answers!

You can’t do animation in PHP. PHP is rendered server side and is done processing when displayed in the browser. In order to modify the page “live” you need to use client-side scripting, like javascript.

Note that the actual game score/updating still should be done server side, since a user is able to modify/alter anything going on in his/her browser.

You should look into Jquery, it should make the client side easier.

Note that this is a pretty large project, expect to spend quite a few hours on it :slight_smile:

Sponsor our Newsletter | Privacy Policy | Terms of Service