S# puzzle game Cli-Q

June 25th, 2009

Cli-Q is a space-travel puzzle game on Silverlight advertising S# language as scripting language for games.

 Cli-Q Logo

Cliq-Q exposes simple object model allowing developer easily extend functionality, create new levels and in future - new types of gaming objects.

The game field contains player object - white circle, win point - orange circle and a number of static obstacles and dynamic objects. Static obstacles simply stops player object from further movement, while dynamic objects - such as triangles may change direction of further movement:

Game field

Play Now!

On-Line calculator based on Script.NET for Silverlight 2.0

April 7th, 2009

As I’ve promised few weeks ago there is now Silverlight version of Script.NET. I’ve searched through Web and I think this is a first fully functional scripting engine for Silverlight. If this is wrong - please notify me at piter.protsyk@gmail.com and I will correct this information. Please also note that my understanding of scripting is quite different from those of Microsoft’s view with regards of IronPython and IronRuby. Both of these languages emits IL code and generates dynamic assemblies/method which then executed on .NET. In contrast Script.NET is a pure interpreted language which has a number of advantages.

To proof a concept of Script.NET for Silverlight I’ve created the On-Line calculator on its basis:

Silverlight 2.0 Calc

 Silverlight 2.0 Calculator Based on Script.NET

Sources & Binaries

Enjoy!

It can execute any valid Script.NET expression and has access to only one .NET type - Math.

Script.NET for Compact Framework

March 17th, 2009

Today I am glad to announce the first version of Script.NET which is able to run on Compact Framework (3.5).

It could be downloaded by the following link:

Script.NET for CF.

Also I would like to thank Steve Higgins without whom CF version of Script.NET most probably would not appear.

Meantime, in the nearest future I will produce a Silverlight version of Script.NET.

Synchronuos start of many instances of the same process

February 27th, 2009

Suppose you need to start 5 instances of the same process simultaneously. There are no problems until those process does not use resources exclusively. For example they are trying to write to the same log file at the same time:

config1.GIF

In this case you will need to synchronize them in a some way. You may want to make those processes to run some sections of code in a mutually exclusive mode:

config2.GIF

 This may be naturally achieved by introducing a mutex synchronization. The sample below shows this approach on practice: mutex.zip

To see the results start several instances of this application at the same time, and the release mutex lock by pressing any key on the application’s console. You will see how other processes will react on this event:

synchronizedstart.JPG

Script.NET 1.2 is comming!

February 20th, 2009

Today I am glad to announce a new improved version of Script.NET. It got its number 1.2. It is not yet a replacement for a previous branch, but is a more treated as public community preview version to gather your feedback.

You may find a download-able package by the link below:

Download Script.NET 1.2

This version achieved a new milestone in the continuous development and improvement of scripting engine. Now, it is even more customizable, more thread safe and more stable then previous releases.

Current version is open for functionality requests and suggestions. So please go ahead and email them: piter.protsyk@gmail.com  

Please expect official release of the renewed Script.NET in May together with a new web site containing more complete help information, new tutorials and examples.