This is a fairly straightforward task, and should be a quick job for a highly proficient programmer.
About the game:
The game is based upon Klondike Solitaire, and is fully functional. The logic for the cardgame was originally derived from a purchased Asset, and consists of 3 JS files:
*The main js file which contains the primary class. (approx 1000 lines)
*Two smaller JS files which manage specific functions (approx 20, and 470 lines)
The original asset has been heavily edited, and now requires two final tweaks:
1. When double clicking on an Ace card, either in the Draw deck or any of the 7 dealt decks, it will move to the correct stack. This will basically perform the same as when dragging-and-dropping onto the stack, but automatically transform the position of the card from its current location to the final stack location on double-click. This will be a timed transformation, so it appears as though the card is sliding, rather than an instant movement.
Please note this is not solely a transformation of an instanced gameobject, as it ill also need to conform to the existing drag-and-drop method, where a card is marked as used, enabled, visible etc.
I have written, and will provide, a number of functions to detect the double click on the Ace card, and will require you to complete it by adding in the transformation and setting correct attributes.
2. At present you can click on the Draw Deck gameobject, which will flip and reveal the next hidden card in the deck. A function needs to be added that will detect if there is an existing card and if that card is an Ace. If the card is an Ace, the Draw Deck should not be clickable (forcing the player to move the Ace card before being able to click the Draw Deck again). This is fairly straight forward, and shouldn't take too long at all (est. half an hour to work out the code, and ~1-2hrs for writing).
As this code was derived from an existing asset, it was not originally commented, not did it come with any documentation. However, the code that I have added or changed has been commented, and I will add brief comments throughout explaining how the game functions.
In addition, I will provide a number of functions which you may use to detect the double click, perform an Ace check (to see if the card click is an Ace) and a Suit check (to determine what the Suit of the Ace is).
However, you'll need to procedurally work through and determine where the transformations of the cards currently takes place, and what attributes are set for those cards.
Please let me know if you have any questions, as I'll need this completed fairly urgently.
4 freelancers estão ofertando em média $58 para esse trabalho
Hello, I am an experienced unity programmer. I can have these tasks done. Please check my portfolio and feel free to ask for further info. Kind regards, sotokangr