Game creation guide

From FIFE development wiki
Jump to: navigation, search

Introduction

This guide should give the game creators a starting point for building their own FIFE-based game.

Graphics

In order to create good looking graphics we recommend using Blender which is available for many platforms, free of charge and open source.

Tiles

Tiles can be tricky if you haven't had any experience working with them. Here is a nice tutorial explaining how to create some good looking tiles for use with FIFE:

Walls

Here is a quick tutorial on how to create a nice set of wall tiles:

Using Blender

Here is a small tutorial on how to set up and use blender with FIFE.

Using POV-Ray

POV-Ray is a freeware ray-tracer with a programming language-like interface and excellent documentation. Some tips on using POV-Ray to create sprites can be found in this article at the Jagged Alliance 2 wiki. A small number of LGPL-compatible sprite objects can be found at the POV-Ray Object Collection.

Fallout like view

If you want to create graphics which fit the isometric view of Fallout, then you can grab a template which the Zero-Projekt team has utilized: Blender template with Fallout isometric view

But keep the following in mind:

  • This template was created by trial and error - it works for most of the objects, but causes problems when it's used for rendering objects that have very huge dimensions.
  • The light setup was for Zero-Projekt, not for Fallout. You have to find out the correct Fallout lighting in order to get correct shadows. If you found a matching light setup for Fallout please provide your result here to help the others who're trying to achieve something similar.

Atlas Creator

Since version 0.3.3 FIFE supports Atlases. For more information see the Atlas Creator document.

File Formats

Map

Maps can be created with FIFE's editor which resides in Folder.png <FIFE>/tools directory. There currently isn't any good documentation on the editor but you can check out the editors current features document which lists it's capabilities.

You can also edit Maps manually. Check out the FIFE Map File Format for more information.

Atlas

New since FIFE-0.3.3. Defines a set of sub-images and corresponding objects. See Atlas Format for more information.

Object

A FIFE object is a mechanism to define and re-use objects or tiles. Objects have several properties including the image and animations associated with it. Check out the Object File Format document for more information.

Animation

An animation file defines specific properties of an animation including the images used for each frame and the time between frames. See the Animation File Format document for more information.

Sounds

FIFE supports either WAV files or OGG vorbis compressed sounds. We recommend using OGG vorbis because it's open source and provides very good sound quality with smaller files sizes.

Scripting

Structuring your game

Game creators forum

Tutorials

Currently there is no tutorials written for FIFE. There are however some demos for you to look at. They are all written in Python and should be fairly easy to follow. Look in your <fife>/demos directory for the demos.

To launch a demo, navigate to the demos directory ("C:\Program Files\FIFE\demos" in Windows), and then the sub-directory for the demo you want to run. Inside, there should be a Python file named "run.py" that you can double-click on and execute (assuming you have installed Python correctly). Note that if you are using Windows Vista or Windows 7, you will need to move the demo to another directory in order to bypass the operating system's user account control. This directory should be somewhere outside of the "Program Files" directory, ideally on a separate hard drive partition.

If you want to edit a demo, copy it to a new directory and rename it to something else before you begin editing.

For those who know FIFE and have some spare time - feel free to write these tutorials: