Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

An example project for demonstrating the usage of GodotJS

License

NotificationsYou must be signed in to change notification settings

godotjs/GodotJSExample

Repository files navigation

This project includes examples at different complexity levels, incrementally introducing and utilizing more engine features.

A prebuilt version ofGodot Editor can be downloaded fromGodotJS-Build.

Note

Runnpm i in the project folder before opening it in godot editor.

And, so far,npx tsc (ornpx tsc -w) must be run on your side to make the changes to the scripts take effect, since all.js files are not included in this git repository.

Snake

A simple snake game.In this example, only a limited subset of Godot's features is utilized:

  • script lifetime callbacks (_ready, _process etc.)
  • resource loader
  • using primitive types (float, bool, string, StringName)
  • export variables

Snake

JumpyBird

Additional features used:

  • Signals (connectarea_shape_entered signal with js class member function)

JumpyBird

Piggy

Additional features used:

  • signal_ annotation
  • onready_ annotation
  • export_ annotation

Piggy

Audio Generator

This is an example originally fromhttps://godotengine.org/asset-library/asset/526

It utilizesZzFXM which is written in pure javascript to play a 8bit-ish sound without audio media files.

AudioGenerator

About

An example project for demonstrating the usage of GodotJS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp