PROGETTAZIONE DI GIOCHI NELL’ISTRUZIONE

Traduzione dell’articolo di: Mark Overmars – Institute of Information and Computing Sciences – Utrecht University – 3584 CH Utrecht, The Netherlands – E-mail: markov@cs.uu.nl

I videogame hanno un ruolo molto importante nella vita della maggior parte dei più giovani.
I giochi offrono molte possibilità nell’istruzione.
Molti hanno studiato l’utilizzo di giochi già esistenti oppure di giochi progettati specificatamente per la didattica.
In questo articolo si tratta l’uso dei giochi nell’ambito scolastico, soprattutto nelle scuole superiori.
La progettazione di giochi può essere utilizzata in molti ambiti disciplinari: linguistico, artistico, matematico, informatico.
Inoltre viene presentato l’applicativo Game Maker che può essere utilizzato dagli studenti per creare facilmente i loro giochi.

 

INTRODUZIONE

La maggior parte dei ragazzi, studenti, giovani adulti amano giocare con i videogame.
Si tratta di un aspetto molto importante della loro vita.
Passano una grande quantità di tempo nel tentativo di migliorare le loro prestazioni in questi giochi e l’intervallo di attenzione che hanno per un gioco è molto lungo.
Questa è evidentemente una buona ragione per gli insegnanti per investigare su come i giochi possano essere utilizzati nell’istruzione.
Questo ha portato a un certo numero di giochi didattici, alla formazione di una sotto disciplina della progettazione di giochi (…) e a un numero crescente di ricercatori che studiano questi fenomeni e le loro implicazioni nel sistema scolastico (vedi Prensky 2001).

GAME DESIGN IN EDUCATION - Roman Total WarUn approccio è quello di utilizzare i giochi tradizionali in ambito didattico.
Giochi come SimCity possono far comprendere i sistemi economici, Super Monkey Ball può insegnare ai bambini alcuni principi della fisica, e Rome: Total War può dare uno sguardo storico nell’Impero Romano.
Sfortunatamente questi giochi non sono indirizzati alla didattica e quindi non sono semplici da utilizzare in classe.
Alcuni insegnanti utilizzano i giochi anche per premiare i ragazzi per il loro impegno ma questo è un approccio povero.

L’approccio più comune è quello di creare giochi scritti per certi obiettivi didattici.
Sfortunatamente, la maggior parte di questi sono di bassa qualità.
Ci sono molti motivi

  • Un motivo è che gli investimenti per giochi didattici sono normalmente di ordine di grandezza inferiore di quelli per i giochi normali.
    Come risultato, i ragazzi saranno insoddisfatti del prodotto.
  • Ma più importante, i principi dei giochi e gli obiettivi didattici sono spesso in conflitto.
    Senza scendere nei dettagli, da una parte c’è l’esigenza didattica che spesso richiede di dare il controllo all’insegnante su quello che si insegna e dall’altra parte un ingrediente cruciale dei giochi interessanti è che il giocatore dovrebbe avere il controllo sull’azione.
  • Mentre i giochi possono essere adatti nel fornire indizi, possibilità di esplorare, di capire meccanismi intricati e fare scelte conseguenti, la maggior parte dei giochi didattici si concentrano su fatti e capacità specifiche senza dare un’adeguata motivazione all’interno del gioco.

C’è ancora una lunga strada da fare prima che il sistema scolastico cambi nella direzione che i giochi vi possano avere un ruolo importante.

In questo articolo esploriamo una terza via nell’uso dei giochi nell’istruzione.
Piuttosto che utilizzare i giochi concentriamoci sulla creazione di giochi.
Creare giochi richiede molte competenze che possono essere facilmente collegate a certe discipline scolastiche.
Inoltre, creare un gioco su qualche argomento può essere un modo adatto e motivante per capire certe cose.
La progettazione di giochi può essere utilizzata nelle discipline linguistiche, artistiche e in informatica, fisica, geografia, …
Indicherò alcune di queste possibilità e poi mi concentrerò sul programma, Game Maker, che ho scritto per questo.

 

ASPETTI DELLA PROGETTAZIONE DI GIOCHI

Creating a computer games involves many different aspects.
The game play must be defined, the story must be written, the characters must be designed, levels must be created, and interaction and behavior of computer controlled entities must be programmed.
Usability tests are required to make sure the game satisfies the player’s demands, and a marketing and promotion plan is required to actually sell the game.
All these aspects can be used in an educational context.

Language classes for example could study the important aspects of stories in games.
See for example (Glassner 2004) for an overview of the role of stories in games.
Students could write a game story, for example for an adventure game.
This would be highly motivating, in particular when their stories would be used in other classes to be turned into an actual game.

In art classes, rather than e.g. drawing portraits, students could design game characters that express a certain archetype, or they can paint game backgrounds that add the correct atmosphere to the game.
They can design the 2-dimensional or 3-dimensional levels in which the game takes place.
And, going a step further, they could design animations and even introductory movies for the games.

