Commit Graph

48 Commits

Author SHA1 Message Date
Florian Rival 7eb4c26c53 Updated Windows scripts integrated to the build process.
Fix forces in GDJS.
2014-08-14 21:45:55 +02:00
victorlevasseur 62c14d2ba9 Fix error in runtimeobject.js. 2014-08-08 16:59:37 +02:00
victorlevasseur 6f5fc77570 Fix some syntax errors. 2014-08-08 10:52:46 +02:00
victorlevasseur ef9f2e7a52 Added force clearing in GDJS.
(replace temporary or permanent forces)
2014-08-08 10:48:36 +02:00
Florian Rival 23d9c7fe42 Updated licenses.
Fix pow expression in EditExpressionDialog.
French and Spanish translation update.
Upgraded pixi.js to latest version.
2014-07-26 17:20:33 +02: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 a2bc0b3306 Updated documentation.
git-svn-id: svn://localhost@1099 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-07-01 20:18:44 +00:00
Florian 6e8b74bdff Added loading of DestroyOutsideAutomatism from GD C++ Platform.
Added getAutomatism to runtimeObject and prevented bug when deleting an object in an automatism method.

git-svn-id: svn://localhost@1085 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-06-28 16:29:29 +00:00
Florian 96fee5c339 Variable are now a bit more strongly typed.
git-svn-id: svn://localhost@1081 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-06-28 10:15:15 +00:00
Florian 5883ba1149 Fixed variables with initial value being a float not recognized as a number.
git-svn-id: svn://localhost@1080 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-06-27 19:52:10 +00:00
Florian bc2f120ffa Initial global variables weren't loaded.
git-svn-id: svn://localhost@1076 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-06-26 16:02:42 +00: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 a57996970f Fixed background color whether using canvas or webgl.
git-svn-id: svn://localhost@1068 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-06-25 15:44:42 +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 6c2c1f55f6 Removed 2 useless lines.
git-svn-id: svn://localhost@1062 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-06-23 20:29:52 +00:00
Florian 536bf4b915 Removed useless commented code in TwoListsTest.
Deactivated the use of HSHG: SoldierJS is performing better without using it ( On my computer, with Chrome 27 : 55/60 fps except for the beginning when it decreased to 30 for one second ).

git-svn-id: svn://localhost@1061 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-06-23 20:26:56 +00:00
Florian 2f471ed7db Fixed regression in performance in SoldierJS.
git-svn-id: svn://localhost@1060 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-06-23 20:11:45 +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 c31ff6720e Added doc generator to repository.
git-svn-id: svn://localhost@1054 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-06-19 20:14:54 +00:00
Florian 9f3030207e Added FlipX/FlipY and adapted getPointX/getPointY and updatePIXISprite.
git-svn-id: svn://localhost@1051 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-06-19 16:38:06 +00:00
Florian 71cb9e2021 Fixed closure compiler incompatibility with pixi.js
git-svn-id: svn://localhost@1048 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-06-18 15:20:27 +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 6ccc2a17dc Move back to old implementation of Hashtable.
git-svn-id: svn://localhost@1033 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-06-13 22:19:56 +00:00
Florian 4eb9ba0da0 Tried a more basic implementation of hashtable : No changes, still memory consumption growing quite fast.
git-svn-id: svn://localhost@1032 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-06-13 22:18:20 +00:00
Florian bbb12a2491 Updated collision test to use a spatial hashing grid. Performance is improved when lots of objects are involved ( even if limited when the polygon collision test must be really done on lots of objects ).
Updated pixi.js


git-svn-id: svn://localhost@1031 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-06-13 21:47:26 +00:00
Florian ad2f3d45f4 Added MathematicalToolsExtension.
Added call to StripUnimplementedInstructionsAndExpressions to not fully implemented extensions.
Improved ShootJS.gdg
Added Collisions benchmark.gdg : 7/8 fps with Chrome 27 on my computer.

git-svn-id: svn://localhost@1030 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-06-13 10:42:19 +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 673443850a Fixed some small bugs.
git-svn-id: svn://localhost@1007 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-05-22 20:20:20 +00:00
Florian a530703b39 Added force automatic recycling : Forces Benchmark.gdg with Google Chrome 26 on my computer ( Core i5, Radeon 5870 ) : 50/60 fps
git-svn-id: svn://localhost@1001 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-05-20 18:59:39 +00:00
Florian 722eb67483 Added Forces Benchmark.gdg ( With Google Chrome 26 on my computer ( Core i5, Radeon 5870 ) : 23/25 fps )
git-svn-id: svn://localhost@1000 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-05-20 18:39:08 +00:00
Florian 2cedf94f91 Runtime : Cached default hitbox to avoid temporaries.
git-svn-id: svn://localhost@999 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-05-20 18:15:51 +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 0d51f1bf31 Adapted to changes in GDCore ( Changed some parameters type and removed useless parameters in the Runtime ).
git-svn-id: svn://localhost@992 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-05-12 20:42:31 +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 9ffb3ae6fa Adapted EventsCodeGenerator.
Improved implementation of BaseObjectExtension.

git-svn-id: svn://localhost@981 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-05-09 10:45:09 +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