godotjs / javascript

Javascript binding for godotengine
https://godotjs.github.io/
MIT License
963 stars 84 forks source link

Missing template / examples for pre-release #179

Closed rmgaray closed 6 days ago

rmgaray commented 10 months ago

Hello! As a newcomer, I am having some issues trying out this project in its pre-release state. There are templates and examples for Godot 3.5, but this is unfortunately of no use to me, as I need to use Godot 4.X .

When testing the projects at ECMAScriptDemos, none of the Javascript implemented classes seem to work (e.g: the sprite in the npm_module example does not spin). Of course, these projects were written for Godot 3.5 and needed to be converted to 4.X, so I don't expect them to work without some work in updating them.

Could perhaps the developers of this project kindly provide an example project using the latest pre-release of ECMAScript? Or maybe some instruction on how to set up such an example? I can provide more information if necessary about the issues I found when trying the ECMAScript demos.

fukaraadam commented 10 months ago

Created a simple template for 4.x to show npm module usage. Hope it would be helpful for now: https://github.com/Cumulativerse/godot-js-template

I am not developer of this ECMAScript project

rmgaray commented 10 months ago

Thank you @fukaraadam! I will happily study your template.

nmerget commented 6 days ago

The template is mentioned in the README.md. I will close this :)