Create own game

From CookieCraft

Jump to: navigation, search

Contents

Creating your own game

Requirements

To create an own game, you need the following:

  • an installed version of Cookie Craft
  • some experiences with XML
  • maybe a painting program to draw game objects or the game field
  • data directory in the Cookie Craft installation directory (if it does not exist you have to create it)

Creating the game

When creating a new game, you should first choose an existing game type as basis to start with. If you want to create a singleplayer game to train Football you probably want to use Football 10 as basis.

E.g. you can do changes on landscape, player positions and zone positions, but also change the graphics of all objects. Naturally physics properties can be changed, like size, weight, break behavior. Unfortunately you cannot define new game rules. If you cannot realize the game with existing game rules, you can send us a mail with your desires and we will try to implement them.

You begin with starting Cookie Craft locally. This means you have to select Play local or on LAN (starts a server) in the wizard. Then log in as guest (or user) and create a game as basis for your game.

In the game window you can select the game field by clicking on it. Now you can switch to edit mode by pressing Ctrl+E. You should see simple circles instead of game figures. Lines are representing walls (obstacles).

If you press Ctrl+S the current game configuration will be save under a new game type. A file named default.foot will be created in the data directory of your Cookie Craft installation. This is an XML file containing the whole game information.

Editing the foot file

I suggest to edit the file default.foot and to change the name of the game type. So open the file in a text editor and change in the 3rd line description="[...]" by replacing the content between the quotation marks with the name of the new game type. After this you can save the file and you have to restart Cookie Craft on the same way described above to see the new game type in the list of Creatable games. When you see the new game type in the list, click on it and click on the Create game button. Even if the game looks like your basis game, the game configuration is now loaded from default.foot.

As from now default.foot is known to Cookie Craft and changes to this file require no longer a completely restart of Cookie Craft. Simple the game have to be recreated to see the changes and test it.

Now you can really start editing. If you want to use another background image, you can change the value of background in the 3rd line of the default.foot. Here you have to specify the path to your image. Furthermore the values of width and height must be set. These and more information you can get from Body of a game type file.

Note
relative paths are relative to the data directory

Graphical editing of game obstacles

If you press Ctrl+E in the game window you switch to editor mode. By pressing Ctrl+G you can switch bach to normal game mode.

Currently in editor mode you can only move, delete and create walls. Zones and game objects have to be changed by editing the foot file.

If you click with the right mouse button on the game field and choose Create line you begin to create a wall. Now you can set the edges of your wall. By clicking the right mouse button you can finalize the wall. You can still change the walls later.

Move edges by dragging them or select them by clicking on it and move them using the arrow keys.

Edges and Walls can be deleted by right clicking on them and select Delete.

There is no undo for each operation. But changes are only saved if Ctrl+S is pressed. So if you have completely destroyed your game (configuration), just close the window and recreate it the game to go back to the last saved configuration.

Specials of singleplayer game types

Need to be translated.

Finished

If you have finished your game type you should rename the default.foot to prevent overwriting due to pressing Ctrl+S.

Play the game with friends

If it is a multiplayer game you have created, you naturally want to play it with your friends. This is currently only possible on LAN or you send us the game and we will integrate it as soon possible.

Play the game on LAN

To play your new game type on LAN you have to setup the game files at all participants. Then one player creates the game and the others join.

Publishing the game

If you think your game is felicitous, you can send it to us and we will decide if the game will be integrated into Cookie Craft. A Condition is that no images or texts violate copyright.

The names of those who have a stake in the game, e.g. idea, graphics, implementation, you can give them credit by writing them down to a normal textfile credits.txt.

Then you can send us a mail with all necessary files (credits.txt, foot file, (images)) to info_AT_cookie-craft.de. We will test the game as soon as possible and decide if we will integrate it.

In other languages