PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Please test Jscript powered PocketAdventures

Hi!

Cause i have vacation (holliday?) i don;t
have to work !!!
I am trying to complete PocketAdventures.
First i want to finish the pc version.
So, could someone be so kind to test the
little software at this address?
Image
http://www.mk-it.nl/PocketAdventures
it's "1.zip"

There's a little bug when closing (has to
do with not killing the JScript thread, i'm
going to look at that tomorrow). So only
run if you have Win2000, or XP.

When run you should see a parralax scrolling
world with some figures talking to each other.
Press "3" for a lot of messages boxes.
Those are triggering the pathfinding routine.

The user interface doesnt do anything (yet).
For those that are interessted:
The game.js file is a text file describing
the current scene.
Please let me know what you think about it.

Greetz,

kaiton
for those that are interested
if you press 3 you'll see a lot of information.
It is a test for the pathfinding routine.

It shows what steps to take to walk trough this map

Code:

int map[ MAP_WIDTH * MAP_HEIGHT ] =
{

// 0001020304050607080910111213141516171819
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, // 00
1,9,9,1,9,9,1,1,1,9,1,9,9,9,9,9,1,1,1,1, // 01
1,1,9,1,1,9,9,9,1,9,1,9,1,9,1,9,9,9,1,1, // 02
1,9,9,1,1,9,9,9,1,9,1,9,1,9,1,9,9,9,1,1, // 03
1,1,1,1,1,1,9,9,1,9,1,9,1,1,1,1,9,9,1,1, // 04
1,1,1,1,9,1,1,1,1,9,1,1,1,1,9,1,1,1,1,1, // 05
1,9,9,9,9,1,1,1,1,1,1,9,9,9,9,1,1,1,1,1, // 06
1,1,9,9,9,9,9,9,9,1,1,1,9,9,9,9,9,9,9,1, // 07
1,9,1,1,1,1,1,1,1,1,1,9,1,1,1,1,1,1,1,1, // 08
1,1,1,9,9,9,9,9,9,9,1,1,9,9,9,9,9,9,9,1, // 09
1,1,1,1,1,1,9,1,1,9,1,1,1,1,1,1,1,1,1,1, // 10
1,9,9,9,9,9,1,9,1,9,1,9,9,9,9,9,1,1,1,1, // 11
1,9,1,9,1,9,9,9,1,9,1,9,1,9,1,9,9,9,1,1, // 12
1,9,1,9,1,9,9,9,1,9,1,9,1,9,1,9,9,9,1,1, // 13
1,9,1,1,1,1,9,9,1,9,1,9,1,1,1,1,9,9,1,1, // 14
1,1,1,1,9,1,1,1,1,9,1,1,1,1,9,1,1,1,1,1, // 15
1,9,9,9,9,1,1,1,1,1,1,9,9,9,9,1,1,1,1,1, // 16
1,1,9,9,9,9,9,9,9,1,1,1,9,9,9,9,9,9,9,1, // 17
1,9,1,1,1,1,1,1,1,1,1,9,1,1,1,1,1,1,1,1, // 18
1,1,9,9,9,9,9,9,9,9,1,1,9,9,9,9,9,9,1,1, // 19

};


1 is walkable, 9 is not

Greetz,

kaiton
kaiton · 02 Aug 2002, 15:18 UTC — More details
here's the code from the scene.
You can find it in game.js

Code:


