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. |
|
DoobiusMalcor wrote
at 9:21 PM, Thursday February 5, 2015 EST "What technology stack are you using? C#/Razor/Bootstrap/MVC or are you in the Java world?"
lolz.. This guy knows like 2 things. |
|
deadcode wrote
at 12:26 AM, Friday February 6, 2015 EST Still looks like gwt to me. I would totally revamp this with angularjs / nodejs / HTML5 / websockets.
But this platform works at the moment; the community at least has resisted new platforms. |
|
DoobiusMalcor wrote
at 12:31 AM, Friday February 6, 2015 EST Totally. Would you do that? would you revamp it with techs invented recently because you saw it on stackoverflow over hackernews?
|
|
Louis Cypher wrote
at 1:45 AM, Friday February 6, 2015 EST I tried, but all I get when attempting to move my stacks is:
Louis Cypher's turn mouse down region index=15 xpos=525 ypos=149 mouse down region index=12 xpos=467 ypos=165 mouse down region index=16 xpos=291 ypos=121 and so on. In addition, stacksizes shown don't always match those reported in the rolls. To sum it up - not yet working. |
|
Louis Cypher wrote
at 1:46 AM, Friday February 6, 2015 EST @deadcode: Any chances for updates on your tools? They don't seem to be working with recend Firefox-updates...
|
|
Louis Cypher wrote
at 2:00 AM, Friday February 6, 2015 EST Further testing after enabling Quicktime for kdice.com showed, that the map is just slow. I still get the errors but can move the stacks.
Congratulations to porting the luck as well. Lost 2v1, 2v1, 3v3 and 4v3 in first turn :-) I AM BACK! ;-) |
|
DoobiusMalcor wrote
at 2:10 AM, Friday February 6, 2015 EST " the community at least has resisted new platforms."
As if the community cares... Projection! |
|
deadcode wrote
at 3:21 PM, Friday February 6, 2015 EST "DoobiusMalcor wrote
at 12:31 AM, Friday February 6, 2015 CST Totally. Would you do that? would you revamp it with techs invented recently because you saw it on stackoverflow over hackernews?" Yes I would. If I controlled the source code I would move off of GWT. I would also open it up to other developers; but then again my intentions/goals are different from Ryan's. Not sure why you are name dropping stackoverflow / hackernews... Are you implying that I am just picking stacks that are hot at the moment? No I'm not; I actually run numerous production applications using that stack; I find it is a very good stack for this approach. I created a similar game to kdice using that stack; it is very doable and performs well. |
|
deadcode wrote
at 3:22 PM, Friday February 6, 2015 EST "Louis Cypher wrote
at 1:46 AM, Friday February 6, 2015 CST @deadcode: Any chances for updates on your tools? They don't seem to be working with recend Firefox-updates..." Probably not; I've stopped working on Deadcode Tools a long time ago. I don't have the source code / dev environment readily available and I also lack the motivation. |
|
deadcode wrote
at 3:24 PM, Friday February 6, 2015 EST "DoobiusMalcor wrote
at 2:10 AM, Friday February 6, 2015 CST " the community at least has resisted new platforms." As if the community cares... Projection!" Projection? No actually I have tested the theory and no one was willing to move. Kdice has an established community and the game works well. It's hard to crack that nut without offering something new and innovative. People have friends here and that is what matters. At least that is my take on it; go do your own market research. :p |