Wednesday, February 17, 2010

Invisible Architecture - Change of plan


I have changed my invisible architecture project, instead of having the countries moving to the beat of a track. I have decided to create buttons over all of the countries and when you click on them, a marker moves across the map to the country of choice and reveals their global warming information and other statistics.

This is how the code will roughly look.

import mx.transitions.Tween;
import mx.transitions.easing.*;

var cities:Array = ["uk", "france", "italy","croatia"] (etc)


function mover (targetX, targetY){
currentX = marker_mc._x;
currentY = marker_mc._y;
var xTween:Tween = new Tween(marker_mc, "_x", Strong.easeOut, currentX, targetX, .5, true);
var yTween:Tween = new Tween(marker_mc, "_y", Back.easeOut, currentY, targetY, 1.5, true);
}

for (var i = 0; ivar my_btn = this[cities[i]+"_btn"];
my_btn.myCity = cities[i];
my_btn.onRollOver = function() {
mover( this._x, this._y);
marker_mc.gotoAndStop(this.myCity);
}
}

This should be complete and uploaded by the weekend.

Sunday, February 14, 2010

iPhone Visual - Game update.

I have been focusing on the actual connection between the iPhone and the screen, how I can do it and what I will be using to do this.
I need to code the application using xcode which is a program on mac. After this I will have to code the bluetooth function which will interact with the screen. This will be done in Java.
Once this is done I will have to use a program called Merapi which is a gateway between web and desktop software, so that the phone and screen can connect with the phone smoothly.

www.merapiproject.net