please help betatesting scripting language ?

Miscellaneous Forums/General Discussion/please help betatesting scripting language ?

Could somebody test my project please ?

LINK TO TEST APPLET

I've made a scripting language that is intended for writing
web based games. It uses a syntax much similair to Basic.
It has a built-in tile engine. The scripts are executed by
a Java applet, so they can run from a browser.

The IDE includes a tile editor, an image converter,
syntax highlighting, undo, auto-save and topic-sensitive help.

Here is a preview image of a game I wrote with it:


This is a code sample:
createworld 40, 30
loadtiles "tile.gif"

for i = 0 to 5

  x = cos(i * 60) * 5 + 10
  y = sin(i * 60) * 5 + 7
  setworld x, y, 1

endfor

new mario, "mario_l.gif"
positionplayer mario, 320, 240

.repeat

  if key(key_left)  then moveplayer mario, -1,  0 endif
  if key(key_right) then moveplayer mario,  1,  0 endif
  if key(key_up)    then moveplayer mario,  0, -1 endif
  if key(key_down)  then moveplayer mario,  0,  1 endif

  coll = playercollideswithworld(mario)

  clearscreen
  drawworld
  drawplayers

  if coll then
    text 20, 20, "collision!!"
  endif

  showscreen

goto repeat


You can download my project from here:
DOWNLOAD
It is available for Windows platforms only.
The download is a demo version. It will allow sources up to 2880 characters.
It will be available for 7 days on that link.

It includes full documentation with examples, and a mario sample
game. Please let me know if you have any remarks, questions or other issues.

Thanks!

Am i seeing this right???

You actually have Mario capturing Sonic's rings?

BURN THE HERETIC!


(I'm sorry, i just couldn't control myself)

Yes, and maybe later on I will have Sonic take over the castle.

no thats for megaman to do, i'll download the demo

I like the demo. I'm using a Mac at the moment, but would be interested in testing this when I'm next using my Windows machine. Some questions:

* Is there the facility to have sound?
* When this is a scripting language, could I dynamically build custom scripts via PHP?

a) There is sound support, through Java, so all sounds have to be in 8000Hz, 8-bit, mono .au format. Other formats may be supported, but I didn't test them yet.
b) There is no support for PHP. I'm not (too) familiar with PHP, but for what would it be convenient/used in this program ?

The virtual machine is an applet, in the form of a JAR file. The applet can be included in an HTML file using the <APPLET> tag.

The IDE is written in Lazarus, which is a cross platform language. In a while, I will be able to compile the project under MacOS, so a Mac version will eventually come. I can't really tell exactly when, though, but it shouldn't take longer than a few weeks.

However, as a temp. solution, on a Mac or under Linux, you can write the script and save it as "program.txt" in the \data folder. When running index.htm, the script will be executed. The command index help files can be found in the \help folder.

I cant move the mario with my arrow keys :(

Ow .. maybe you should click on the Applet? It should get focus automatically, I'll make a note of that in the fixlog.

I cant move the mario with my arrow keys :(

You haven't ensured that the applet has the focus.

The applet requests focus when initializing, but sometimes it somehow fails. In an earlier stage, I've had the program request focus each frame update, but then the applet took away the focus from other elements on the page (such as the address bar, that was quite annoying) I should look further into it, or maybe add a 'Focus' command and leave it up to the user.
Usually, I think, in applets, games have a title screen or game menu that should be clicked on with the mouse.

If the main code is run from a .txt file, this is great as it would allow the .txt file to be automatically be customised by PHP, which is what I was thinking about in the first place.

Is there any way that you can define the specific name of the script? An example would be that you can tell the applet to take the game code from example.php?user=test rather than a default program.txt ? This would allow the code to be automatically generated by the server to be customised with settings for the user and would also benefit the applet with a form of database connectivity.

Ah, I see now. That is a good idea. I will add support for selecting the script name via the applet's parameters. Also, I want to create an in-script command LoadScript, so you can load another script from the script itself.

Just sent you an e-mail Warner.