mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00

* This provides new 3D objects: 3D Box (perfect to create walls, floors, or billboards) and 3D Model (to import objects created in a 3D modeling app). * 2D and 3D can be mixed in a same game. Each layer of a game can contain 2D objects, 3D objects or a mix of both. * This allows to build 2D games, 2.5D games and full 3D games: platformers, racing games, FPS, hyper casual games. It's easy to start adding 3D objects to an existing 2D game. * You can set up a light by adding an ambient light and/or directional light in the effects of a 3D layer. 3D objects can be configured to react to light or ignore it. * In the future, support for 3D objects will be improved: light objects, animations, etc...
34 lines
1.3 KiB
JavaScript
34 lines
1.3 KiB
JavaScript
// @flow
|
|
|
|
/**
|
|
* @file This file contains the (Flow) types that are used in the JavaScript
|
|
* extensions declaration (i.e: JsExtension.js files).
|
|
* Extension runtime files are in TypeScript (ts files) and not using Flow.
|
|
*
|
|
* If you do changes here, run `node import-GDJS-Runtime.js` (in newIDE/app/scripts),
|
|
* and be sure that the types declared here are reflecting the types exposed by the editor.
|
|
*
|
|
* Note that Flow comments are used to avoid having to preprocess this file and the
|
|
* JsExtension.js files through Babel. This allows to keep plain JS files, while allowing
|
|
* Flow static type checking to be run on them when integrated in the editor.
|
|
*/
|
|
|
|
/*::
|
|
export type ObjectsRenderingService = {
|
|
gd: libGDevelop,
|
|
PIXI: any,
|
|
THREE: any,
|
|
RenderedInstance: any,
|
|
Rendered3DInstance: any,
|
|
registerInstanceRenderer: (objectType: string, renderer: any) => void,
|
|
registerInstance3DRenderer: (objectType: string, renderer: any) => void,
|
|
requireModule: (dirname: string, moduleName: string) => any,
|
|
getThumbnail: (project: gdProject, objectConfiguration: gdObjectConfiguration) => string,
|
|
rgbOrHexToHexNumber: (value: string) => number,
|
|
};
|
|
export type ObjectsEditorService = {
|
|
registerEditorConfiguration: (objectType: string, editorConfiguration: any) => void,
|
|
getDefaultObjectJsImplementationPropertiesEditor: ({| helpPagePath: string |}) => any,
|
|
};
|
|
*/
|