Neat.
I was wondering when someone was going to make a game with OP4JS. Are you planning something bigger for the next game project?
I don't dare say 3D.
Currently I'm planning to mostly add to it, things like achievements, global high-scores, more levels, etc. to test the tech.
Maybe make other small games, I've noticed I tend to get swamped by the need for art in larger projects (sprites, textures, models, music...), placeholders graphics only go so far, and I'm just not time-efficient at doing any kind of art myself, quick PaintShop hacks are okay, but anything more complex and I'm doomed ;-)
3D may or may not be too far removed, it'll depend on how fast the W3C settles on a 3D standard (be it WebGL or something else).
Last edited by Ñuño Martínez; 26-01-2012 at 01:26 PM.
No signature provided yet.
It also says "Scripts can be executed from Delphi applications [...] or compiled into JavaScript that can be run client-side in a browser or any Javascript-capable engine"
So yes, it takes Object Pascal source, and spits out JavaScript.
The JavaScript runs as long as you have a compatible web browser, anything not too ancient should be okay. For game stuff you need at least Canvas support, and the game is primarily tested/profiled for WebKit-based browser, ie. iOS, Android, Chrome & Safari.Does it work on Linux? Does it work on WineHQ?
FireFox, IE9 & Opera are okay except for some graphical glitches on the menu buttons (they aren't done in Canvas, but in HTML, and lack some specific CSS).
As for the compiler, at the latest news, DWScript compiles under FreePascal, but execution is problematic due to bugs in the FreePascal compiler/runtime wrt to Variants & Unicode Strings.
Sorry, I read it too fast... I'll try to use the compiler in WineHQ.
No signature provided yet.
Wow, I didn't even know that this was feasible to do. I'm very curious about some benchmarks, that show the quality of the compiler. It would be a shame if the pascal version would be significantly slower.
Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.
Bookmarks