I'm moving away from having cross pieces, since the idea will be to build paths for the fruit, and cross pieces will catch and hold it. I want the fruit to keep moving as much as possible to keep the pace in the game.
Coding this in unity should be fairly easy.
On a game controller object,
if (timer =< 0)
{
spawnFruit();
timerReset();
}
for the planks,
onMouseClick(Left)
{
transform.Rotate(0,90,0);
}
onMouseClick(Right)
{
transform.Rotate(0,-90,0);
}
and for the Baskets
onCollisionEnter(collider Type)
{
if (type = basketType)
{
score ++
}
else
{
life --
}
Type.transforme.gameobject.delete;
}
Should be enough to get prototyping.
No comments:
Post a Comment