kbmonkey Posted May 17, 2016 Share Posted May 17, 2016 Here is a card game engine I recently whipped up. I implemented a couple card games so far, which you can play. My motivation was to learn the 2d web canvas, the engine is written in Vanilla JavaScript and has zero dependencies. The UI was thrown together with Bootstrap. It supports dynamic view ports and is thus mobile friendly. Still in early development, but playable and winnable http://wesleywerner.github.io/penny-farthing/ Quote Link to comment Share on other sites More sharing options...
danyburton Posted May 18, 2016 Share Posted May 18, 2016 I'm not 100% sure what klondike is, but are you meant to be able to put a red 9 on a red 3? Quote Link to comment Share on other sites More sharing options...
kbmonkey Posted May 18, 2016 Author Share Posted May 18, 2016 @danyburton There are hundreds of versions of solitaire games and Klondike is one of the more known versions. To help me debug what you saw, when I start a klondike game #735 there is a red 9 and a red 3 visible. I am not able to put the 9 on the 3. Can you? Quote Link to comment Share on other sites More sharing options...
Umz Posted May 18, 2016 Share Posted May 18, 2016 Twice I got shuffles that didn't allow me to complete the game. But I do love Solitaire, haha, probably by force because it used to be one of the only games on the PC. I'm sure you remember. It's smooth and has some good transitions. like the feel. The only off thing is having that circle when dragging the card. It just feels weird and I keep misplacing the cards, because, seeing the card makes me feel like I'm dragging it. I'd say either drag the actual card or draw the circle with the card inside it. ecv 1 Quote Link to comment Share on other sites More sharing options...
BdR Posted May 19, 2016 Share Posted May 19, 2016 Cool game, veryimpressive that it was build without dependencies on Phaser or anything. But I agree with Umz that the circle cursor and the "offset" to the card is confusing. I understand that this was probably done to keep the moving card visible under your fingers when playing on a touch device. But I think it would be more intuitive if the card is slightly above the touch cursor instead of to the left. ecv 1 Quote Link to comment Share on other sites More sharing options...
danyburton Posted May 20, 2016 Share Posted May 20, 2016 On 5/18/2016 at 3:06 PM, kbmonkey said: @danyburton There are hundreds of versions of solitaire games and Klondike is one of the more known versions. To help me debug what you saw, when I start a klondike game #735 there is a red 9 and a red 3 visible. I am not able to put the 9 on the 3. Can you? No I can't. But I definitely did one time, which is strange. Quote Link to comment Share on other sites More sharing options...
ecv Posted May 23, 2016 Share Posted May 23, 2016 I've played sooo many solitaire games. This one seems well done, but I was unlucky to hit #697 which I think can't be won cause red nines are under black eights and also other cards that'd go in the ordered stacks that'd let you remove black eights are there too. Anyways, three things: What others mentioned about the dragging circle. I'm so used to double clicking to automatically place the relevant card on the ordered stack that I missed it a bit too much. Are you sure the pictures aren't from Windows' original solitaire game? (Edit: No, it's not. Sorry ) Be careful about rights. Umz 1 Quote Link to comment Share on other sites More sharing options...
kbmonkey Posted May 26, 2016 Author Share Posted May 26, 2016 Good feedback, thanks! I will address the issue of the dragged card offset to make it in-line with the cursor/finger, @Umz and @BdR. The auto-move to the foundation is something I am thinking to implement, thanks @ecv. The card images are GPL from here. I will include this in the Readme. Thanks Umz and ecv 2 Quote Link to comment Share on other sites More sharing options...
kbmonkey Posted May 26, 2016 Author Share Posted May 26, 2016 I centred the dragged cards around the cursor/finger, and removed the focus arc. This does feel better ecv and Umz 2 Quote Link to comment Share on other sites More sharing options...
Umz Posted May 27, 2016 Share Posted May 27, 2016 20 hours ago, kbmonkey said: I centred the dragged cards around the cursor/finger, and removed the focus arc. This does feel better Just feels more natural now. It's just where the eye focuses you want the card to drop. Making it transparent works well too. There's not much to remember in the game, but these little things are just a great aid. Quote Link to comment Share on other sites More sharing options...
ecv Posted May 28, 2016 Share Posted May 28, 2016 Definitely better. I'm still missing the doble click feature, hehe. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.