Code

Discussion on HTML5 Solitaire

Discussion on HTML5 Solitaire

Cart 246 sales

sney2002 supports this item

Supported

28 comments found.

I uploaded the game to the server. It does not load. Only top nav menu shows up. No cards.

Here is the error in web console. Unhandled Promise Rejection: null promiseEmptyOnRejected promiseReactionJob.

When you load the game in iOS device on iPad no issues, the game loads fine. Also the game loads fine locally. The problem is the game does not load when published to the server.

Please help. I really like your app :)

Ok figure it out. Safari Auto play for website is disabled. Once I enabled everything is OK now. Thanks

Hi, I sent you an email about additions I’d like to see if you could make to this code.

Did not get an answer yet so I try via comments: is there an function i can easily call to trigger a new game like: newgame(). Because i can’t just place the same new game button anywhere else.. It’s wrapped in some “event-listener” which is a bit strange.

is the game in construct framework?

Hi, No the game was made with javascript

Hello everyone; I need a push to set up.

I bought the script and I really don’t understand what to do in the manual.

Point three doesn’t work for me. I don’t know if I’m misinterpreting or what?

please send me a link to your website or the html code to my email so I can take a look

Ok, i e-mailed you

Can this game can be played from the filesystem or do we have to load it on the server

Hi, please reply to my message i sent you directly 3 days ago, it is urgent

Hi, I just answered your email.

Hi, I just answered your email.

Hello, I would like to know if the game has difficulty setting, to be set from the code or elsewhere

Also, on mobile view, the number in card is too small to see, can i make css exception to load other sprite when we in mobile view?

Hello sney, I would like to ask ONE simple question and I hope that you will answer it. If you can explain this to me, I will but one of your other games.

How do I disable sound from the start. It autostarts, but I wan’t the users to manually “tick” off sound if thewy wan’t sound.

I don’t know why I didn’t add an option to disable the sound, but I can add it if you like. send me a message through my user page

Hello Sney, is all the source code included, is it very hard to change? I have experience with JS / Jquery and Vue.

Hi,

Yes, all the source code is included. it uses plain javascript (no libraries)

hi, there is sometimes a problem when moving a king on a free cell of the tableau :-(

Watch these videos: http://www.screencast.com/t/aK32YPIiBpO http://www.screencast.com/t/yuJM5Ue7

The problem only occurs when moving (using drag and drop) a single king (no problem when moving a group of cards). Can check this please ???

I sorry for the delay.

I will check this issue and let you know as soon as I fix it

several players reported me this problem (under windows). Thank You for your support …and Happy New Year :-)

hi,

I just downloaded the source code of the game, and I noticed several bugs: - when you start the game with a double click or tap, the timer doesn’t start - in file build / app.js (or app / app.js), if I modify this:
 points: {
             Move_to_foundation: 33,
             Waste_to_tableau: 22,
             Foundation_to_tableau: -15,
             Turn_card: 55
         }
It doesn’t work :-(

I try your online demo and I do not see these bugs… Perhaps I do not have the latest version? Can you send it to me?

Thanks you.

Any news? Have you received my message?

I found another problem in Internet Explorer 11: if you double click cards, it does not work and the game fails (cards can’t move any more or disappears). IE console displays this error: Variable undefined in strict mode (file app/view/main.js)

in function testNCardsFromPile(n, pile, piles) , if i replace
for (i = 0, length = piles.length; i < length; i++)
by
var piles_length = piles.length;
for (i = 0, piles_length; i < piles_length; i++) 

then it works fine :-)

To fix the score points bug, modify the following lines in the file app/UI/main.js

