gothickit / phoenix-java-interface Goto Github PK
View Code? Open in Web Editor NEWJava-bindings for phoenix, the ZenGin asset parser.
License: MIT License
Java-bindings for phoenix, the ZenGin asset parser.
License: MIT License
Hi,
I finally managed to take a closer look into the interface.
(Turned out the GraalVM is too bugged to just execute LLVM files compiled out of C++ sources, as it is supposed to, so I will probably go with JNI approach for now)
I appreciate your effort to make phoenix available in many ways ;) Thank you.
Let's say I want to create some kind of reimplementation of Gothic game.
As I understand, I can use your virtual machine to execute compiled gothic scripts (GOTHIC.DAT
) and that should fill my game world with all the content like NPCs and items. This can probably be achieved with:
PxDaedalusScript pxScriptLoad(PxBuffer buffer);
In order for the virtual machine to actually have any effect on my game, I need to bind all Dedalus commands (those: https://github.com/GothicII/EnglishCleanedScripts/blob/master/Content/AI/AI_Intern/Externals.d) to my own Java methods, using this:
void pxVmRegisterExternal(PxVm vm, String name, PxVmExternalCallback cb);
so that any time Dedalus tries to do something in the game, my binded Java methods will reflect those actions in the game mechanics.
Is my understanding correct so far?
I have a question regarding the VM itself. Is it stateless in terms of game world content? The way I see it, any change to NPC/Item made by Dedalus have to be reflected in the state of my own Java objects and that is the only place where the modified state is stored. VM does not store any global data, like current state of the Hero, quests, etc. Right?
Cheers
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.