During this week, I have implemented the function of grabbing the red ball. The interface is as shown below.
The frog is now able to grab the red ball in the middle. Once the frog touches the red ball, the ball will be with the frog which is as the screenshot below.
Once the frog gets the ball, it need to go back but cannot touch the yellow blocks. If the frog touches any of the yellow blocks, it will be replaced to its starting point and the red ball will also be replaced to the middle. Here is the part of the code that I have been added since the last implementation.
However, there is no respond showing the player wins the game after the frog arrives its destination at this stage. This will be implemented in the next prototype as well as the other player.




没有评论:
发表评论