Game templates

From OLPC
Revision as of 19:50, 14 December 2007 by 71.42.239.50 (talk)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The target audience for game templates is kids who are novice programmers with some Python and Pygame experience, but who have never built a large project on their own before. We want to give the students a sense of accomplishment and an outlet for creativity, without overwhelming them by starting from scratch. Game skeletons make it easy and quick for a student to develop a simple game, without much frustration or experience, by just "filling in the blanks" using code snippets and adding images. But, they also don't restrict the student from going above and beyond, by extending the template to make a more complex game.

How to Contribute

Get acquainted further with the project by reading the IT Girl Wiki: http://itgirl.wikispot.org/
Then, write some code!

  • Create a template (we're still missing an arcade template)
  • Use a game template to write an example game
  • Write a code snippet/recipe for a game action

Game Genres

The following game genres are common genres when designing educational games. At least one template is needed for each genre. These genres are based on game designs created by high school girls (see Pilot Program).

The game templates are stored at: http://itgirl.dreamhosters.com/itgirlgames/templates/

Adventure (Path-Based)

The character moves through a world or along a path. As the character moves along, she will come across situations or other characters that make her complete a task, problem, or puzzle before they can move forward. For our purposes, the character’s path will be straight (there are no branches or forks in the road).

Example game: Super Mario World

Full template description: http://itgirl.wikispot.org/PathBasedAdventure

Adventure (Room-Based)

The main character is in a closed room with several tasks to complete. The character can move around the room and complete the tasks in any order, but all the tasks must be completed.

Example game: Xtreme Xmas Shopping

Full template description: http://itgirl.wikispot.org/RoomBasedAdventure

Arcade

The user only completes a few possible actions with the keyboard or mouse, but they must be done quickly and involve hand-eye coordination. There is often only one task to be completed, but it is done over and over again. Emphasis is on speed and timing.

Example game: EU Water Funding

Full template description: http://itgirl.wikispot.org/ArcadeGame

Maze

Maze games have a playing field that is entirely a maze. There is one player, and one main character that is controllable by the user. There are also “good” and “bad” items in the maze. Good objects must be collected by the user, and bad objects must be avoided by the user.

Example game: City of Austin Recycling Roundup

Full template description: http://itgirl.wikispot.org/MazeGame

Practice drills

Practice drills teach or improve on a specific skill, such as addition, typing, or playing the piano. The game can either provide rigid drills or encourage experimentation. The task given to the player to practice must be completely correctly and quickly to make something good happen or prevent something bad from happening.

Example game: The Frogs Are Off Their Diet!

Full template description: http://itgirl.wikispot.org/PracticeDrillsGame

Simulation and Strategy

Simulation and Strategy Games aim to simulate an experience that requires careful and skillful thinking and planning in order to achieve success. The player has a large project to complete and is asked to make multiple decisions. The player makes several decisions during the project that affect the game's outcome, and the user learns the consequences of each decision. Success is determined by an equation that takes into account the decisions the player made. The player must often complete the project within an allotted amount of time.

Example game: Bacteria Salad

Full template description: http://itgirl.wikispot.org/SimulationStrategyGame

Game Cookbook

Along with full game templates, we also need recipes for code snippets that could be used in ANY game and that can be inserted into any game template. This is similar to Pygame's Cookbook, but for much simpler actions. These will eventually be added to the Pygame Wiki. The initial list of cookbook recipe ideas were based on high school girls' game design ideas. Of course, we want more to accommodate as many children's ideas as possible!

The cookbook recipes are stored at: http://itgirl.dreamhosters.com/itgirlgames/cookbook/

General:

  • Move a sprite using arrow keys
  • Move a sprite using mouse
  • Time a game, end a game after a specific time period
  • Insert instructions screen
  • Insert game over and credits screen
  • Play a sound
  • Choose your character's avatar – whether you play as a girl or a boy, etc.
  • Animation of sprites (without user input) – moving to a point, image transformations
  • Changing "costumes". Examples:
    • make Pacman open and close mouth when he moves
    • make costume change based on which direction the sprite is moving in
    • make costume change when certain button is clicked


User Activities:

  • Allow user to collect items in a basket
  • Ask the user a question
    • Multiple choice questions, and check correctness
    • Questions that allow player to type in words or numbers, and check correctness
    • Control how many times the user can try the question
  • Paint using bucket fill (similar to a paint program)
  • Fire a missile/object at another sprite


Maze-specific:

  • How to form the maze layout
  • How to check if you've reached a dead end
  • How to check if you've eaten all the pellets
  • Add another kind of object to the maze
  • Create stationary obstacles (oils slicks, etc) i.e. set the speed of a monster
  • Trigger user activity if character gets touched by monster
  • Change the size of the game and the blocks

Pilot Program

The goal for these game templates is that novice programmer students using the XO laptop will be able to easily create games for their peers and for younger students. Project IT Girl will test these templates with 60 high school girls (16 - 17 years old) beginning in late January 2008.

Project IT Girl is a Girlstart after-school program in Austin, Texas. During the Fall 2007 semester, IT Girls learn basic programming concepts, Python, and Pygame. Over 90% of the girls have no programming experience before this semester. Throughout the semester, the girls work on a game based on litter prevention to practice using Python and Pygame (download the sample code). Each girl also designs a unique educational game (see the current game designs).

During the Spring 2008 semester, IT Girls implement their game designs using Python, Pygame, and the game templates. They meet once a week for 90 minutes for 12 weeks. The expected amount of time they will spend writing the code for their game is only 10 hours. At the end of the semester, the games will be made available to the OLPC community.