GDevelop के साथ JavaScript का उपयोग करना

जीडेवेलोप अपना गेम बनाने या गेम इंजन का विस्तार करने के लिए जावास्क्रिप्ट का समर्थन करता है।

इवेंट के साथ-साथ, JavaScript का उपयोग गेम के हिस्से लिखने के लिए किया जा सकता है।

अपने खेल के अंदर जावास्क्रिप्ट कोड ब्लॉक जोड़ें

जीडेवेलोप आपके गेम की घटनाओं में किसी भी बिंदु पर जावास्क्रिप्ट कोड ब्लॉक जोड़ने का समर्थन करता है। यह एक जटिल एल्गोरिथ्म को लागू करने या ओपन-सोर्स पुस्तकालयों से कार्यों का पुन: उपयोग करने का एक अच्छा तरीका है। घटनाओं और कोड ब्लॉक को मूल रूप से एक साथ मिलाया जा सकता है - ताकि आप जावास्क्रिप्ट के साथ अपने खेल के कुछ हिस्सों या यहां तक ​​कि समग्रता को लागू कर सकें!

The JavaScript editor is based on the super powerful Monaco Editor, extracted from Visual Studio Code. Intellisense autocompletions are provided and the editor supports advanced features like multi-selection for faster coding.

JavaScript उपयोग करने के बारे में अधिक जानें

Extend your game or GDevelop with JavaScript extensions

GDevelop is modular and can be extended to suit your needs. In particular, all features available to games (objects, behaviors, events) are based on the extension system. You can quickly create new extensions for your game or contribute to existing ones as GDevelop is open-source.

Learn how to write JavaScript powered extensions and read the game engine reference documentation.

Finally, note that in most cases you don't even need to quit GDevelop to write an extension in JavaScript, as most extensions can be built in the editor, directly in your game project.

जीडेवेलोप में डार्क थीम का उपयोग किया जा रहा है। कोड संपादक भी कई सुंदर विषयों के साथ बंडल आता है!