From 1dae9d9af3820d58b7a6d71d63d1cd000ca1da45 Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 20 May 2019 21:57:55 +0200 Subject: Add physac examples Improved modules --- common/examples.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'common/examples.js') diff --git a/common/examples.js b/common/examples.js index 7e63392..32ee495 100644 --- a/common/examples.js +++ b/common/examples.js @@ -94,13 +94,20 @@ $(document).ready(function() { 'audio_module_playing', 'audio_music_stream', 'audio_raw_stream', - 'audio_sound_loading']; + 'audio_sound_loading', + 'physics_demo', + 'physics_friction', + 'physics_movement', + 'physics_restitution', + 'physics_shatter']; for (var i = 0; i < exampleName.length; i++) { var filterType = exampleName[i].substring(0, exampleName[i].indexOf("_")); var exampleBase = exampleName[i].slice(exampleName[i].indexOf('_') + 1); var exampleDesc = exampleBase.replace('_', ' '); + + if (filterType == "physics") filterType = "physac"; $('#container').append( '
' + @@ -117,7 +124,6 @@ $(document).ready(function() { $("#container a").hover( function(){ $(this).find(".extext").show(); }, function(){ $(this).find(".extext").hide(); }); - /* $("#container a img").hover( function() { $(this).stop().animate({ opacity:0.6 }, 200, "easeOutQuad" ); }, -- cgit v1.2.3