function LoadScene1(){
LoadSceneBitmap('25.gif');
LoadDistanceBitmap('mountains.gif');



Melee.ChangeTextColor(100,200,230);

Melee.Animation.LoadImage('melee.gif');
Melee.Animation.ChangeFrameRate(8);
Melee.Animation.SetFrames(15);
Melee.SetLocation(300,140);
Melee.SetCaption('Some idiot showing his package');


Indy.ChangeTextColor(255,255,0);

Indy.Animation.LoadImage('indy.gif');
Indy.Animation.ChangeFrameRate(8);
Indy.Animation.SetFrames(7);
Indy.SetLocation(230,120);
Indy.SetCaption('Huh? That\s me!');


Sophia.ChangeTextColor(255,255,255);

EvalInTime("Sophia.Animation.LoadImage('Sophia.gif')",1);
Sophia.Animation.ChangeFrameRate(8);
Sophia.Animation.SetFrames(4);
Sophia.SetLocation(150,130);
Sophia.SetCaption('Aaah, lovely Sophia!');

var i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;
//ObjectMoveTo('Indy',1,12,1,1,1);

i=Indy.Say('Hello Sophia!',0);
j=Sophia.Say('Hi, Indy',i);
k=Melee.Say('Dont forget me!',j);
l=Indy.Say('Oh Shut up!',k);
m=Sophia.Say('Oh Shut up!',k);
n=Melee.Say('Yeez!!',m);
o=Melee.Say('What did I do wrong???!!',n);
p=Sophia.Say('Like you dont know!!!',o);
q=Sophia.Say('Creep!!!',p);
r=Indy.Say('Well said, Sophia!!!',q);
s=Indy.Say('Showing your private parts to anyone is rude!!!',r);
t=Melee.Say('You are just small minded!!!',s);
u=Indy.Say('Oh Shut up!',t);
v=Sophia.Say('Please, Shut up!',t);
w=Sophia.Say('Maybe its better for you to go away!',v);
z=Indy.Say('Yeah! Go away!',w);
Melee.Say('OK, i don t wanna be here anymore',z);


}

//INIT
System = new CSystem();
Melee = new CObject('Melee');
Indy = new CObject('Indy');
Sophia = new CObject('Sophia');

LoadScene1();

The link is dead...
wrong link:

Oeps, you can download it now at
the location specified above
<a href="http://www.mk-it.nl/PocketAdventures/1.zip">Try this one</a>

... and kaiton, you really should disable directory browsing ;)
Oh how do I suck today.

<a href="http://www.mk-it.nl/PocketAdventures/1.zip">Try this one</a>
kaiton · 03 Aug 2002, 16:35 UTC — Status
Hi!


3 aug :
I finished the Path finding routine!
now every object can move! It works like a charm!
Was a lot of work. I used a A* routine, but it
depended heavely on STL.

Status :
Things implemented:
* JScript engine
* Loading Scene bitmap
* Loading object bitmaps
* Placing objects
*Talking of objects

* System implemented for timeline actions(eg
Indy walks to Sophia, then says something and than
walks to the upperleft corners, says something etc).
Execute actions immediatily or wait for an other
action to complete

* Parallax scrolling
* Creation of GameObjects
* Creation of system object
* Recognise mouse events
* Recognise button events

