Skip navigation

..code

source code description

The prototype program is created in Mobile Processing.

Thanks to the gorgeous function of Tab in mobile processing, we were able to use 3 tabs to clarify the structure of the code.

The first tab named instant_carnival is mainly used for recording the update history and taking some notes.

The second one named Graphics is used for storing all the functions of  image loading and screen drawing. For better control and modification of every screen we created function for each of them. At the same time this allows us to distribute the specific screens to group members so that we can work on a mount of screens simultaneously.

The third one is Logic. We put all the variables declarations at the begining of the code so that we can modify them easily. Then it’s the setup() part in which we load all the images, sounds and fonts we need. Framerate is a tricky function which is sometimes very useful to get the right result of the animation. The draw() part is very clean thanks to all the functions we have built in the Graphics tab. The last part is keyPressed() event in which we carefully built the sequence of screen and all the interactions when user presses the buttons.

<<previous | next>>

Instant Carnival |  Details |  Stuff |  How it works |  Graphics |  Technology |  Code |  What users say |  Download |  Credits