changeScore("up", points.move_to_foundation || MOVE_TO_FOUNDATION); 
changeScore("up", options.points.move_to_foundation || MOVE_TO_FOUNDATION);
changeScore("up", points.waste_to_tableau || WASTE_TO_TABLEAU);
changeScore("down", -Math.abs(points.foundation_to_tableau) || FOUNDATION_TO_TABLEAU);
changeScore("up", points.turn_card || TURN_CARD);
by
changeScore("up", options.points.move_to_foundation || MOVE_TO_FOUNDATION); 
changeScore("up", options.points.move_to_foundation || MOVE_TO_FOUNDATION);
changeScore("up", options.points.waste_to_tableau || WASTE_TO_TABLEAU);
changeScore("down", -Math.abs(options.points.foundation_to_tableau) || FOUNDATION_TO_TABLEAU);
changeScore("up", options.points.turn_card || TURN_CARD);
:grin:

To start the timer on a double click / tap, add this lines in the function “initInternalEvents” (file app/view/main.js)

channel.on('pile.tap', checkFirstMove);

how to compile source ?want to change sound format,ogg not support on iOS

Hi,

to compile the source code you must download the requirejs optimizer, nodejs and uglifyjs. then run the following command from inside the app folder
node ~/path/to/r.js -o mainConfigFile=main.js baseUrl=.

Is it possible to add image instead-of color at the game back ground without hampering the game? Same scenario with card holder at Home section?

Please let me know if it is possible? and how?

Hi any update on the above one… seeking your help.

Hi looking forward for your help..

Hi As per my earlier conversation on you comment section :

We required image instead of color at game background and at card placeholder at home section : http://216.152.138.149/require.png

the image at background that we want : http://216.152.138.149/background.jpg the image at placeholder of card at home : http://216.152.138.149/cardbg.jpg

Looking for your help..

In the game we a getting a issue where the timer didn’t start, due to which it create issue in the scoring.

Scenario : When the game load and you get “ace” in the column, double click on that, the card goes to “Home” at that time timer didn’t start, due to which when i move any other card after this, the point again starts from zero

You can see the issue in the below Video link : http://www.screencast.com/t/ltHcduvk9u9Q

Looking for your help.

Thanks for the bug report,

I have sent you an email with the new code.

Thanks you.

Hi, could you tell me what file I can edit to change the Green Background ?

I tried the docs, but it did not say which exact file ?

Thanks,

-Glen

Looks good, some pointers:

- Tested in iOS 8: Doesn’t work (iPad and iPhone) Loading text shows, but it stops there

- Tested in Safari: Some sound issues (but thats more Safari’s fault and the way it loads HTML5 sound), some layout issues (very minor) and the start animation is bugged (though this is due to the sound. If I turn the sound off, the animation goes smooth, again Safari’s fault)

iOS 8 support is the biggest thing to fix I think

Can you direct me how to re size the cards area? I want to increase the actual size of the displayed cards by about 30 percent. I bought the single license to see if I could easily alter the code. I am going to by the multi-license if I can modify this.

Hi,

You should edit the file app/view/board.js and change the BOARD_HEIGHT variable, by default the board height is about five cards
BOARD_HEIGHT = (Pile.cardHeight + 10) * 5,
change it for 4
BOARD_HEIGHT = (Pile.cardHeight + 10) * 4,
to test the changes, load the unminified version (app/app instead of build/app) index.html:
<script src="build/require.min.js" data-main="app/app"></script>

I edited the “sprite.png” file in order to change the card’s background to the logo / graphic I wanted to use, but it’s still the default blue grainy card background — even after I saved the new .png as “sprite.png” and replaced the old image on the server. Any idea why it’s not working? I saw in your comments from a while ago that all I’d have to do is edit the sprite.png file and it would change after uploading new sprite.png to server. But it didn’t :-(

In order to edit the back of the cards, what are the steps I’m going to need to take? Is there a breakdown of steps in your documentation that I’m not finding?

I think I know what’s the problem, you should edit the image in build/assets/images/sprite.png no the one in app/assets/images/sprite.png.

Sorry I should make that clear in the documentation.

Okay, thank you for letting me know. That worked perfectly :-) Again, thanks for the support.

Thanks!!!!

Hi Sney,

I can see that you have added iOS support 2 months ago!

But I can’t play the game iPhone 5 on Safari. It just says “loading…”.

Can you please tell me what’s wrong?

Thanks!

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey