*3.3. Gamification Platform*

The third component of the PERGAMON framework is the Gamification Platform. Goals in the platform can be defined and created by a game designer using a platform designer's interface. The main gamification elements in the PERGAMON platform are Tasks and Goals. A task is the basic unit, and corresponds to a single action that can be performed by the user. When a task is complete, the user will receive a certain number of points. A goal is a set of different tasks. The completion of a goal will give the user a bonus score, translated into points. Tasks can belong to the following activities:


All the activities in the PERGAMON framwork are gamified, e.g., each interaction with the system will be associated with a score. Users will receive immediate feedback by completing tasks, and gaining scores. A progress bar will indicate the goal percentage of accomplishment showing the progress the user has made (see Figures 4 and 5). The difficulty of the goals will increase when the user advances in using the system. Goals can be mono-thematic (e.g., all about diet or physical activity) or multi-thematic (e.g., "A perfect healthy day", that includes diet, physical activity, and therapy management).

**Figure 4.** Gamification platform, Goals.

**Figure 5.** Gamification platform, Tasks.

Users can challenge themselves, deciding to accomplish a task within a certain period of time, receiving, as a consequence, a bonus score, or they can simply conduct their normal life, and accomplish tasks unintentionally as part of their daily routine, while their accomplishments are recorded by the sensor devices from the Sensor Network. Points are associated with both tasks and goals; each task will have its corresponding score, while a goal will give a bonus score as reward. In fact, once a goal is accomplished, users will receive a bonus percentage of points. The gamification platform manages three kind of points:


These three different kinds of points are needed to continue playing the game and are used to create a leader board to share this with friends.
