Any reason why you chose HTML5 instead of SilverCreator?
In terms of features there's classes, variable properties (which I use as enums) and dynamic method/function calls to name a few. I'll take the items list as an example:
I'm using numbers to represent every individual item (166 so far). Here's the SilverCreator code for doing that (I
may be wrong here):
SELECT CASE item
CASE 0
RETURN "None"
CASE 1
RETURN "Crab Cakes"
CASE 2
RETURN "Cheesecake"
// Rest of code
END SELECTThis would most probably be one method
while in Javascript:
const ITEMS = function() {
var names = {
0: 'None',
1: 'Crab Cakes',
2: 'Cheesecake'
};
var description = {
0: '',
1: 'Cakes made of crab?',
2: 'CHEESE.'
};
return {
getName: function(n) {
return names[n];
},
getDesc: function(n) {
return description[n];
}
};
}();I find the latter more readable, and in the long run it uses less lines than its SC counterpart.
I've seen REALbasic games run on Windows, they're often not playable (as was the case with this one). Browsers
do lag on said system depending on the refresh rate and area. I'm trying to fix that to get the best results.
One final reason is college. My study units for commercial programming are C# and Java, and until now the only reason I've used BASIC was for pseudocode.
Maybe HTML5 is a potential compilation target in the future.
I'd rather see 2.0 make an official release first.