itch.io is community of indie game creators and players

Devlogs

(Week 23) LET'S COALESCE??

Can You Dig It? (Yes You Can)
A browser game made in HTML5

SUMMARY:

  • STORE ITEM MOUSE HOVER- We got item descriptions to update in realtime.
  • COALESCING??- A clean and simple way to live and program.
  • MOUSE HOVER MAGIC- We wrote a button.onHover() script you can download and use.
  • TASK TRACKER GOLD IN 1 WEEK (AGAIN, AGAIN) - Continuing to add teams members as our ultimate feature.


PLAY THE GAME


STORE ITEM MOUSE HOVER

COALESCING??


Example

<br> //Long version <br><br> Button myButton= button.GetComponent<MyCompoment>() ? button.GetComponent<MyCompoment>() : button.gameObject.AddComponent<MyCompoment>();<br>


<br> //Simple version with COALESCING<br><br> Button myButton= button.GetComponent<MyCompoment>() ?? button.gameObject.AddComponent<MyCompoment>();<br> <br>

One thing I've learned in my career is that it's better to take your time and keep your code clean as early as you can, even if it takes longer. This way, it'll stand the test of time and you won't end up wasting hours, maybe days, trying to figure out what your past self was trying to do. Spaghetti is great for lunch, bad for code.

MOUSE HOVER MAGIC

BEFORE

AFTER


TASK TRACKER GOLD IN ONE MORE, ONE MORE, ONE MORE WEEK

We're hoping to make it easier than ever to have friends join you in keeping track of goals or tasks for your project. Our test run worked well this week but deployment may take a little longer, perhaps by the weekend or early next week.


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

Leave a comment