Hi! I am a self trained web developer. My current programming skillsets are AS3, PHP, and mySQL.
I recently ran across a problem developing a browser based mmo-game (similar to ikariam etc but with flash as user interface).
I am going to use ikariam as an example because my problem is similar to one of its features. Ikariam is a civilization building browser-based game. So here’s my problem:
In ikariam, you can send your troops to another person’s town and attack it. Doing so will require your troops to spend X number of minutes of travel time depending on the distance of the towns. Afterwards, your army and the defender’s army will go into battle.
How do i make the code for this? (pseudo-code). I’m assuming i need to send info to the server that i made the attack, then the server calculates the travel time, then after the travel time has elapsed, it need to run it’s battle-algorithm, all the while notifying the user on what is happening.
Also, the user order an attack, go offline, and when he comes back online, he shuold be able to see what happened during the attack.
Can all of these be done using AS3, PHP, and mySQL? If not, what else should i learn?