Commit Graph

51 Commits

Author SHA1 Message Date
Rémi Verschelde
eb167ebcaa Remove systematic "Init(i)alization here" from _ready() 2015-12-09 08:39:12 +01:00
Rémi Verschelde
f76b29f30d Use upper-cased first letter at the start of comment sentences 2015-12-09 08:39:12 +01:00
Rémi Verschelde
708a0caf4a Improve code formatting and update to 2.0
The scripts were streamlined using more or less the following conventions:
 - space after a comma in lists of arguments
 - space around weak operators (+, -), no space around strong operators (*, /)
 - space after a comment start (#)
 - removed trailing spaces or tabs, apart from those that delimit the function indentation level (those could be removed too but since they are added automatically by the editor when typing code, keeping them for now)
 - function blocks separate by two newlines

The scene files were resaved with the (current) 2.0 format, and some scenes that were in XML format were converted to SCN, to be consistent across all demos.
2015-12-09 08:38:23 +01:00
Rémi Verschelde
1e0f35315b Make all demo icons 8-bit/color RGB(A)
Godot does not seem to like 8-bit colormaps.
Fixes #2874.
2015-11-23 00:19:00 +01:00
Rémi Verschelde
71341fc1c1 Add icons to all demos that can have a meaningful one 2015-11-19 23:45:37 +01:00
Juan Linietsky
7f9fb163c9 Merge pull request #2700 from neikeq/demo_icons
Added project icon to some demos
2015-11-18 19:20:21 -03:00
Juan Linietsky
fa8039098c Merge pull request #2642 from leezh/nrex-update
Updated nrex with new features
2015-11-18 19:13:57 -03:00
Zher Huei Lee
db98d209cd Updated RegEx demos 2015-11-07 11:03:24 +00:00
neikeq
2fd6e70d50 Added some demo icons 2015-10-29 20:37:09 +01:00
firefly2442
b117d9f68f fix icon locations in demo projects 2015-10-21 14:29:52 -05:00
Zher Huei Lee
90f690962a Made RegEx API similar to old version 2015-07-24 14:09:39 +01:00
Zher Huei Lee
f3b17395a5 Added a live-edit RegEx tester to the demos 2015-07-24 13:55:18 +01:00
Juan Linietsky
fd05b4c64c added a built-in scene changer API, closes #1928 2015-05-17 16:33:35 -03:00
hurikhan
c073423782 window_management input fix 2015-05-06 23:07:11 -04:00
jack
b40fb77148 Set name on window management demo's engine.cfg 2015-04-25 22:22:04 -04:00
Juan Linietsky
f9ff164fed -renamed function to get object from instance id
-added function to get list of tiles used
2015-04-18 14:00:15 -03:00
Juan Linietsky
a3aefa4eee scene switcher demo changed to reflect tutorial, fixes #1673 2015-04-12 20:57:26 -03:00
hurikhan
bd35b32f26 adjust the window_management demo to the new function names 2015-03-23 00:09:12 -04:00
Juan Linietsky
64716ee33d fixes to new window management API
-needs testing on Linux
-needs testing on Windows
-NEED SOMEONE TO IMPLEMENT IT ON OSX!! PLEASE HELP!
2015-03-22 19:00:50 -03:00
hurikhan
8dd66bec47 removed up, down, left, right keys from the demo.
were used before for fast multiscreen setup testing.
2015-03-08 09:26:58 -05:00
hurikhan
f3c7c4949c fixing a typo in the demo 2015-03-08 03:32:13 -05:00
hurikhan
f3cdb0fe70 added Label_MouseGrab_KeyInfo 2015-03-08 01:27:36 -06:00
hurikhan
9a60048871 cleanup + MouseGrab 2015-02-12 15:58:00 +01:00
hurikhan
8321e833a3 * Cleanup for PR
* Demo shows a Dialog with not implemented methods at startup
2015-01-22 05:35:39 +09:00
hurikhan
916e0ff6ea * observer scene for the demo 2015-01-22 01:54:17 +09:00
hurikhan
3adbbb03f7 * fix compilation without scons experimental_wm_api=yes
* Extended the demo with an addional MouseGrab Test
2015-01-22 01:14:50 +09:00
hurikhan
3f2a850267 * multi_screen testing + bugfixes
* ALT-TAB is working
* tested on Ubuntu 14.10 Unity + LXDE
* minor cleanup
2015-01-18 00:28:04 +09:00
hurikhan
5a9976155d * cleanup window state handling
* first attemps in handling ALT+TABa (WIP)
2015-01-17 19:43:12 +09:00
hurikhan
7e8e37e049 added the following methods:
* set_minimized(bool)
 * bool is_minimized()
 * set_maximized(bool)
 * bool is_maximized()
2015-01-17 00:18:45 +09:00
hurikhan
08b10b0d48 rearrange the demo 2015-01-16 13:49:46 +09:00
hurikhan
5dcfab8954 WIP -- set_resizable() + is_resizable added 2015-01-15 22:50:23 +09:00
hurikhan
aa4433dc93 demo window set to resizeable (need a bugfix her) 2015-01-14 15:44:47 +08:00
hurikhan
eae4281236 don't start demo in fullscreen mode 2015-01-14 13:27:03 +08:00
hurikhan
067dbfa56f get_screen() + set_screen() added 2015-01-14 12:02:59 +08:00
hurikhan
6a2359f901 Using Xinerama extension for getting screen info 2015-01-13 21:01:24 +08:00
hurikhan
1fb9fea4c8 get_screen_position() added 2015-01-13 17:25:50 +08:00
hurikhan
22a9165d4c Demo misc/window_management added 2015-01-11 20:30:57 +08:00
sanikoyes
865318334c 1.Change interpolate_callback:p_times_in_sec argument before p_callback argument(more readable)
2.NodePath replace to instance_ID(can control object doe's not in scene tree)
3.Change interpolate types from Node to Object, can control more types(etc script class object)
4.Add pending_update counter, avoid insert/remove interpolates-list while traversal it
2014-12-19 17:13:20 +08:00
marynate
c49c529002 Add missing icon.png to tween demo 2014-12-08 13:21:05 +08:00
Juan Linietsky
cd7bdd93db UDP Fixes
-=-=-=-=-

Curse the day I decided to port UDP code, as it ended up
being two nights of work.  At least It's done now (I hope).

-Fixed UDP Support, API seems stable
-Added UDP Chat demo (chat that can lose your packets, heh)
-Added helpers to areas and bodies to get list of collided bodies and contained bodies.
-Sped up screen/viewport capture code.
-Added code to save an image as PNG
-Small fix so scripts register their singletons after modules did.
2014-11-13 00:53:12 -03:00
Juan Linietsky
bf79221919 SceneMainLoop -> SceneTree
-=-=-=-=-=-=-=-=-=-=-=-=-=-

*YOUR SOURCE MIGHT NOT WORK*
For mor information on fix:
https://github.com/okamstudio/godot/wiki/devel_scene_tree

Other stuff:
-Shower of bullets demo
-Fixes all around
2014-11-05 21:20:42 -03:00
Juan Linietsky
b12d7a7976 missing demo files 2014-10-03 00:25:53 -03:00
Juan Linietsky
f64f2d81ef Fixed too many little issues, check the issues closed today. 2014-09-21 01:43:42 -03:00
sanikoyes
6d29298210 Update tween demo 2014-08-27 15:39:04 +08:00
sanikoyes
ad388c5c65 tween:
1、add follow/targeting support
2、update demo
2014-08-25 13:36:56 +08:00
sanikoyes
044145b135 Replace object to NodePath
Add time callback support
Update demo
2014-08-22 11:24:53 +08:00
sanikoyes
d064bdbec3 Add tween delay support
Add tween get_runtime function
Update demo for tween delay sample
2014-08-21 15:34:16 +08:00
sanikoyes
a8ff97e637 Add tween seek/repeat support
Add tween demo
2014-08-20 16:39:28 +08:00
Dana Olson
c535cf3c69 added joysticks demo 2014-08-06 02:29:14 -04:00
Juan Linietsky
436b8e38b7 -Added google play services (needed for some stuff)
-Added new screen resizing options, stretch_2d is removed, new much more flexible ones.
-Fixed bug in viewport (can create more instances in 3d-in-2d demo now)
-Can set android permissions and screen sizes manually in the export settings
-Changed export templates extension to .tpz (too many people unzipped the manually..)
-File dialog now ensures that the proper extension is used (will not allow to save without it)
-Fixed bug that made collision exceptions not work in 2D
2014-04-14 22:16:13 -03:00