Activities/Food Force 2

From Sugar Labs
Jump to navigation Jump to search

FoodForce2

FoodForce 2 has been designed to educate and motivate people to solve world hunger. Since the laptop reaches out to the developing and third-world countries, it also educates children and teachers in a village on how to acheive self sustenance in a fun and non-intrusive way. It also provides awareness about the work WFP has been doing for the past many decades to abate the problem of world hunger.


Vision and Learning

FoodForce2 is both a classroom tool, and an outside classroom activity. It is a new kind of an educational solution, an “expanded school” which grows well beyond the walls of the classroom. The game play has been designed in a way to educate the child about certain key learning areas. The key learning areas on which the game focuses are:

  1. Strategy: FoodForce2 is a strategy game in which decision-making skills of a player have a high significance in determining the outcome. The Player is suppose to plan and execute a strategy in such a way that he can make an optimum use of the resources available with him, so that the village can become self-sustainable for a long time.
  2. Sustainable Development: FoodForce2 teaches player to set limits on the consumption of the present available resources so that they can be used to address future development issues which are critical for sustainable development.
  3. Trading: Economic futures of any world community, particularly developing world, is affected by their present trading system. FoodForce2 assist player to integrate into the trade system and multi-lateral trade negotiations. It develops skills for unbiased, rule based and nondiscriminatory trading system.
  4. Technology and its use: Technology involves the usage of tools which affects and controls the environment, and the ability to adapt to it. The basic lifestyle in every aspect of our daily lives, the kind of housings, our transport, medical facilities, fashion and entertainment all depend on technology. FoodForce2 demonstrates the effect of using technology in the development of various facilities like hospitals, housing facilities, education and training. It teaches player about the importance of technology for development.
  5. Crisis Management: A crisis is a major, unpredictable event that harms human communities and is accompanied by widespread malnutrition, starvation, epidemic and increased mortality. Crisis management consisting of understanding, and coping with any serious situation, especially from the moment it first occurs to the point that recovery procedures start. FoodForce2 teaches crisis management by redesigning the village affected by natural calamities. In the game choices available to players are constrained by economic, social, and physical realities of life in a village. And their actions are highly structured by the practices of urban planning
  6. Collaboration: Collaboration is a recursive process where different organizations work together for common goal by sharing knowledge, learning and building consensus. FoodForce2 demonstrate that a community is not supposed to be building in a closed environment. Players should be free to interact with the outside environment i.e. the other villages, which are being developed by his peers.


Building Blocks

The game aims at teaching children lessons on achieving sustainability and self-sustenance. It also provides lessons on Globalisation which are implemented through inter-community interaction. To impart these learning lessons, the game has been modelled around a few key elements or building blocks of the game.

The basic building blocks of the game are :

  1. Facilities: Facilities are installations which serve the villagers. They play a crucial role in functioning and the development of the village. Resources are required for building a facility. Once the facility has been built it consumes certain resources for it's functioning and also produce some resources. Facilities can also be upgraded once they have been built. The different facilities present are: House, Hospital, School, Workshop, Farm and Well.
  2. Resources : Resources form the essence of any community. Resources are required to setup facilities and are also consumed constantly by the people of the village. Resources can be traded for money in the market, which can be later used to buy some other resources. The price of each resource is dependent on the market forces The different resources present are: Building Material, Tools,Medicine ,Books ,Water and Food. Food is further divided into Rice, Wheat, Beans, Sugar, Salt and Oils.
  3. Indicators: Indicators are a measure of the development of the village. They aim at providing a holistic approach towards assesing the development work taking place in the village. The different indicators present are: Housing, Health, Nutrition, Education, Training.

Game Play

The aim of the player is to make a village self-sustenant in terms of nutrition, housing, health, education and training by consistent production and trading of resources with the help of necessary infrastructure. The game currently has a storyboard, which is developed from a viewpoint of an Indian villager, who is the Sarpanch (The administrator of the ruling body, Panchayat, of the village) of a village and his son helps him in the development of the village, who is the next candidate for the position currently held by his father.