TODO
* Music / Sound effects
* Multiple animations (like walking, talking)
* Screen transactions
* Inventory
* Talk system (you know, where you can choose your
answers
* Saving Jscript engine state(thus saving game)
* Loading(see saving)
* Map scene (like the birdview from the island in
Monkey island 1)


Greetz,

Kaiton
kaiton · 03 Aug 2002, 16:37 UTC — Try it
Oh!
If you want to try it:

goto http://www.mk-it.nl/PocketAdventures
and download
1.zip (first release)
1_1.zip (updates)

unzip 1.zip in a directory
unzip 1_1.zip in the same directory(and overwrite old
files)

Run mfc.exe
kaiton · 05 Aug 2002, 12:25 UTC — A*
Hi,

The new version has A* pathfinding!!!
Works great! Download the latest update(1_2.zip) and try for yourself.
It uses a bitmap to see where an object can go.
Also implemented recognision of objects under
cursor.

Kaiton
BurningSheep · 05 Aug 2002, 13:51 UTC
There is a virus on your server, I get a W32.Nimda.A@mm(html) warning when I visit your site.
Your pathfinding demo is looking good btw
Damn!!

I had that virus a few month ago.
Never knew it infected my old sites.
I have removed the site. I have checked the
downloads. None are infected.

kaiton
kaiton · 05 Aug 2002, 16:06 UTC — I can use FMOD!
Ha!

Just read the notice on FMOD.ORG.
If i use it in a free product i can use
it for free!
(it is a sound engine, plays midi, mod, mp3 etc)

So this week i am going to implement FMod in
PocketAdventures!!
WOW, now this is great!
Let me just try to analyze the above picture...
Indy and Sophia, as well as the whip icon are from Indy4. The menu was made by you but is meant to look like the indy4 menu. The background is edited on the left, but otherwise from Monkey Island 2 and the guy on the right is the man who sells the dancing map to you in MI1 :D
Ha!

Thats a totally correct analysation!!!
But you really should try the demo
and see how all works!
Don;t forget to look at "game.js"(included
in the download) to see how it really works
Is there a MIPS version?
How are you going to get a program written in Jscript to work on pocket pc? Anyway,looks great. I tried the demo. Hope I didn't get a virus :?
To answer both questions:

Yes, there will be a MIPS version.

How do i get a JScript written game to pocketpc?
answer: JScript on the PocketPC is implemented
as a DLL. PocketExplorer uses it to
run Javascripts in the browser.
PocketAdventures uses it also. Instead of
html elements Pocketadventures exposes game
objects to the Jscript engine.
If you're not a programmer it;s maybe difficult
to understand, but don't worry, i've created tens of applications using JScript on the Pocketpc.
I've even created a JScript interface to
Gapi(draw), but it was a little slow(20 frames
per second)
kaiton · 07 Aug 2002, 13:51 UTC — Compiled to PocketPC
Hi!

As a test i compiled it to PocketPC(Ipaq).
It worked great! There were no changes i had
to make( i made it only on the PC).

So, Mips,SH3 and ARM users:
please follow this thread, i will
release the first test version this week.
kaiton · 02 Nov 2002, 14:44 UTC — Status
Pfff,

My work takes so much time that i havent been
able to continue to work on this a long time!

BUT, we've finished our biggest project ever and
now i have time to finish this thing.

Status:
We removed a lot of things:
Pathfinding
Scaling
Parralax scrolling
Scrolling

Why? Because after we let someone create
an adventure game with it, it was for him
just to much work. To finish 1 location he had to:
Draw a background, Draw a scene, Draw a pathwalking
bitmap, Draw a Scalebitmap, for every walking object
he had to draw a left-right-up0down movement!

It was just to much work to make a game with it.
Just to finish 1 scene would take a week.

Our new goal is to be able to make adventures
in about 20 hours of painting, scripting etc.
20 hours is not much, people could make
it in their spare-time.

What we kept:
JScript/VBScript powered
Sprite/Object animations
Unlimited scenes
Unique user defined actions with every object
(like eat apple, slap man in face, suck pipe etc)
FullScreen / Halfscreen mode
Talk mode
Inventory
MOD music
Loading/Saving states

We are also developing a GUI in delphi.
With it you can make the script of
the adventures.

I'll post version 1 tommorrow
kaiton · 02 Nov 2002, 14:44 UTC — Status
Pfff,

My work takes so much time that i havent been
able to continue to work on this a long time!

BUT, we've finished our biggest project ever and
now i have time to finish this thing.

Status:
We removed a lot of things:
Pathfinding
Scaling
Parralax scrolling
Scrolling

Why? Because after we let someone create
an adventure game with it, it was for him
just to much work. To finish 1 location he had to:
Draw a background, Draw a scene, Draw a pathwalking
bitmap, Draw a Scalebitmap, for every walking object
he had to draw a left-right-up0down movement!

It was just to much work to make a game with it.
Just to finish 1 scene would take a week.

Our new goal is to be able to make adventures
in about 20 hours of painting, scripting etc.
20 hours is not much, people could make
it in their spare-time.

What we kept:
JScript/VBScript powered
Sprite/Object animations
Unlimited scenes
Unique user defined actions with every object
(like eat apple, slap man in face, suck pipe etc)
FullScreen / Halfscreen mode
Talk mode
Inventory
MOD music
Loading/Saving states

We are also developing a GUI in delphi.
With it you can make the script of
the adventures.

I'll post version 1 tommorrow
Cool, nice to hear it's still being worked on :P

If I were you though, I would leave it an option to still use scrolling, pathfinding, and possibly scaling.

I can't really see an adventure game without pathfinding, and a scrolling scene or two is useful.
Pallarax scrolling probably isn't that important.
hmmm,

adventures without scrolling and pathfinding are
perfectly possible:
We've changed the interface from Scumm to
something more like Xanth, Deathgate, Hoboken etc;
The game will be from 1st person perspective, like
Xanth.

Later we always can enable pathfinding etc, but first
we want to make sure the system works

here are some screenshots

<img src="http://www.mk-it.nl/PocketAdventures/main.jpg">

<img src="http://www.mk-it.nl/PocketAdventures/3.jpg">

<img src="http://www.mk-it.nl/PocketAdventures/2.jpg">
kaiton · 02 Nov 2002, 20:25 UTC — ARM version
Hello!

Here's a version for ARM PocketPC.
Unzip it in a directory on your PocketPC.

The file "game.js" has to be in the root
of the PocketPC filesystem (that's a little bug, hope
to fix it soon).

<a href="http://www.mk-it.nl/PocketAdventures/ARM.ZIP">Click here to download</a>
kaiton · 02 Nov 2002, 20:30 UTC — PC Version
and here's the PC version.

It is compiled from the same source as the pocketPC
version (without any modifications!).
Just unzip and have fun.

<a href="http://www.mk-it.nl/PocketAdventures/PC.ZIP">Click here to download the PC version</a>
kaiton · 02 Nov 2002, 20:32 UTC — Source
The game logic can be found in the
file "game.js".
It is fully JScript. In the final version
it will also contain a conversion file
to make everything Object Oriented.
Please let me know what you think!

Greetz
Oh yeah, I somehow forgot about 1st person adventure games. Strange, since I made one a year or two ago! Actually you can play it on my website..

This is looking exciting though, it will be interesting to see how PocketAdventures turns out. :)
When will the MIPS version be ready? I cannot wait to try this out on my Cassiopeia.
kaiton · 03 Nov 2002, 22:24 UTC — MIPS
Here's the MIPS version of this.
I haven;t tested it. I just compiled it for MIPS.
Let me know if it works.

