Commit Graph

30 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 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 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 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 e92e1ec65b Added copyright.
git-svn-id: svn://localhost@1038 8062f311-0dae-4547-b526-b8ab9ac864a5
2013-06-16 15:15:05 +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 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 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