In music classes students could study game music and the effect it has on the player.
They could investigate adaptive music that smoothly adapts itself to the game situation and they could compose their own game music using the various packages available.

DISCIPLINE MATEMATICHE

The core of a game consists of the rules that define the game play.
Rules on one hand describe the inner mechanisms inside the game (for example how much damage a particular weapon does to an enemy) and on the other hand describe the moves the player can make.
See (Salen and Zimmerman 2004) for an extensive study of rules in games.
This applies equally well to board games, sport games, and computer games.
A prime aspect of designing a good game is to come up with a set of rules that is consistent, balanced, and meaningful.
This obviously requires creativity but also mathematical skills, in particular in logic and probability calculus.

GAME DESIGN IN EDUCATIONSuch systems of rules are very suitable for an educational context.
For example, students could investigate the well-known rock-paper-scissors principle in which paper defeats rock, rock defeats scissors, and scissors defeats paper.
Such a simple cyclic relation unfortunately leads to rather boring gameplay (the best strategy is to make random choices) but more complex relations can be studied as well, like the one depicted in Figure 2 that is rather common in real-time strategy games (Rollings and Morris 2003).
An arrow indicated the relative strength, for example, the archers are stronger than the (horse) bowman.
Here students could deduce that for example infantry is not required to win a game.
Schemes can be made more interesting by adding costs to entities (often called shadow costs in game design terminology) and calculations can be made to determine the correct relative costs between units.
This leads to various aspects of the mathematical field of game theory. See e.g. (Dutta 2001) for an easy introduction.

GAME DESIGN IN EDUCATION - Some high school students, during a workshop, are designing a game with some dice and colored stones.Probability also plays an important role in games.
Many games contain events that happen with a certain chance, for example the appearance of a special bonus.
The game designer must choose such chances correctly to obtain interesting game play.
This can be used to introduce probability theory to students.
For example, students could be asked to design some sort of casino game in which they have to determine the correct height of the prices in relation to the chance that certain combinations of dice or playing cards appear.
Even letting students design a simple game involving a few dice already leads to a fun challenge (see Figure 3).

INFORMATICA

When I was taking my first steps in programming I was very excited when I could write a program to compute the first 100 prime numbers.
Nowadays, computer applications provide access to music, video, and games, and novice programmers want to create similar programs.
Unfortunately, such programs are difficult to create.
Teachers have tried to raise student interest by using languages such as Logo that can create interesting drawings, or robots, such as the Lego MindStorms.
But using Logo to make drawings is no longer flashy enough, and robots are rather expensive and limited in their functionality.

Creating computer games on the other hand is a challenge that many students want to take on.
Developing computer games involves many aspects of computing, including computer graphics, artificial intelligence, human-computer interaction, security, distributed programming, simulation, and software engineering. It can be used as a
vehicle to teach students about these topics.

Many teachers indicate that it is difficult for students to understand object-oriented programming.
This is somewhat surprising because object-oriented design is very natural.
In real-life we think in terms of objects with certain properties and behavior.
Still, once people write a program they tend to adopt the traditional view of instructions being executed and control structures.

But when you are creating computer games, the situation changes.
In a computer game, everything is an object: the monsters, wall segments, coins, bonuses, power-ups, and the guns and bullets.
Thinking about creating games means thinking about objects and how they react to one another and to the player’s input.
So the game creator naturally thinks in an object-oriented way.

Also inheritance, a powerful but sometime difficult to grasp object-oriented programming concept, becomes much easier to understand in a game design context.
Take, for example, the well-known class of games based on Breakout, in which the user must destroy stones by hitting them with a bouncing ball.
All stones exhibit similar behavior but will appear in a variety of shapes and colors.
These characteristics make it logical and efficient to create one stone object and specify its behavior, then create similar objects with different colors that inherit the original stone object’s behavior.
Making modified stones that override certain behavior also becomes an easy concept.
For a more extended description see (Overmars 2004).

Finally games can be used to let students understand how to plan and execute a larger project.
Creating games can involve different people (even from different courses) that must work together as a team.
Writing design documents, performing usability studies, and setting up a good testing environment are crucial for the success of games.

 

PROGETTI DI GIOCHI

La progettazione di giochi può giocare un ruolo in altre discipline.
Per esempio, in chimica e fisica gli studenti potrebbero creare giochi per analizzare o spiegare concetti come gravità, elettricità, reazioni chimiche.
In economia potrebbero progettare un proprio sistema economico per una simulazione di città.
E in geografia potrebbero realizzare giochi sulla collocazione delle città.
Con un po’ di immaginazione puoi trovare molte altre possibilità.
In questo modo gli studenti possono creare i propri giochi didattici.

 

GAME MAKER

