(WEEK 22) DELEGATE YOUR WEAKNESS
SUMMARY:
- STORE UPGRADES COMPLETE!- All store items are purchaseable but they don't do anything yet so we've frozen them yet you can see them in-game.
- DELEGATES SAVED OUR KEISTER- Hours, days, if not weeks, of work accomplished in minutes thanks to the power of Delegates!
- TASK TRACKER GOLD IN 1 WEEK (AGAIN, AGAIN) - Continuing to add teams members as our ultimate feature.
PLAY THE GAME
STORE UPGRADES COMPLETE!
"Soar with your streangths, delegate your weaknesses." is a quote attributed to Harvey Mackay, author of Beware the Naked Man Who Offers You His Shirt.
But in our case, delegates have a different meaning. It's the magic which helped us map a whole dictioary of items into a single menu, thus saving us hours and hours
of coding time to make this happen. To be sure, we tested every purchase and surely enough, each item from our list worked and was made into a proper transaction for the store.
This badboy is offically working! BUT, sadly the upgrades won't. If you buy an item and equip it, nothing happens; that's why next week
we'll be focusing on perks and making them enhance your abilities in-game.
DELEGATES SAVED OUR KEISTER
But we owe a great deal of thanks to how delegates work in Unity and gaming overall. It's a way to make a single function do multiple things, and in our case,
it's a way to make a single button execute multiple actions. This means we can update different transactions per category each time the menu refreshes.
A Delegate is a contract between a function and the caller. It's a way to make a single function do multiple things. You can assign a function to a variable and
then map it to a button.
Without it, a button would only do one thing when the game starts and nothing else. But sometimes like in the case of a magic cast mechanic having different spells,
or a menu with multiple items, we need to find a way to remap or refresh what the same button does while the game is running. With Delegates,
you can assign the variable, which will never change so the button can remain as is, but at runtime, you can reassign the variable with any function you want
without worry of breaking it.
Item Name | Price (credits) | Description | Category |
---|---|---|---|
Standard Shoes | 1.00 | Casual footwear | Shoes |
Speed Shoes Plus | 10.00 | 2x speed increase | Shoes |
Speed Shoes Deluxe | 100.00 | 3x speed increase | Shoes |
Speed Shoes Supreme | 1000.00 | 4x speed increase | Shoes |
Small Bag | 30.00 | Capacity:10 | Bag |
Medium Bag | 200.00 | Capacity:20 | Bag |
Large Bag | 800.00 | Capacity:50 | Bag |
Farm Shovel | 60.00 | Standard Shovel Speed x1 | Shovel |
Super Shovel | 300.00 | High Quality Speed x2 (Ignores nails) | Shovel |
Standard Detector | 120.00 | A thrift store hobbyist's bargain. | Detector |
Deluxe Detector | 400.00 | Avoid rusty nail detection, only precious metals. | Detector |
In the above chart you can see a list of all the available upgrades for sale in the store. But they won't work or be accessible until the mechanics for each one are integrated in the coming weeks. Stay tuned!
For anyone who wants to know more about Delegates, let us know in the comments and we can share a simple code example, for now just know we ended up going with a solution that saved us a
ton of time and allowed us to move forward.
TASK TRACKER GOLD IN ONE MORE, ONE MORE, ONE MORE WEEK
The Team Invite feature is taking longer than expected but it's close. You'll be able to have friends join you in listing and keeping track of bugs or tasks for your project.
We're still working out our own kinks for it but it's close.
You can see in the preview screenshots a simple example of two out of three membership stats: VIEW, EDIT, and FULL, each with different levels of privilages.
Visit Task Tracker's Public TODO List and sign up FREE!
That's it for this week! Hope you try out the game and check out our list on Task Tracker Pro! To be continued....
GabeArts305
Can You Dig It? (Yes You Can)
The treasure game of finding buried riches under Fortune Park's vast terrain with aid of a trusty shovel and detector!
Status | Prototype |
Author | Monarch Games Net |
Genre | Simulation, Puzzle, Strategy |
Tags | Exploration, First-Person, Indie, nature, Open World, Sandbox, treasure |
More posts
- (Week 56) IN THE BAGJan 24, 2024
- Week 56 - Progression Makes Perfect!Jan 23, 2024
- (Week 30) JACKPOTJul 09, 2023
- (Week 28) Á LA KARTJun 25, 2023
- (Week 27) SWEAT AND TIERSJun 18, 2023
- (Week 26) DETECT: THE ALMIGHTYJun 11, 2023
- (Week 25) UPGRADES UP-DATE!Jun 04, 2023
- (Week 24) SHOE BETCHAMay 28, 2023
- (Week 23) LET'S COALESCE??May 21, 2023
Leave a comment
Log in with itch.io to leave a comment.