Showing posts with label Game Design. Show all posts
Showing posts with label Game Design. Show all posts

Wednesday, April 1, 2015

Rename SpriteBuilder Project

So, unless it's easy to rename an existing (like for example a nice game starter package); it will be pretty un-helpful to publish said examples.

So... off I went to discover the steps involved in the renaming process and it boiled down to TWO major steps.

STEP ONE:
1: Copy and rename the .spritebuilder file (bundle).
2: Once duplicated, rename it - make sure you conform to the standard SpriteBuilder limitations (USE NO SPACES).


3: Right-click and choose "Show Package Contents" to open the bundle folder. Just rename the .ccbproj file.



4: Double-click the Xcode project to open Xcode and proceed to STEP TWO.
In our example we are going to rename "StarterGame.spritebuilder" to "AwesomeProject.spritebuilder".


STEP TWO:
1: Once open in Xcode, perform a normal rename via the "Name" field in the right column.




Afterwards I usually close and exit Xcode then open the new project in SpriteBuilder, publish and use the shortcut to open Xcode.

Enjoy
:)

Tuesday, February 4, 2014

Unity3d and "strings"

I've been using the Unity Asset Store a lot and have downloaded quite a lot of free assets and purchased my fair share as well.

One thing I see a lot in many of the C# scripts (probably in Javasc, oops  UnityScript too) is the repeated use of using plain old STRINGS in critical, e.g. game breaking methods and processes.

I mean we use strings all of the place and it seems like Unity / C# is no exception especially since you define and use both TAGS and LAYERS and they are of course strings!

Here's my GOLDEN RULE for STRINGS:
If I have to type the contents of a string (like "com.meachware.levelOneLeaderboard") more than ONCE; I must create a constant for it. <- period!


The kicker is the simple fix in C# is this:

using UnityEngine;
using System.Collections;

namespace com.ootii.Messages {
    public class Type {

        // A list of Message types.
        public const string all = "EVERYONE";
        public const string filter = "FILTER";
        public const string target = "TARGET";

    }
}
Note: This example is taken directly from the awesome Unity Dispatcher asset I just purchased and even he didn't use constants (that's the reason for the "namespace").

Yup, create a new class and list out all your string constants. Then in ANY other class when you need to access them, instead of typing "FILTER" you simply use "Type.filter" (without the quotes).

Oh AND you get, for FREE type-ahead / autocorrect! How sweet is that!

Now I have not done any benchmarks to see if you have say 1200 const string entries it impacts memory / performance but I gotta believe the benefits outweigh any impact.

PS Full credit for this concept (at least where I learned it from) is the Unity Learn series / Stealth project. Here's the link where they talk about Tag Management.

Thursday, October 7, 2010

Game Center Design

I've read numerous forum and blog posts recently and initial reactions to Game Center from Users is:
The login (UIAlertView) sucks and looks like the app is trying to steal my iTunes Account.
This is a good place for a pre-sign-on modal view or alert, asking if they want to use Game Center and explaining that the next dialog box is required to log into / authenticate with Game Center and is provided by Apple. If the user doesn't want Game Center then disable it and prompt them no more. Also let them know where to turn it (Game Center) back on should they want to use it in the future.

Just my $0.02 :-]

Tuesday, September 28, 2010

Minimum Requirements For Your Game

I think at a minimum, a game should provide:

  • Menu:
    • logical structure
  • Pause option:
    • have some way for the player to pause
  • Save and resume:
    • have some way to resume a saved game
  • User options: 
    • sound / music adjustment
    • controls adjustment (if applicable)
  • Credits:
    • developer info w/email
    • link to website / other games

So what are your minimum requirements for a game?