TeineWolf wrote:I am just wonder why people are still coding just within HTML. Has there been a consideration to move from HTML, to a PHP/HTML game engine. The potential down side, is the games would not be downloadable, and would require a HTTP Server with a PHP Server running as well, probably an SQL server. Which is no more, nor less, than what is required to run this forum.
The upside is you are not stuck in a linear environment. Variables would be tracked the PHP/SQL, and would remove all those checking that HTML forces you to do with, with flat (text) files. with nested IF/THEN/ELSE construct. Thoughts?
"Potential downside"? it would be a pretty certain downside.
You also don't take into consideration that many/most of the people that release the games don't actually have a site and they are releasing them through others, and their only hosting is either free webstorage sites and/or the forum they are posting on. Which means they would need to pay for a service, which instantly add an expense, which they didn't have before. The more popular the games are, or at least the more heavy they are, the more bandwidth you'll need too, which again means you need to pay more. Which in turn makes it more likely to require charging for the games.
Then there's simple things like ppl wanting to play offline, due to things like lagging servers, bad inet access etc.
As for php/sql, for most/all of the games that's using what you call "just html" you wouldn't need sql, it would more than likely overcomplicate things, and with the very small number of variables and short time span on storage, you'd be better off with sessions, which doesn't have to be stored in sql.
Your claim about "would remove all those checking that HTML forces you to do"; is wrong. You'd still have to do the same checks as your game would still need to comply with the games conditions, you're simply moving the checks from being javascript to checks in PHP, which would be the exact same if and else setup that javascript has.
Nor would it make things any more or less linear either for that matter. The same conditional setup could be applied to the game regardless of it using javascript or php.
With how simple (by that i'm referring the working nature and in no way belittling the games) the games are, a move to something like php and sql would be a very bad one and it would add nothing positive for the players and add negatives to the developers.
The games functions and needs can easily be covered by simple html files for displaying and javascript for the condition handling (put somewhat simplified).
The javascript code can even be expanded upon so that less html files is needed, but that would increase either the knowledge of the developer or the complexity of tlaeros program, but there are games out there that are more javascript driven and it works just fine, the games wouldn't gain anything by a move to php/sql.