There are three major aspects of the game:

  1. Construction of Facilities :
    File:FoodForce2 Setup Window.png
    FoodForce2 Setup Window
    Some of the facilities like houses and hospitals are already built at the start of the game. Constructing new facilities such as houses, schools, workshops, farms and wells requires some resources. Once the facilities have been built they start producing appropriate resources and also increase the indicators. Facilities also affect the manpower distribution of the village by providing employment.
  2. Upgrading Facilities : Once a facility has been built it can be upgraded to produce more resources. Upgrading of facilities uses some of the resources of the village, mainly building material and tools. Various upgrades like brick and mortar, functional upgrades and electricity are provided for each facility. Every upgrade costs resources, but an upgraded facility will be more efficient and effective. Upgrading a facility also increases the value of the indicators
  3. Trading of Resources :
    File:FoodForce2 Market.png
    FoodForce2 Market in the village
    The final cornerstone of the play is trading which is crucial to a village's success. For trading, every village is provided with a market, which is visited by traders from neighbouring villages for trade. The price of the resources is determined by market forces. A village cannot effectively grow without a smart trader, timely trades can give your village a leg-up and help it attain prosperity over time.

All the above features of the game play have been illustrated using an interactive storyboard. The storyboard consists of 8 missions. The first 4 missions aim at teaching the player about how to get started. Once the player has got the knowledge of how to maintain the village, then he is made to face the real challenges. The next four missions expect the player to apply the knowledge he gained from the first four missions to real-life scenarios. There are scenarios like occurence of earthquake, through which disaster management skills are imparted to the player.

We also understand/realized this thing that all the topics of Social Concern cannot be integrated into a single story. Thus we are also working on making a storyboard creator tool for the educators/teachers through which the teachers can create their own storyboard and easily import them into the FoodForce2 game and ask their students to play that storyboard on the FoodForce2 platform. This would provide the teachers with tool/platform through which they can address to any of the social issues they want to focus on.

Storyboard

The game is currently based on a fully functional storyboard. To know more about the storyboard, visit : FoodForceII/Storyboard



Implementation

The game has been developed in python and pygame. Pygame is a game development module in python, which is based on SDL (Simple Direct Media Layer Library), the portability of SDL library on almost all operating systems imparted the same to the FoodForce2 game.

The game is based on a MVC (Model – View – Controller) design model. This software design model consists of three components : Model, View and Controller. The Model serves as the backend of the game which is responsible for managing all the data values related to the game. The View module is responsible for the front end of the game, it handles the Graphics of the game, GUI and Interaction with the user. The Controller module serves as an interface between the View module and the Model, it interprets the commands given by the user through the View module and on the basis of which it makes changes in the model, and when there are some changes made in the model those are also reflected in the view module through the help of this module.

While developing the game, one of the biggest challenges was to make the game run on the OLPC laptops. To make the game work on the OLPC laptops it was required that the game is highly efficient and has a very small memory footprint, as the hardware of these laptops is not quite advanced and in sync with the computer hardware used on other laptops. In our endeavour to achieve this objective. We went beyond the conventional techniques of implementing various features of the game, and developed such algorithms that they would be requiring minimum amount of memory and time to run the game.

The Mesh Network (a wireless network in OLPC laptops) helped us in implementing the Collaboration feature in the game. Any two laptops can connect to each other and talk to each other through this mesh network. The game once shared over the mesh network can provide interaction between the two villages being virtually developed in the game.


Deployment

The game has been successfully deployed and tested. For details, visit: FoodForceII/Project_Deployment

Features

  1. The game has been designed in Python and Pygame and is very portable and can be run on different operating systems such as Windows, Linux and Mac.
  2. The game has a very small memory footprint and is thus easily deployed on an XO.
  3. The code base has been made efficient and speedy to deliver the best performance to the user.
  4. Extensible Design which allows easy modifications and extensions over the current game structure with total independence of Model, View and Controller.


Code Base and Status Updates

Beta version of the game has been released. Please check the download section at : http://code.google.com/p/foodforce/downloads/list.

Relevant Files :

  1. FoodForce2-Beta.xo : XO bundle for Sugar.
  2. FoodForce2-Beta.exe : Installer for Windows.

Credits

  1. Lead Developer : Mohit Taneja (mohitgenii AT gmail DOT com)
  2. Project Manager : Deepank Gupta (deepankgupta AT gmail DOT com)
  3. Co-Developer : Vijit Singh (vijitthetopcoder AT gmail DOT com) Peeyush Kumar (peeyush.hsuyeep AT gmail DOT com)
  4. OLPC Project Co-ordinator : Manusheel Gupta
  5. Artwork Lead : Silke Buhr
  6. Artwork : WFP Artists from Italy