Game Development Reference
In-Depth Information
var bodyA:b2Body=fixtureA.GetBody();
var bodyB:b2Body=fixtureB.GetBody();
var userDataA:String=bodyA.GetUserData().name;
var userDataB:String=bodyB.GetUserData().name;
if (userDataA=="floor" && userDataB=="idol") {
levelFailed();
}
if (userDataA=="idol" && userDataB=="floor") {
levelFailed();
}
}
}
}
}
}
Again, notice I have converted radians to degrees when dealing with the
GetAngle method.
7.
Test the movie, and here is your skinned Totem Destroyer game:
At this time, it's only a matter of designing levels.
 
Search WWH ::




Custom Search