Forum
Map in HTML5
|
Ryan wrote
at 8:09 PM, Wednesday June 18, 2014 EDT
I've been working on moving away from flash for rendering the map and using HTML5 canvas instead. Why? Theres a few reasons:
1) Easier to extend. Flash doesn't have the greatest development environment. Having the map in HTML means it will be easier for me to enhance and update it. Would love to see it show up in other spots like a map generator or a game replay player. 2) Performance. It's a bit slower to be passing events to and from flash. Having it in HTML means its directly accessible from JavaScript. 3) iOS doesn't have flash. Kdice needs to be playable on iPad and maybe even iphone (need to also add responsive layouts so its not tiny) It's a work in progress and a lot of work at that. If you want to see where its at you can add ?canvas=1 to the URL (ie http://kdice.com?canvas=1). Don't expect to play a game with it though its currently just displaying the map. |
|
Ryan wrote
at 9:55 PM, Tuesday June 24, 2014 EDT Found the problem, clicking should work.
|
|
Ryan wrote
at 10:02 PM, Wednesday June 25, 2014 EDT fixed the sluggishness no ios.
|
|
montecarlo wrote
at 10:08 PM, Wednesday June 25, 2014 EDT looks good so far. perhaps you left it in debug mode though? Getting lots of debug notes in rollbox.
|
|
flagsrweak wrote
at 7:43 PM, Friday July 25, 2014 EDT Tested it out on my tablet (android/Chrome).
First, I think it's a good idea since Flash is disabled by default on newer android devices (and iOS as well). Though it's good to know that you can still enable it by using the Puffin browser (so thanks for the tip, inty) - but I'd still be happier if I didn't have to use it since it was probably disabled for a reason (security risks and whatnot). As for the canvas version, it seems to work alright (sitting, clicking etc. all worked for me - though it was a wee bit laggy and the map seemed too large [the upper portions of the map and chat couldn't be displayed together], but it's probably due to my device and not a general issue), some minor problems might still remain unresolved. 1. A visual bug: Sometimes if you join a table when the game has already started, you might see weird things (the game is not displayed correctly). These include one colour (e.g. teal) missing from the table when it's still hasn't been eliminated. Teal territories then appear grey on the board, and when teal wins a territory, it's converted to grey. 2. If you select one of your lands (with which you want to attack) but later change your mind (e.g. because you misclicked) and select another, both of your lands will be highlighted (white). It's only a visual bug, since you still make the move with the one you selected later. 3. As monte already noted above, you can see some weird debug text displayed in the box to the lower left corner (coordinates of the points where you click, and the ID of the selected territory). Overall, you can still play a game and forget about these minor issues. It's cool to have this feature and I hope it might even get better later. Please keep up the good work! |
|
BigDaddyKane wrote
at 8:03 PM, Friday July 25, 2014 EDT What technology stack are you using? C#/Razor/Bootstrap/MVC or are you in the Java world?
|
|
integral wrote
at 12:38 PM, Monday October 20, 2014 EDT Bumb
|
|
integral wrote
at 12:52 AM, Friday October 31, 2014 EDT bump again
|
|
ehervey wrote
at 7:15 PM, Friday October 31, 2014 EDT I can't see the map on my iPad
|
|
Troy11 wrote
at 7:42 PM, Friday October 31, 2014 EDT any progress on the site?
|
|
longpube wrote
at 5:57 PM, Thursday February 5, 2015 EST still waiting...
|