Creating computer games is not an easy process.
Commercial games are the combined work of teams of 10 to 50 people and require budgets of millions of dollars.
And even creating smaller, simpler games from scratch would be a complicated task requiring advanced programming skills.
Fortunately, there are a number of software packages available that make it way easier to create computer games, replacing (part of) the programming by mechanism in which games are constructed from simple building block.
Examples are StageCast , that is particularly aimed at young kids, and the products by ClickTeam.
Many similar packages exist, several of which can be found at http://www.ambrosine.com/resource.html.

GAME DESIGN IN EDUCATIONIn this paper we will concentrate on Game Maker, written by the author.
Game Maker, is a rapid-application development tool currently used worldwide by young people at home and in schools to create two-dimensional and isometric games.
Figure 4. The Game Maker interface. The left side displays resources such as sprites and sounds, while the right side shows the object editor, room editor, and other property forms.
Figure 4 shows the Game Maker interface, which uses an object-oriented, event-driven approach. With Game Maker’s drag-and-drop techniques, users can create games without writing a single line of code, but it also includes an interpreted programming language.
The program produces stand-alone games that can be distributed freely; a version of Game Maker itself is available for free as well.
Game Maker has become extremely popular during the past few years.
In 2003, users downloaded over a million copies of the program.
An active user community exists with many forums.
The youngest users, 8-year-olds, receive their introduction to computer programming through Game Maker.
The oldest users are 80-year-old senior citizens.
Game Maker uses an object-oriented design concept as described above.
Creating a game consists of defining objects.
Some objects have a visual representation, such as an animated sprite.
Others, like those that control game flow or maintain the score, might lack this feature.
Multiple instances of the same object can appear in the game at the same moment.
Instances have properties. Some are built-in, like the speed with which the instance moves and the sprite used to represent it. Others can be defined, manipulated, and checked using actions or code. The user must define each object’s behavior. While some objects, like wall segments, will have no behavior, others, like the avatar representing the player, will most likely have complicated behavior.

GAME DESIGN IN EDUCATIONGame Maker defines behavior in event-driven terms.
Events occur for objects, and the designer specifies actions that the game must execute when these events occur.
Typical events include object creation or destruction, user input, collisions between instances, and alarm clocks.
To achieve this, the game designer can simply drag and drop actions into events, as Figure 5 shows.
Inheritance is achieved by simply setting the Parent field in an object.
This indicates that behavior is inherited from another (parent) object.
Game Maker has more than 100 built-in actions, ranging from moving the object in a particular direction to playing a sound or displaying a high-score list.
For more advanced tasks, the designer uses a code action to type in pieces of code that are executed when the event occurs.
Within this code are close to 1,000 possible functions that can control all aspects of the game, including a particle system, network play functionality, and routines Figure 5. Object property form.
The list of defined events for the enemy appears in the left center, while the actions that the game must perform when the enemy collides with a bullet appear to the right. for 3D graphics.
Students in general will start using the drag-and-drop actions but soon realize the use of writing pieces of code.
In this way they are naturally introduced into the concept of programming.
Once the objects are defined (and the required sprites and sounds are added to the game) the designer can create rooms (or levels) using the room editor.
Instances of objects are placed in the rooms and when the game is executed these instances come to life because of the actions in their creation events and they start reacting to each other and to the user input though the actions in their collision events and keyboard or mouse events.

GAME DESIGN IN EDUCATION GAME DESIGN IN EDUCATION GAME DESIGN IN EDUCATION

Creating games with Game Maker is very efficient.
After some experience with the program, a typical Pacman clone takes less than an hour to create.
As a result the students can concentrate more on the design aspects of the games rather than on all the details of getting the game to work.
People have created all sorts of games with Game Maker, ranging from simple maze games and scrolling shooters to adventure games and strategy games.

CONCLUSIONI

La creazione di giochi piace a tutte le età, sia ai maschi che alle femmine.
Non riguarda soltanto la programmazione ma anche discipline artistiche, discipline scientifiche, scienze sociali e informatica.
Utilizzando la progettazione di giochi in ambito scolastico crei un gruppo di studenti entusiasti che hanno voglia di imparare e che capiranno che creare i giochi può essere più divertente che giocarci.

BIBLIOGRAFIA

  1. Dutta, P.K., 2001. Strategies and Games, The MIT Press.
  2. Glassner, A., 2004. Interactive Storytelling: Techniques for 21st Century Fiction, A K Peters, Ltd.
  3. Overmars, M.H., 2004. “Teaching computer science through game design.” IEEE Computer 37, no.4 (Apr): 81-83.
  4. Prensky, M., 2001. Digital Game-Based Learning, McGraw-Hill.
  5. Rollings A. and D. Morris, 2003. Game Architecture and Design, New Riders Publishing.
  6. Salen K. and E. Zimmerman, 2004. Rules of Play, Game Design Fundamentals, The MIT Press.