summaryrefslogtreecommitdiffhomepage
path: root/examples/web/physac/loader.html
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 /examples/web/physac/loader.html
parente9f7fac3afad35dafeff01695539393a54d0dd9b (diff)
downloadraylib.com-1dae9d9af3820d58b7a6d71d63d1cd000ca1da45.tar.gz
raylib.com-1dae9d9af3820d58b7a6d71d63d1cd000ca1da45.zip
Add physac examples
Improved modules
Diffstat (limited to 'examples/web/physac/loader.html')
-rw-r--r--examples/web/physac/loader.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/web/physac/loader.html b/examples/web/physac/loader.html
index affc6c8..368a5e2 100644
--- a/examples/web/physac/loader.html
+++ b/examples/web/physac/loader.html
@@ -58,13 +58,13 @@
document.title = "raylib - " + name.replace('_', ' ');
- var type = name.substring(0, name.indexOf("_"));
+ //var type = name.substring(0, name.indexOf("_"));
//var srcUrl = '../../src/' + type + '/' + name + '.c';
//var imgUrl = '../' + type + '/' + name + '.png';
// Get example code and image directly from original raylib GitHub and avoid duplicate code to maintain
- var srcUrl = 'https://raw.githubusercontent.com/raysan5/raylib/master/examples/' + type + '/' + name + '.c';
- var imgUrl = 'https://raw.githubusercontent.com/raysan5/raylib/master/examples/' + type + '/' + name + '.png';
+ var srcUrl = 'https://raw.githubusercontent.com/raysan5/raylib/master/examples/physac/' + name + '.c';
+ var imgUrl = 'https://raw.githubusercontent.com/raysan5/raylib/master/examples/physac/' + name + '.png';
$('#eximage img').attr('src', imgUrl);