<a href="http://www.mk-it.nl/PocketAdventures/MIPS.ZIP">Click here to download</a>

Note:
the file "Game.js" has to be on the root of
the PocketPC filesystem
Ok, I'll try it out. Do I just transfer the entire file to the PPC? Will it run from the memory card, or do I need to put it in the main memory?
Ok, I'll try it out. Do I just transfer the entire file to the PPC? Will it run from the memory card, or do I need to put it in the main memory?
Ok, I'll try it out. Do I just transfer the entire file to the PPC? Will it run from the memory card, or do I need to put it in the main memory?
Hi!

You need to :
1 download the MIPS.ZIP file
2 Extract it on your PC(with Winzip)
3 Copy all files from PC to a directory om your PPC
4 Move the "game.js" to the root of the PocketPC
filesystem

i haven't tested it on a storage card, but i
think it should work.
BTW you need gapi installed.

Don't expect to much, it it just a little
example i made in 5 minutes.

Oh, and i have only tested it on an IPAQ.
If the pictures look strange, could you check
if they show up right when you click on a gif file?

Thanks!
OK, I tried the mips version. First it wouldn't start, but then I copied the game.txt file to the pocketpc root folder, and it ran.

The first screen comes up, with the cow's tail swinging. But then when I tap on the cow nothing happens. Seems that it isn't getting any input from the touchscreen.

also, the pc version works fine. If there's one suggestion I have it's to make the picture fill the whole screen, and have the interface and text messages overlaid when needed.

It might look like this:
Image
What is the root folder? And where do I get the GAPI file?
:-) Hope I don't sound too ignorant.
The root 'folder' is the 'folder' that contains all other folders on you pocket pc. This is similar to the c:\ drive on your PC, except that pocketpcs can only have one root folder.

In the default pocket pc file explorer the root folder is called "My Device".

As for gapi, you can get it here. Run the self-extracter,It will extract a few folders. Open the folder corresponding to the type of device you have (mips=casio e125/115/em100/eg800, arm=ipaq or anything with PocketPC2002) and copy the gx.dll to your pocket pc's windows folder.
Thank you very much.
So do I understand this right? Pocket Adventures is an adventure game engine that users can make there own adventure games with? Also, is this similar to PocketFrog or EasyCE in that, we can use it to make retail games? Or can we just make freeware games with your engine?
No offense or anything, but a couple things I noticed.

1. After clicking everywhere and walking a bunch, the character stopped going where I clicked. I needed to restart the game and it happened again.

2. With it scrolling back and forth, it makes me feel dizzy.
iceboxman wrote:
1. After clicking everywhere and walking a bunch, the character stopped going where I clicked. I needed to restart the game and it happened again.

2. With it scrolling back and forth, it makes me feel dizzy.


Scrolling? Have you downloaded the last version.
I removed scrolling from the game engine!
And since it's now from 1st person perspective
you really can't see the caracter?!?

Maybe you've downloaded the version on my site?
That's the old one
esw wrote:
OK, I tried the mips version. First it wouldn't start, but then I copied the game.txt file to the pocketpc root folder, and it ran.

