|
From: Mark R. <mar...@sw...> - 2009-03-19 09:31:40
|
Hi,
Today we released a new SwinxsSDK. Most noticeable changes are:
* Reworked user interface: better graphics; bleep tags by dragging
the XS over Swinxs; move/shake Swinxs by drag&drop
* Implemented voice recording in SwinxsTalk (below I added a code
snippet how to write a simple game make your own recording)
Also note worthy is that we have ported the SwinxsLink to Mac OS X.
Although still in beta, it works fine. So Mac users can install games
onto their Swinxs without dual boot to Windows anymore!
For more information, downloads, etc, go to developers.swinxs.com.
Mark Ruys
Swinxs BV
PS: Here's how to implement voice recording in your games:
variables
{
const ST_WAIT = 100;
const ST_PLAY = 200;
const ST_RECORDING = 300;
const ID_SAMPLE = 10000;
}
machine
{
startup
{
sound.play("SOUND", 00001); // Explain the user interface
if ( ! button.green.down )
state.move(ST_WAIT);
}
state(ST_WAIT)
{
if ( ! sound.playing )
sound.off;
if ( button.green.short )
{
sound.off;
state.move(ST_PLAY);
}
if ( button.green.long )
{
sound.off;
sound.record.on(ID_SAMPLE); // Start recording
state.move(ST_RECORDING);
}
}
state(ST_PLAY)
{
if ( ! sound.playing )
{
sound.play("SOUND", ID_SAMPLE); // Play the recorded
sample
state.move(ST_WAIT);
}
}
state(ST_RECORDING)
{
if ( ! button.green.long )
{
sound.record.off;
state.move(ST_WAIT);
}
}
}
|