Hi @ all.
Very long explanation for what I need and what I did so far
I want to create an agent based RTS or FPS game.
I have to use Java for case-based reasoning with myCBR.
Since I have to use Java, it makes sense to use Jade as agent programming tool.
The problem for me is sending parameters from Java to JavaScript and vice versa.
The agents has to move with units, so they need a connection from Java to JavaScript.
When units are hit, they lose life and so I have to transfer a life parameter from javaScript to Java, for agents to calculate new strategies.
Well, I think sending parameters to JavaScript is easier than the other way round.
I already tried rhino engine, but it canāt handle .html files, only .js files.
I also looked at JSweet, but I had trouble in installing it.
Applets and JSon are another tools that didnāt worked for me, but I didnāt really try JSon right, so Iām planning to try it again.
Another tool I want to test is Spring. I was told it could work.
Also I want to try Ajax, since I need the communication between Java and JavaScript without refreshing the browser. Maybe something like document.getElementById(āidā).submit() will work to send paramters to Java.
My prefered IDE is Eclipse.
tl;dr
I need a framework for sending parameters from Java to JavaScript and vice versa (in Eclipse)
I tried: Rhino Engine, JSweet, JSon, Applet-Tag
Does someone has experience with this kind of stuff?
Maybe I did something wrong and one of these named tools will work.
Iām grateful for every advice to make my task easier.
(And Iām sorry for never being brief.)
.
.
.
Unimportant stuff about my previous work
Is there any interest in the previous development for a FPS with a playable character?
I donāt know if I will continue to work on it and maybe someone else want to do it.
Itās amateurish and incomplete. Actually, only what I have shown so far in playgrounds but with a different environment.
If so, is there a special section where I should upload it?
- WASD - Moving
- Shift - āsprintā
- V - switch camera
(the first few seconds the camera focus is somwhere in the scene)