Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/README
blob: d6ce10c3a396607d628128e6d59d4064337d7275 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
*************************************************
***   Memosono - a two player one machine version
*************************************************
Version: V02
Simon Schampijer - simon@schampijer.de

How to use Memosono:

1) Make sure the python bindings for csound are installed.

You need the two files (csnd.py, _csnd.so) either in: 
/usr/lib/python2.4/site-packages/ or in the folder csserver 
in the memoson folder.


2) Where to place the memoson sources?

You can place the folder with the sources and the images etc anywhere you want on your harddisk. I used relative paths so I hope there will be never a crash like - can not find file. But it does matter where you place your game files. They should be placed in the home directory. (this can be changed in a later implementation)
A typical game folder contains:

Example: The game composer
composer (a)
 - composer.mson (b)
 - images/ (c)
 - sounds/ (d)

a) This folder has got the name of the game. It is important that the name of this folder and the first part of the name of the config file are identical.

b) A config file in the format (<gamename>.mson) containing the names of the sounds and images you want to use. The config file is very very basic but I am planning to use fancy stuff (probably xml) in the future. Put in the pairs you want to use like.
 bach.jpg bach.wav
 beethoven.jpg    beethoven.aiff

As you see above it does not matter how many spaces are between the picture and the soundfile. Soundfile formats can be wav and aiff. As Image formats I always used jpeg but maybe gif will work as well. SVG would be an alternative at least for the application pictures.

c) Place here the images.
d) PLace the soundfiles here

3) Howto start a game:
To start a game type: ./memoson.py <name of the game>

You do not have to specify the folder or the name of the config file explicitly since the application looks for a folder and a config file in the home directory like described above.



4) Technical Details:
Memosono uses the Open SoundControl (OSC) for the communication between the clients and the server. The Python implementation of OSC was done by Daniel Holth and Clinton McChesney. Thanks for their work.