ICM Week 2

This week, I programmed a small game.

1.Draw an orange.

Then I decided to add some randomness to the color and the stroke of the orange:

2.Next step: make the orange move.

3.Make a knife

4. What happens when the knife cut the orange.

I was considering making the image frozen when the knife cut the orange, then make the movement that orange become into two pieces and drop down. But I tried several times, failed.

So, I turn to make a text.

And this is the final version.

Questions

I cannot find the reason through the code, how to fix it?

  • How to make other interaction for instance when mouseX meet some requirement, make the screen changed and frozen?

Leave a Reply

Your email address will not be published. Required fields are marked *