Find Jobs
Hire Freelancers

Add two features to existing card game un Unity (JS)

$10-30 AUD

Closed
Posted over 9 years ago

$10-30 AUD

Paid on delivery
I am currently developing a card game in Unity, which has been written in JavaScript. The deadline is quickly approaching, and I require a few small tasks completed within the next 12 hours, as I'm currently working on other aspects of the game. 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). Other information: 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. For the job I'll only be providing the 3 javascript files for this task, as the Unity project file is several hundred MB. However, I'm happy to test the code as you work through it. Please let me know if you have any questions, as I'll need this completed fairly urgently.
Project ID: 6618775

About the project

4 proposals
Remote project
Active 9 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
4 freelancers are bidding on average $58 AUD for this job
User Avatar
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
$80 AUD in 1 day
5.0 (7 reviews)
4.9
4.9

About the client

Flag of AUSTRALIA
Perth, Australia
5.0
4
Payment method verified
Member since Aug 2, 2013

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.