Arthur Pacaud
054e48227c
Make object and behavior registering more explicit ( #1379 )
2020-01-17 22:49:24 +00:00
Arthur Pacaud
99312c71e0
Improve overall type annotations ( #1361 )
...
* Add type annotation for ObjectData and related types.
* Add missing type annotations.
* Add // @ts-check to some files.
2020-01-12 20:14:00 +00:00
Bouh
f7f32d6be5
Add support for advanced shapes in Shape Painter ( #1258 )
2019-10-25 11:50:00 +01:00
Bouh
00f2873f48
Add ellipse, rounded rectangle and star to Shape Painter ( #1256 )
2019-10-19 14:38:37 +01:00
Florian Rival
aa7a4a4ff3
Rename onOwnerRemovedFromScene to onDestroy and fix onCreated/onDestroy calls
...
* Rename onOwnerRemovedFromScene to onDestroy (because it can be now called when a scene is destroyed)
* Fix it being not called when a scene is destroyed (so behavior don't get a chance to clean up what they have created)
* Fix onCreated being called before the object is fully initialized (for custom behaviors or behaviors relying on an object type)
2019-07-28 17:43:50 +01:00
Florian Rival
7d165660a5
Fix rendering of ShapePainterRuntimeObject with absolute coordinates when far from camera
...
Fix #750
2018-11-21 00:31:37 +00:00
Florian Rival
09eab9eb46
Fix ShapePainter hitboxes/aabb not updated when moved
2018-11-17 19:10:57 +00:00
Florian Rival
3be5d85733
Update GDJS docs to use JSDoc
2018-07-04 22:26:02 +01:00
Florian Rival
422132d8c7
Avoid allocations in gdjs.RuntimeObject.getRendererObject and gdjs.evtTools.object.pickObjectsIf
2016-08-15 19:54:01 +02:00
Florian Rival
7a6f3ffe7c
Move ShapePainter object renderering to ShapePainterRuntimeObjectRenderer
2016-03-19 23:59:17 +01:00
Florian Rival
8a0d0d332d
Rename gdjs.LayerPixiRenderer PIXI related methods
2016-02-21 17:16:13 +01:00
Florian Rival
40be4153c2
Rename exposePIXIDisplayObject to exposeRendererObject
2016-02-21 17:00:30 +01:00
Florian Rival
9bae415530
Move rendering of layers in gdjs.LayerPixiRenderer
2016-02-21 16:51:48 +01:00
Florian Rival
3ac292ec18
Factor common methods to gdjs.RuntimeObject.
...
Thanks to exposePIXIDisplayObject, objects can expose the PIXI.DisplayObject that they are using
and let RuntimeObject handles common operations (layer change, z order change, deletion, visibility).
2015-09-10 22:37:32 +02:00
Florian Rival
428e72914d
[WIP] Rename Automatism to Behavior
2015-08-17 23:52:59 +02:00
Florian Rival
ed5b9d2a33
Renamed DrawerObject to ShapePainterObject. Fixed typo ipo in gdjs.shapepainterruntimeobject.setOutlineOpacity name
2015-01-18 18:48:28 +01:00
Florian Rival
6eea30d35a
Ported PrimitiveDrawing for HTML5 games
2015-01-18 18:01:11 +01:00