Commit Graph

30 Commits

Author SHA1 Message Date
Florian Rival b8ccf02f70 Refactor callbacks registration in GDJS 2020-02-11 23:33:30 +00:00
Arthur Pacaud 054e48227c Make object and behavior registering more explicit (#1379) 2020-01-17 22:49:24 +00:00
Florian Rival 2558052a61 Fix visual artifacts when rendering rescaled games.
Artifacts where visible on rescaled games, especially when canvas
was small and the game pixel perfect. This was due to changing
Pixi renderer size instead of scaling the canvas.

For a perfect "pixel perfect" rendering, "image-rendering: pixelated"
would be needed on the canvas (to be added as a game settings)
(see for instance: https://gablaxian.com/articles/creating-a-game-with-javascript/scaling-the-canvas)
2018-12-25 18:15:27 +01:00
Florian Rival 1c1860370a Prevent pinch-to-zoom on exported games/preview and set black address bar 2018-02-23 15:24:35 +01:00
Florian Rival 0c2600ccf4 Directly use *Renderer in game engine 2016-02-22 23:12:45 +01:00
Florian Rival 961513f81b Move game loop implementation in RuntimeGamePixiRenderer 2016-02-21 23:05:31 +01:00
Florian Rival 746bdd0114 Move rendering of gdjs.RuntimeGame to gdjs.RuntimeGamePixiRenderer 2016-02-21 19:13:35 +01:00
Florian Rival 428e72914d [WIP] Rename Automatism to Behavior 2015-08-17 23:52:59 +02:00
Victor Levasseur a39b67b042 Move UTF8 tools to another file. Add conversion between UTF8 and wstring 2015-02-14 13:06:50 +01:00
Florian Rival e8cd1b16b7 Added GDJS and Extensions to this repository. 2014-06-30 21:39:29 +02:00
Florian Rival 475c9da06c Cleaned thing and added not versioned files. 2014-03-31 21:55:51 +02:00
Florian e00db6f0ba Fixed assets loading when assets are cached.
git-svn-id: svn://localhost@1074 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-06-26 14:03:21 +00:00
Florian eef83a694e Fixed For each.
Fixed setAngleOrDirection in spriteruntimeobject.js
Fixed instances variables not loaded.
Added deprecated separateFromObjects* method for compatibility with already existing games.

git-svn-id: svn://localhost@1070 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-06-25 21:29:46 +00:00
Florian 8c9f864451 Added automatisms support to Runtime.
Added Draggable automatism test.
Fixed hidden objects rendering.
Added support for using custom fonts.
Added support for getting the mouse position ( or any other point ) in a rotated/scaled layer.
Added tests.

git-svn-id: svn://localhost@1064 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-06-25 14:18:25 +00:00
Florian 6b5c6c948d Improved MathematicalToolsExtension.
Added loading of TextObject extension from GD C++.
Tried to improve performance of Runtime.

git-svn-id: svn://localhost@1059 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-06-23 19:56:32 +00:00
Florian cb375aaac3 Moved events related functions to gdjs.evtTools.
Updated a bit the doc.

git-svn-id: svn://localhost@1058 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-06-20 18:26:04 +00:00
Florian e92e1ec65b Added copyright.
git-svn-id: svn://localhost@1038 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-06-16 15:15:05 +00:00
Florian 49008c8478 Added missing built-in extensions ( even if most of them are not implemented ).
git-svn-id: svn://localhost@1037 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-06-15 18:11:26 +00:00
Florian e3c651efec Fixed conflict in Pixi.js with Closure Compiler.
Finished exportation and support for minimizing the code with the Closure Compiler.

git-svn-id: svn://localhost@1028 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-06-11 20:59:47 +00:00
Florian 86c67281d1 Added support for scenes changed ( All scenes are now exported during game preview ) and game quit.
Added basic support for CursorOnObject condition.

git-svn-id: svn://localhost@1021 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-06-02 15:45:07 +00:00
Florian c0ee13d816 Objects z Ordering done.
git-svn-id: svn://localhost@1019 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-05-31 20:43:50 +00:00
Florian b1bd61b13e Fixed for each events.
Fixed opacity limits. 
Added loading of center and origin points for sprite objects.

git-svn-id: svn://localhost@1018 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-05-31 18:25:58 +00:00
Florian 270abd1f9a Added MouseExtension.
Finished implementation of TimeExtension.
Improved SpriteExtension.

git-svn-id: svn://localhost@1012 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-05-28 17:49:55 +00:00
Florian 96fd3327d4 Added soundManager to runtime and started implementing AudioExtension.
Fixed exportations of resources of events.
Implemented all common instructions and events.
Fixed pickedObjectsCount in runtime.

git-svn-id: svn://localhost@1009 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-05-25 20:32:42 +00:00
Florian 50ee292342 Added TimeExtension.
Added imageManager to Runtime ( TODO : Images not properly loaded at startup ).
Added support for scaling Sprite objects.

TODO : Polygon collision testing is too expensive. Add a check for basic bounding box and avoid recreating temporaries when returning hit boxes.
TODO : Avoid creating forces each frame.
TODO : Recycle objects.

git-svn-id: svn://localhost@997 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-05-19 22:23:44 +00:00
Florian 8394c1761a Almost finished implementation of BaseObjectExtension.
Added very basic support for layers.
Started implementing SceneExtension and CameraExtension.
Added tests.

git-svn-id: svn://localhost@995 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-05-14 22:46:26 +00:00
Florian 5495cec870 Documented part of the runtime.
Added support for hit boxes and collision condition.
Moved runtime libs to a "libs" folder.

git-svn-id: svn://localhost@986 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-05-11 14:20:53 +00:00
Florian 59b97cf589 Fixed code generation.
Added a basic test to ensure events are correctly generated and objects properly picked.
Added basic support for forces to Runtime.
Added basic support for mouse.
Added full support for Keyboard.

git-svn-id: svn://localhost@983 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-05-10 15:13:11 +00:00
Florian f89e4fb659 Completed VariablesExtension.
Fixed events of CommonInstructionsExtension ( Work in progress ).
Added BaseObjectExtension ( Work in progress ).

git-svn-id: svn://localhost@979 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-05-08 10:40:30 +00:00
Florian 3bd7326f72 Initial import.
git-svn-id: svn://localhost@967 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-05-06 20:06:36 +00:00