Skip to main content

Posts

Showing posts with the label Unity

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 Unit...

Introducing Runes of Runeterra - A Love Letter to Riot Games

This was originally a reddit post: http://www.reddit.com/r/leagueoflegends/comments/2m7ovq/introducing_runes_of_runeterra_prealpha_a_digital/ But I've copied it here for safe keeping and future reference. I've also included [this list]  of games that I've played in the past 6 Months, since a link to this page was submitted as part of an application. TL;DR:  I made a game and i'd love for your guys to play test it and give me feedback. If you want to avoid reading the wall of text and get straight to checking it out, there is a section right at the bottom of this post called  Without Further Ado  that you can skip to. However, if you’re interested in the design/development process then I encourage you to read on! (Plus, you're probably going to want to read the rules section too) Hi Reddit! The deadline for Game Design internship applications to Riot is fast approaching, but i'm based in London and likely ineligible to work for Riot since t...

Threads. - A #TAGJam9 Entry

I entered #TAGJam9, even though I know I am ineligible to win (since i've already hosted twice in the past 12 months) and decided to base my entry on a piece of operating systems work i'd done recently. So, without further delay I will introduce you to: Threads. Episode 1: "#F*ckPintOS" Try it out here using the Unity Web Player LINK Let me know what you think! If you want to try out the other games created for #TAGJam9 then you should check out the arbitrary gamejam subreddit! /r/TheArbitraryGamejam ~Charles

The Adventures of Clark Doud - Demo Video - Should I dig this up?

Recently, someone approached me about my Dark Cloud fan project asking for information on its progress so I decided to make this video so that anyone who's interested can get up to speed. https://www.youtube.com/watch?v=aZNoYskEoJk I haven't touched the project in a long time, but if there are a few people who want to see this happen (Dark Cloud was a really underrated game, so there aren't that many fans) i'll pick it up again. Just leave a comment below if you're interested. ~Tick

[Pre-Alpha Peek] - Introducing Aimless

Aimless is a mega simple physics puzzler  very loosely inspired by portal. I've been building it on and off for about... 3 days? It's nothing too crazy. I'll be adding new levels and mechanics to it over time but I don't think i'll dedicate focus to it. If you want to get a good idea of what the game is all about you should play this demo build of the game: Aimless Pre-Alpha Demo Web Player: https://dl.dropboxusercontent.com/u/61650099/Aimless/Aimless.html Controls: Aim - Mouse Movement Fire - Left Mouse Reset - Space Until next time! ~Tick