Our Scripts Vault contains many game scripts that you can use to create your own game!
Since the result of the game is pre-determined, you would pass the entire result to the browser then you would utilize JavaScript to create the timed release of the data to the user. Also, with a feature like this, you should probably allow a "skip animation" option for players, like myself, who would find it irritating.
Quote from: JGadrow on January 22, 2010, 10:01:05 AMSince the result of the game is pre-determined, you would pass the entire result to the browser then you would utilize JavaScript to create the timed release of the data to the user. Also, with a feature like this, you should probably allow a "skip animation" option for players, like myself, who would find it irritating.Reviving an old topic, but.. if the entire result is passed to the browser, would not the player be able to view the result in the page source?
If there is a goal at minute 5 for an example, then the clock should tick 1, 2, 3, 4, 5 and then show the goal-comments.
var game = [ ["Player Foo scored goal! Score is currently 0:1", 5], ["Player Bar injured player Foo", 7]/* , ... */];
Well, then the result would be viewed by the user.
Quote from: dbest on September 19, 2010, 03:38:18 AMWell, then the result would be viewed by the user.Isn't that the whole point? :/ Showing the user the result of a game, battle, ...
Quote from: jannesiera on September 19, 2010, 04:27:56 AMQuote from: dbest on September 19, 2010, 03:38:18 AMWell, then the result would be viewed by the user.Isn't that the whole point? :/ Showing the user the result of a game, battle, ...Yeah but rather than showing the entire game, I would like to show it as if it was streaming live.So in the first 50 seconds, we have the first few lines of commentary..next 50 seconds, additional lines are added...
Maybe I misunderstood the issue, but... in this case you don't even need AJAX