....Seems that it isn't getting any input from the touchscreen.

whole screen, and have the interface and text messages overlaid when needed.


Wauw! It RAN ON A MIPS!!!! YAHOO!!!!
;)

Okay, i will adress your tap issue soon.
Overlaying text? mmm, that's a good idea.
There's one drawback. The images would
be rather big (320x240). That would mean
that a simple adventure would eat up all
your valueable space.

BUT I am going to implemented it as an option.
(just like i maybe gonna re-implement scumm as
an option ;))
No tap on a MIPS?

Do you see the yellow "Start game" when you
mouseover the cow?
TechMage wrote:
...we can use it to make retail games? Or can we just make freeware games with your engine?


Uhm, i don't like the idea of people paying for
games made with it.Because i made this for free,
it doesn't seem right to let people pay for
the games.

And, since we use JScript as the language
people could easily read your source by unzipping
it.
(in the final version the game.txt file will
just be G-zipped for storage convience).
kaiton · 04 Nov 2002, 22:07 UTC — Update
Hi!

I've finished the talk module and more.
You can download the latest builds on
<a href="http://www.mk-it.nl/PocketAdventures">my site</a> or these direct links:
<a href="http://www.mk-it.nl/PocketAdventures/MIPS.ZIP">MIPS</a>
<a href="http://www.mk-it.nl/PocketAdventures/ARM.ZIP">ARM</a>
<a href="http://www.mk-it.nl/PocketAdventures/PC.ZIP">PC</a>

It included a little example i made in about 30 minutes. I made the source of the example in
NotePad, but in future it will be generated
by a tool.


There are 3 versions (PC,ARM,MIPS).
Download the one you need

Instructions PPC:

1) unzip files on PC
2) Copy files to PPC
3) File "game.js" has to be in the root of the PPC
filesystem
4) Start mfc.exe on the pocketpc

Note you need Gapi installed!

Let me know what you think


Instructions PC:
1) Unzip files on PC
2) Start "mfc.exe"


Oh, and to quit PocketAdventures:
Press "1" on the PC version and Button 1 on the PPC
(Don't know which one it is, just press all ;-))
Ok, I tried the latest mips version, and it's the same thing. It doesn't say anything when you tap on the cow, and none of the hardware buttons will make the game exit. Anyway a smiple change in the code is probably all that's needed to fix it :)

regarding the size of a game, it depends on the type of images. For 320x200, If you use photo-realistic images or colored pencil sketches, you can get the size down to 20kb using JPEG and they look "almost perfect". Depending on the image type, some scenes would be 10kb. For a game with 50 to 100 scenes, that's around 1-2 MB which is a very reasonable size of a game. Of course it might be 4mb with sound, characters etc but that's still not bad. One thing is that I find GIF is an awful format for anything that's not vector-based.
kaiton · 05 Nov 2002, 13:50 UTC — Status
Hi!

today i've finished the conversion file!
Now it is possible to create the game
in an object oriented way!

here's some code
Code:

function Main(){
SceneA=new CScene('SceneA');
SceneB=new CScene('SceneB');

Object1=new CObject;
Object1.image='cow.gif';
Object1.framerate=8;
Object1.framecount=10;
Object1.caption='Click here!';
Object1.isbutton=true;

SceneA.background='scene1.gif';
SceneA.screenmode=FULLSCREEN;
SceneA.addobject(Object1);
SceneA.draw();
SceneA.left=SceneB;

}


kaiton
CORE321 · 25 Nov 2002, 08:19 UTC — Status
kaiton wrote:
Hi!

today i've finished the conversion file!
Now it is possible to create the game
in an object oriented way!

here's some code
Code:

function Main(){
SceneA=new CScene('SceneA');
SceneB=new CScene('SceneB');

Object1=new CObject;
Object1.image='cow.gif';
Object1.framerate=8;
Object1.framecount=10;
Object1.caption='Click here!';
Object1.isbutton=true;

SceneA.background='scene1.gif';
SceneA.screenmode=FULLSCREEN;
SceneA.addobject(Object1);
SceneA.draw();
SceneA.left=SceneB;

}


kaiton


Hi Kaiton,

I would be very interested in testing your program on my HP Jornada 525. It has a SH3 processor and 8bit color. Do you have a version for this yet?

Thanks,
Mike