Code Monkey home page Code Monkey logo

phoenix-java-interface's People

Contributors

lmichaelis avatar

Watchers

 avatar

phoenix-java-interface's Issues

[question] General idea of using phoenix

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.