Jump to content

some basic easy to answer questions


Yeodan

Recommended Posts

I just started learning more advanced PHP / HTML / Javascript

 

I'm planning on making a text based browser game and I have some problems getting started.

 

Should I use frames?

I want a toolbar on the left that keeps the player updated and has all the required links in it. It should only updated when the player changes page though.

For example a link named Mailbox, this link should change color if the user has a new mail.

Is this possible / adviced to do with frames?

 

 

I might want an hourly income.

I have really no idea how to get started on this, could you point me in the right direction?

Link to comment
https://forums.phpfreaks.com/topic/150898-some-basic-easy-to-answer-questions/
Share on other sites

As for the game itself - this is something you'll need to give a bit of planning before you start coding.

 

What type of game?

Will it have missions?

Can players be killed?

How can they be killed?

Will players have to use a separate email for every account? (if they die)

Will a monetary system be involved? If so, what currency?

If the game is played in real time what extras will you include to prevent boredom?

 

I can think of many, many, many more questions.

Hi

 

Frames save sending some data out repeatedly, although you can do the same using Ajax and only refreshing the area of the page containing the data.

 

Hourly income could be done from a hourly job, but you may not have access to set up regular jobs on your server. As such you might want to update peoples cash from the hourly income when someone does something. For example, have a standard header part of the script that is common to all / most options (can do security, etc). In here update a table containing when the last hourly job was run if it was more than an hour ago and check the number of records updated. 99% of the time no rows were updated so you don't have to do anything, If a row was updated then it means it was an hour or more since the hourly income was last processed, so loop around all the players and update their cash based on their hourly income.

 

All the best

 

Keith

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.