Skip to main content

Posts

Showing posts from 2015

Unity: How Adapters can help you write fewer MonoBehaviours

TL;DR: You don't need to duplicate a bunch of code to do the same things to a Image and a SpriteRenderer, or RectTransform and Transform, etc. You can use a simple pattern called the Adapter Pattern. If you've never used it before, this post explains how.

The Problem: Image vs SpriteRenderer Lets say you want to make a sprite fade out, maybe its a dead monster or a collectible, but in either case you want it to gracefully depart from the screen rather than blink out of existence. Kinda like this eyeball monster from Beastly:


So that's pretty easy right, one way of doing it is with a MonoBehaviour that modifies the sprites alpha value via SpriteRenderer.color. Your class might look something like this:
public class AlphaFaderSprite : MonoBehaviour { public SpriteRenderer spr; public float fade_percentage; void Update() { spr.color = new Color(spr.color.r, spr.color.g, spr.color.b, fade_percentage); } } Now, anyone who's used Unity for more than an …

Blogger Templates for Noobs - Part 1 - Template Structure

I've been curious about blogger templates since I started using the site a half decade ago, but I never took the time to learn how to build them.

Recently I've been making changes to this site and I've been picking up a few things about blogger templates, so I'll be sharing things on this site as I learn them.

Setting Up I'll assume that you have a blog already, so the first step is to visit the dashboard of your blog and click on the "Template" tab on the left-hand side.


Then, click the "Edit HTML" button to get started.

Site Redesign

The site is currently undergoing a big redesign. For the next couple of days pages will be moving around a lot, so I apologize in advance for the inconvenience!

I'm working on a custom Blogger Template, and since I haven't used the API before i'm sort of learning as I go. It doesn't seem to be too difficult, but its still slowing things down a little bit.

Full launch Soon[tm]

#TAGJam22 - Submissions

Leave a comment on this post with a link to your submission.
Submissions must arrive before:


 (The end of TAGJam + a 12 hour grace period to account for differing time-zones)

The winner will be announced 24 hours after submissions close.

#TAGJam22 Begins! - Themes


Random Theme 1 Beast Definition: An animal, especially a large or dangerous four-footed one.

Random Theme 2 Overpotent Definition: Too potent or powerful.

Host Theme Gyoza Definition: Japanese pan-fried dumplings, filled with ground meat and vegetables and wrapped in a thin dough.

Remember the Bonus Rule:

Bonus Rule: "Show Me Your Moves!"
Show me something that you're already working on! For more information on this bonus rule  check out the previous post by clicking here.
Because its understood that entries adhering the bonus rule will be at different stages of completion, all entries will be judged based on the following factors, with the first being the most important:
How interesting is the overall idea? How well are the themes incorporated? How well is the idea executed?
Your submissions must come in by 26th June @ 23:59 GMT / [25th June @ 16:59 PST]
On your marks. Get Set. Go!

#TAGJam22 - Show Me Your Moves! - Begins in 24 Hours!

The Arbitrary Gamejam Comes Home 2: Electric Boogaloo

TAG has just come off a short one-month hiatus, and its kicking off right here. This time its a 7 Day Jam running from:
20th June @ 00:00 GMT
[19th June @ 17:00 PST] UNTIL 26th June @ 23:59 GMT
[25th June @ 16:59 PST]


This TAG is has a special bonus rule that we're announcing early:
Bonus Rule: "Show Me Your Moves!"
This TAG, I want to see what you're working on! Instead of building a whole new game for the jam, show off something that you're currently working on or have worked on recently.
During the Jam, spend those 7 days creating a special #TAGJam22 build of your project that incorporates the themes. For example:
If your game is a Platformer, you could build a short bonus level or powerup that incorporates the TAG themes.If your game is an RPG, you could add a short quest, skill, monster or item which incorporates the TAG themes.If your game is a Racer, you could add a custom TAG vehicle paint job, or a new track…