Armand

Members
  • Content Count

    2
  • Joined

  • Last visited

About Armand

  • Rank
    Newbie

Recent Profile Visitors

276 profile views
  1. Armand

    Sparkchess

    Hi, I ported my game from Flash/AIR to HTML5. It's SparkChess, a chess game with single-player and multiplayer capabilities. The game is written in Typescript. I chose it because it was more similar to Actionscript and because I wanted to keep my sanity (for large projects Javascript is a pain). The AI engine is written by me, it's fast and strong enough for most players. It uses web workers. The multiplayer part uses websockets, with Union Platform (wonderful Java multiplayer server with Javascript client, too bad it doesn't seem to be actively developed). There's a free version online and we also have a Premium version with extra features, such as the rotatable 3D board that uses Three.js. I also created desktop versions for Win & Mac using Electron (previously NWjs but Electron seems to have more & better tools) and also for mobile using Cordova.
  2. Hi, I am porting a Flash/AIR game to HTML5 but I hit a roadblock. My game relies on workers. There are some intensive work that takes seconds to complete. Running in the main thread is not an option. My AIR app runs on web, pc, mac, android and iOS so naturally I'd like the HTML version to do the same. However I just discovered that Chrome doesn't load local worker files. I tried an ugly workaround that uses a Blob to create the worker but that doesn't work in IE11. So, do you know of any way to get workers working in all the latest browsers (I'm not concerned about older ones), on desktop and mobile, for local apps?