Code! Here’s some objectiveC code I’m playing around with for tilting

– (void)viewDidLoad


fRadius = ivRStickMan.frame.size.width / 2;

cDelta = CGPointMake(0.0, 0.0);

cTrans = CGPointMake(0.0, 0.0);

mm = [CMMotionManager new];

if (    mm.isDeviceMotionAvailable) {

mm.deviceMotionUpdateInterval = 1.0/60.0;

[mm startDeviceMotionUpdatesToQueue:[NSOperationQueue currentQueue]

withHandler:^(CMDeviceMotion *motion, NSError *TheError)


CMAttitude *currAttitude = motion.attitude;

float roll = currAttitude.roll;

float pitch = currAttitude.pitch;

float yaw = currAttitude.yaw;

tRoll.text = [NSString stringWithFormat:@”%f”, roll];

tPitch.text = [NSString stringWithFormat:@”%f”, pitch];

tYaw.text = [NSString stringWithFormat:@”%f”, yaw];

CMAcceleration cAcceleration = motion.userAcceleration;

tX.text = [NSString stringWithFormat:@”%f”, cAcceleration.x];

tY.text = [NSString stringWithFormat:@”%f”, cAcceleration.y];

tZ.text = [NSString stringWithFormat:@”%f”, cAcceleration.z];

//animate the rotation via the stick man

if (currAttitude.roll > 0.1)

cDelta.x = 2;

else if (currAttitude.roll < -0.1)

cDelta.x = -2;


cDelta.x = 0;

if (currAttitude.pitch > 0.1)

cDelta.y = 2;

else if (currAttitude.pitch < -0.1)

cDelta.y = -2;


cDelta.y = 0;

[UIView animateWithDuration:0.5


ivRStickMan.transform = CGAffineTransformMakeTranslation(cTrans.x,


} ];

cTrans.x = cTrans.x + cDelta.x;

cTrans.y = cTrans.y + cDelta.y;

if ( + cTrans.x > 320 – fRadius || + cTrans.x < fRadius) {

cTrans.x -= cDelta.x;


if ( + cTrans.y > 460 – fRadius || + cTrans.y < fRadius) {

cTrans.y -= cDelta.y;


//             //don’t leave the screen

//             if (cTrans.x < 0)

//                 cTrans.x = 0;

//             if (cTrans.y < 0)

//                 cTrans.y = 0;

//             if (cTrans.x > 320)

//                 cTrans.x = 320;

//             if (cTrans.y > 480)

//                 cTrans.y = 480;



//             float roundedValue = round (2.0f * 5) / 2.0f;

//             NSNumberFormatter *MyFormatter = [NSNumberFormatter new];

//             [MyFormatter setMaximumFractionDigits:2];

//             [MyFormatter setRoundingMode:NSNumberFormatterRoundDown];

//             NSString *numStr = [MyFormatter stringFromNumber:[NSNumber numberWithFloat:roundedValue]];



[super viewDidLoad];

// Do any additional setup after loading the view, typically from a nib.



Random #s – third app!


A simple and quick random number generator that doesn’t require keyboard input but allows you to generate numbers from 1 to 999, or 1 to 2, or anywhere in between.

Want to generate a number from 1 to 50? Tap a few times and then generate your number!

No keyboard input simplifies input.

Keep two separate maxes so you could get a number between 1 and X and a number between 1 and Y with just one tap.

Includes a simple click sound for the random number generation, though there is also a mute option.

Gets random numbers from! Please donate to them if you use this app a lot.

And when isn’t available from your device, random numbers are generated on the fly so you’re never short on random numbers

Tracker Tap – Second app

Simply track multiple numbers quickly and easily just by tapping plus or minus above each tracker. Use it to count cars passing by, or scores in a game, or specific aspects inside a game.

* remembers your data and settings when it closes
* no need to use the keyboard to track scores. Just tap!
* sounds for adding/subtracting points to a score
* mute feature
* color and name each player quickly and easily, or simply give each tracker a color if you don’t want to use the keyboard
* also features a +5 button you can toggle on/off
* reset button can reset scores (prompts you)
* delete button can delete a tracker or all trackers (prompts you)
* screen slides over so you can track more numbers than a screen worth. tested up to 100


Find it in the apple app store via iTunes or your iOS device today!

Kingdom Builder Randomizer v1.0 now available in the app store!

Kingdom Builder Randomizer (KBR) randomly prepares you a setup for the board game Kingdom Builder. Note that this app only assists in setting up a game of Kingdom Builder. This app is not a game.

KBR handles the boards/locations, which way to face them, which cards to use for points, and even the Capitol promo and where to place that!

I find it awkward to truly get a random setup using the boards and tiles provided (especially the Capitol). That’s why I created this app to simplify it for everyone.

All current Kingdom Builder tiles, cards, and promos are supported. And as more expansions/promos arrive, I will integrate them into this app at no additional cost to you. At that point I’ll let you toggle off expansions/promos. For the moment, if you don’t have the Capitol or don’t want to use it, simply ignore it.

Also, in the future I will provide a way for you to type in your own board names and card names so you can try your own ideas out.

Kingdom Builder is designed by Donald X. Vaccarino. Kingdom Builder Randomizer is not affiliated with Donald X. Vaccarino or any publisher of Kingdom Builder.