summaryrefslogtreecommitdiffhomepage
path: root/common/examples.js
diff options
context:
space:
mode:
authorRay <[email protected]>2019-05-20 21:57:55 +0200
committerRay <[email protected]>2019-05-20 21:57:55 +0200
commit1dae9d9af3820d58b7a6d71d63d1cd000ca1da45 (patch)
tree517eb82b1ae6c22840c7b945992ac647217947b3 /common/examples.js
parente9f7fac3afad35dafeff01695539393a54d0dd9b (diff)
downloadraylib.com-1dae9d9af3820d58b7a6d71d63d1cd000ca1da45.tar.gz
raylib.com-1dae9d9af3820d58b7a6d71d63d1cd000ca1da45.zip
Add physac examples
Improved modules
Diffstat (limited to 'common/examples.js')
-rw-r--r--common/examples.js10
1 files changed, 8 insertions, 2 deletions
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(
'<div class="mix f' + filterType + '">' +
@@ -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" ); },