Last active
August 29, 2015 14:05
-
-
Save JScott/06157326c997500a91b8 to your computer and use it in GitHub Desktop.
Revisions
-
JScott renamed this gist
Aug 18, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
JScott revised this gist
Aug 18, 2014 . 3 changed files with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,3 @@ These files show example pages that use the hosted MVML API with HTML5 and JS. Just copy these files onto your page and let the API handle the rest. You can either edit the MVML in-line or as a separate file. File renamed without changes.File renamed without changes. -
JScott revised this gist
Aug 18, 2014 . 3 changed files with 6 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ These files show example pages that use the hosted MVML API with HTML5 and JS. Just copy these files onto your page and let the API handle the rest. You can either edit the MVML in-line or as another hosted file. This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -20,7 +20,7 @@ </head> <mvml> --- title: JavaScript test player: move_speed: 15 turn_speed: 1.5 @@ -30,15 +30,15 @@ gravity: 30 scene: - primitive: sphere position: (5, 0, 0) - primitive: box position: (0, 0, -20) scale: (30,10,1) color: 0x00ff00 - primitive: box position: (-5, 1, 0) scale: (2,2,4) rotation: (0,-30,0) color: 0x00ffff @@ -48,7 +48,6 @@ position: (0,-2, 0) scale: (200,200,1) rotation: (-90,0,0) color: green </mvml> </html> File renamed without changes. -
JScott revised this gist
Aug 18, 2014 . 2 changed files with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes.File renamed without changes. -
JScott revised this gist
Aug 18, 2014 . 2 changed files with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes.File renamed without changes. -
JScott revised this gist
Aug 18, 2014 . 2 changed files with 49 additions and 49 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,53 +2,28 @@ <html lang="en"> <head> <script> var mvml_file_url = "http://dev.mvml.net/mvml/spec.mvml"; var api_url = "http://direct.dev.mvml.net:6865/"; var get = new XMLHttpRequest(); get.open("GET", mvml_file_url, true); var post = new XMLHttpRequest(); post.open("POST", api_url, true); post.setRequestHeader("Content-Type", "text/mvml"); post.onreadystatechange = function() { if(post.readyState == 4 && post.status == 200) { document.write(post.responseText); document.close(); } } get.onreadystatechange = function() { if(get.readyState == 4 && get.status == 200) { post.send(get.responseText); } } window.onload = function() { get.send(); } </script> </head> </html> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,28 +2,53 @@ <html lang="en"> <head> <script> var api_url = "http://direct.dev.mvml.net:6865/"; var post = new XMLHttpRequest(); post.open("POST", url, true); post.setRequestHeader("Content-Type", "text/mvml"); post.onreadystatechange = function() { if(post.readyState == 4 && post.status == 200) { document.write(post.responseText); document.close(); } } window.onload = function() { post.send(document.getElementsByTagName("mvml")[0].innerHTML); } </script> </head> <mvml> --- title: Hello metaverse! player: move_speed: 15 turn_speed: 1.5 min_jump_speed: 0 max_jump_speed: 20 start: (0,0,30) gravity: 30 scene: - primitive: sphere - primitive: box position: (0, 0, -20) scale: (30,10,1) mass: 0 color: 0x00ff00 - primitive: box position: (-10, 1, 0) scale: (2,2,4) rotation: (0,-30,0) color: 0x00ffff physics: off - primitive: plane position: (0,-2, 0) scale: (200,200,1) rotation: (-90,0,0) mass: 0 color: green </mvml> </html> -
JScott revised this gist
Aug 18, 2014 . 2 changed files with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes.File renamed without changes. -
JScott revised this gist
Aug 18, 2014 . 2 changed files with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes.File renamed without changes. -
JScott revised this gist
Aug 18, 2014 . No changes.There are no files selected for viewing
-
JScott revised this gist
Aug 18, 2014 . 2 changed files with 14 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,18 +2,19 @@ <html lang="en"> <head> <script> var api_url = "http://direct.dev.mvml.net:6865/"; var post = new XMLHttpRequest(); post.open("POST", url, true); post.setRequestHeader("Content-Type", "text/mvml"); post.onreadystatechange = function() { if(post.readyState == 4 && post.status == 200) { document.write(post.responseText); document.close(); } } window.onload = function() { post.send(document.getElementsByTagName("mvml")[0].innerHTML); } </script> </head> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,10 +2,13 @@ <html lang="en"> <head> <script> var mvml_file_url = "http://dev.mvml.net/mvml/spec.mvml"; var api_url = "http://direct.dev.mvml.net:6865/"; var get = new XMLHttpRequest(); get.open("GET", mvml_file_url, true); var post = new XMLHttpRequest(); post.open("POST", api_url, true); post.setRequestHeader("Content-Type", "text/mvml"); post.onreadystatechange = function() { if(post.readyState == 4 && post.status == 200) { -
JScott revised this gist
Aug 18, 2014 . 2 changed files with 0 additions and 2 deletions.There are no files selected for viewing
File renamed without changes.This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -23,6 +23,4 @@ } </script> </head> </html> -
JScott revised this gist
Aug 18, 2014 . 2 changed files with 68 additions and 41 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,53 +2,27 @@ <html lang="en"> <head> <script> var get = new XMLHttpRequest(); get.open("GET", "http://dev.mvml.net/mvml/spec.mvml", true); var post = new XMLHttpRequest(); post.open("POST", "http://direct.dev.mvml.net:6865/", true); post.setRequestHeader("Content-Type", "text/mvml"); post.onreadystatechange = function() { if(post.readyState == 4 && post.status == 200) { document.write(post.responseText); document.close(); } } get.onreadystatechange = function() { if(get.readyState == 4 && get.status == 200) { post.send(get.responseText); } } window.onload = function() { get.send(); } </script> </head> </html> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,53 @@ <!DOCTYPE html> <html lang="en"> <head> <script> var http = new XMLHttpRequest(); var url = "http://direct.dev.mvml.net:6865/"; http.open("POST", url, true); http.setRequestHeader("Content-Type", "text/mvml"); http.onreadystatechange = function() { if(http.readyState == 4 && http.status == 200) { document.write(http.responseText); document.close(); } } window.onload = function() { http.send(document.getElementsByTagName("mvml")[0].innerHTML); } </script> </head> <mvml> --- title: Hello metaverse! player: move_speed: 15 turn_speed: 1.5 min_jump_speed: 0 max_jump_speed: 20 start: (0,0,30) gravity: 30 scene: - primitive: sphere - primitive: box position: (0, 0, -20) scale: (30,10,1) mass: 0 color: 0x00ff00 - primitive: box position: (-10, 1, 0) scale: (2,2,4) rotation: (0,-30,0) color: 0x00ffff physics: off - primitive: plane position: (0,-2, 0) scale: (200,200,1) rotation: (-90,0,0) mass: 0 color: green </mvml> </html> -
JScott created this gist
Aug 18, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,54 @@ <!DOCTYPE html> <html lang="en"> <head> <script> var http = new XMLHttpRequest(); var url = "http://direct.dev.mvml.net:6865/"; http.open("POST", url, true); http.setRequestHeader("Content-Type", "text/mvml"); http.onreadystatechange = function() { if(http.readyState == 4 && http.status == 200) { document.write(http.responseText); document.close(); } } window.onload = function() { http.send(document.getElementsByTagName("mvml")[0].innerHTML); } </script> </head> <mvml> --- title: Hello metaverse! player: move_speed: 15 turn_speed: 1.5 min_jump_speed: 0 max_jump_speed: 20 start: (0,0,30) gravity: 30 scene: - primitive: sphere - primitive: box position: (0, 0, -20) scale: (30,10,1) mass: 0 color: 0x00ff00 - primitive: box position: (-10, 1, 0) scale: (2,2,4) rotation: (0,-30,0) color: 0x00ffff physics: off - primitive: plane position: (0,-2, 0) scale: (200,200,1) rotation: (-90,0,0) mass: 0 color: green </mvml> </html>