IRIT - UMR 5505

Français

Partenaires

CNRS
INPT
UPS
UT1
  Bandeau IRIT
 
  Service / Team :  Visual Object : from Reality To Expression
  Contact : progplay@irit.fr
  Publications :

This web site is no longer maintained.
New web site is available at: http://progandplay.lip6.fr/index_en.php

 

Download / Installation (Windows)

In order to use Prog&Play, you have to download and install the games AND at least one programming interface.

 Games download: Kernel Panic Campaign and Byte Battle

  • jeux_2.5.zip: This archive includes the games Kernel Panic Campaign and Byte Battle

Unpack this archive on the directory of your choice and follow user guide in order to know how to run the game.

 Programming interfaces downloads

In order to program units of Kernel Panic Campaign and Byte Battle, you have to use the Prog&Play library. Several interfaces are available, choose the one that interests you and plug it into your programming environment. Also, you can use Geany environment preconfigured for Prog&Play (C interface), see links below.

   Preconfigured programming environment

  • C interface pre integrated into Geany environment: Geany_2.5.2.zip (documentation)
    • Unpack this archive on the directory of your choice.
    • In order to run Geany, use the "geanyLauncher.bat" file.
    • If it is the first time you play to Prog&Play, begin by launch the tutorial of Kernel Panic Campaign (cf user guide). When you will finish to write your program with Geany, click on "Compile", "Build" and "Run" then watch in the game consequencies of your program into the environment.
    • Header files (ConstantList_KP4.1.h, PP.h, PP_Client.h, PP_Error.h et PP_IMM.h) are included into the "./MinGW-gcc3.4.5/include/" directory
  • Interface pre integrated into Scratch environment: scratch_2.5.zip
    • Unpack this archive on the directory of your choice.
    • Run Scratch.
    • If it is the first time you play to Prog&Play, begin by launch the tutorial of Kernel Panic Campaign (cf user guide). When you will finish to write your program with Scratch, click on "green flag" to execute it, then watch in the game consequencies of your program into the environment.

   Programming interfaces to integrate into your development environment

 Use

Source code compiling

If you want compiling source code by yourself (game engine + interfaces), following instructions will help you.

 Game engine compiling

Begin by installing following softwares: CMake (version 2.6) and Java jdk (do a Google search to find them).

Download following archive (Spring_PP_src_2.5.tar.gz), it contains game engine source code. Unzip this archive on the directory of your choice (avoid space into the path).

Download following archive (mingwlibs.zip), it contains requires dependencies in order to compile game engine). Unzip this archive on the directory containing game engine sources. Make sure you install the package like:

  • */spring_0.82.5.1/
  • */spring_0.82.5.1/...
  • */spring_0.82.5.1/mingwlibs
  • */spring_0.82.5.1/rts

Download following archive (MinGW-gcc4.4.zip), it contains g++ compiler based on MinGW. Unzip this archive at the root of the drive "C:\". Update your environment variables:

  • Create a new variable named MINGW with "C:\MinGW-gcc4.4" as value;
  • Update your PATH by adding in first value: "%MINGW%\bin".

Run "CMake (cmake-gui)":

  • Set path to game engine source code;
  • Set path where to build the binaries;
  • Click on "configure" (perhaps you will click again to resolve all errors);
  • Then Click on "Generate".

Open a console (cmd.exe), cd into your build directory and compile with "mingw32-make install-spring".

When compiling ends, the game is installed into "C:\Program Files\Spring". Into this directory create two subdirectories "maps" and "mods". Donwload following archive (Addition_2.5.tar.gz) and move Kernel_Panic_4.1.sd7, KP_campaign_2.2.sdz, Byte_Battle_2.sdz and CstList.sdz files to "C:\Program Files\Spring\mods" directory and Marble_Madness_Map.sd7 and ByteBattleMap.sdz to the "C:\Program Files\Spring\maps" directory. Now you can play the game...

 Interfaces compiling

Sources of Prog&Play library interfaces: ProgAndPlay_src_2.5.1.tar.gz.

Before compiling Prog&Play library source code, download and unzip PP_libs_2.5.zip where you have extracted ProgAndPlay_src_2.5.1.tar.gz.

In order to compile the Prog&Play library, take a look at README.txt file included into archive ProgAndPlay_src_2.5.1.tar.gz.

 

Top