0 Members and 3 Guests are viewing this topic.
It's definitely doable. Though, I'd do it in PHP or Flash first personally.Javascript doesn't completely agree with me.However, I'll keep tabs on this project and help where I can.
I personally wouldn't code in JS because back then I had JS classes in college and it was way too incredibly hard for me. The teacher was always at my desk helping me debug and I would still don't get it. I failed the class and eventually dropped outThat said, some JS games might be cool, you just need to make sure it's not too easy to cheat. On the old Omnimaga forums, we had a RPG system Late 2005 and Early 2006, where your stats/save were stored in your signatures. However, people just disabled JS in their browser and hacked the stats through signature editing options to get ultimate weapons and stats and in some browsers, people were unable to edit their sig anymore.
Galandros, couldn't you avoid cheating by having the "important" part of the code run on that webserver?
On my side the Mario game sprites were garbled, though
var GlobalScope = function () { var PrivateString = "Hello"; return { showstring: function () { alert(PrivateString); } };}();
alert(GlobalScope.PrivateString);
GlobalScope.showstring();
You can prevent cheating by putting variables within the private scope.That can be done using this:Code: (JavaScript) [Select]var GlobalScope = function () { var PrivateString = "Hello"; return { showstring: function () { alert(PrivateString); } };}();Upon looking at the DOM using Firefox's Firebug, you can see that the private string is not accesible.So this will not work:Code: (JavaScript) [Select]alert(GlobalScope.PrivateString);But, this will, as it is called by the GlobalScope's own child.Code: (JavaScript) [Select]GlobalScope.showstring();